Add validation constraints to update.settings

Created on 1 April 2024, 12 days ago
Updated 9 April 2024, 4 days 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

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Updateย  โ†’

Last updated 1 minute 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 https://api.contrib.social 0.62.1