Add validation constraints to update.settings

Created on 1 April 2024, 8 months ago
Updated 29 April 2024, 7 months ago

Problem/Motivation

Update module has 5 property paths that are not yet validatable.

vendor/bin/drush config:inspect --filter-keys=update.settings --detail --list-constraints
โžœ  ๐Ÿค– Analyzingโ€ฆ

 Legend for Data: 
  โœ…โ“  โ†’ Correct primitive type, detailed validation impossible.
  โœ…โœ…  โ†’ Correct primitive type, passed all validation constraints.
 -------------------------------------------- --------- ------------- ------ --------------------------------------------------- 
  Key                                          Status    Validatable   Data   Validation constraints                             
 -------------------------------------------- --------- ------------- ------ --------------------------------------------------- 
  update.settings                              Correct   64%           โœ…โ“   ValidKeys: '<infer>'                               
   update.settings:                            Correct   Validatable   โœ…โœ…   ValidKeys: '<infer>'                               
   update.settings:_core                       Correct   Validatable   โœ…โœ…   ValidKeys:                                         
                                                                                - default_config_hash                            
   update.settings:_core.default_config_hash   Correct   Validatable   โœ…โœ…   NotNull: {  }                                      
                                                                              Regex: '/^[a-zA-Z0-9\-_]+$/'                       
                                                                              Length: 43                                         
                                                                              โ†ฃ PrimitiveType: {  }                              
   update.settings:check                       Correct   Validatable   โœ…โœ…   ValidKeys: '<infer>'                               
   update.settings:check.disabled_extensions   Correct   Validatable   โœ…โœ…   โ†ฃ PrimitiveType: {  }                              
   update.settings:check.interval_days         Correct   NOT           โœ…โ“   โš ๏ธ  @todo Add validation constraints here          
   update.settings:fetch                       Correct   Validatable   โœ…โœ…   ValidKeys: '<infer>'                               
   update.settings:fetch.max_attempts          Correct   NOT           โœ…โ“   โš ๏ธ  @todo Add validation constraints here          
   update.settings:fetch.timeout               Correct   NOT           โœ…โ“   โš ๏ธ  @todo Add validation constraints here          
   update.settings:fetch.url                   Correct   Validatable   โœ…โœ…   โ†ฃ PrimitiveType: {  }                              
   update.settings:notification                Correct   Validatable   โœ…โœ…   ValidKeys: '<infer>'                               
   update.settings:notification.emails         Correct   NOT           โœ…โ“   โš ๏ธ  @todo Add validation constraints here          
   update.settings:notification.emails.0       Correct   Validatable   โœ…โœ…   Email:                                             
                                                                                message: '%value is not a valid email address.'  
                                                                              โ†ฃ PrimitiveType: {  }                              
   update.settings:notification.threshold      Correct   NOT           โœ…โ“   โš ๏ธ  @todo Add validation constraints here          
 -------------------------------------------- --------- ------------- ------ --------------------------------------------------- 

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Fixed

Version

10.3 โœจ

Component
Updateย  โ†’

Last updated 2 days ago

  • Maintained by
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States @tedbow
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States @dww
Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia srishtiiee

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024