Add validation constraints to system.file

Created on 26 March 2024, 2 months ago
Updated 2 May 2024, about 1 month ago

Problem/Motivation

System module settings has 2 property paths that are not yet validatable:

vendor/bin/drush config:inspect --filter-keys=system.file --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                    
 ---------------------------------------- --------- ------------- ------ ------------------------------------------ 
  system.file                              Correct   67%           โœ…โ“   ValidKeys: '<infer>'                      
   system.file:                            Correct   Validatable   โœ…โœ…   ValidKeys: '<infer>'                      
   system.file:_core                       Correct   Validatable   โœ…โœ…   ValidKeys:                                
                                                                            - default_config_hash                   
   system.file:_core.default_config_hash   Correct   Validatable   โœ…โœ…   NotNull: {  }                             
                                                                          Regex: '/^[a-zA-Z0-9\-_]+$/'              
                                                                          Length: 43                                
                                                                          โ†ฃ PrimitiveType: {  }                     
   system.file:allow_insecure_uploads      Correct   Validatable   โœ…โœ…   โ†ฃ PrimitiveType: {  }                     
   system.file:default_scheme              Correct   NOT           โœ…โ“   โš ๏ธ  @todo Add validation constraints here  
   system.file:temporary_maximum_age       Correct   NOT           โœ…โ“   โš ๏ธ  @todo Add validation constraints here  

Steps to reproduce

Proposed resolution

Add validation constraints to:

  1. system.file:default_scheme
  2. system.file:temporary_maximum_age

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Systemย  โ†’

Last updated 1 day ago

No maintainer
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.69.0 2024