Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
system.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Mar 2024 at 09:00 UTC
Updated:
30 Apr 2025 at 11:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #4
srishtiiee commentedThis will be covered in #3422904: Add validation constraints to all system.* simple config (except system.rss)
Comment #5
srishtiiee commentedComment #8
srishtiiee commentedComment #9
wim leersTests are failing and I think we can fix that by just pushing the latest
origin/11.xto this issue fork 🤞Comment #10
wim leersReview posted on MR — if I'd found nothing in my review, then I'd have done #9 for you — but since I can't RTBC this yet anyway, I'll let you handle #9 too 🤓
Comment #12
yash.rode commentedComment #13
smustgrave commentedOn a standard profile install on 11.x
Installed configuration inspector and applied the MR
Shows that the system.file is fully validated.
Checking the MR everything appears to have a return type
Believe this one is good to go.
Comment #14
alexpottIf path is deprecated we should deprecate it. See https://www.drupal.org/about/core/policies/core-change-policies/drupal-d...
Added some review comments.
Comment #15
yash.rode commentedAddressed feedback from #14
Comment #16
narendrarI think as per #14, a deprecation message needs to be added for path in system.schema.yml before removing it completely here.
Comment #17
yash.rode commentedComment #18
narendrarChanges looks good to me.
Comment #19
catchOne question on the MR.
Comment #20
borisson_I agree with catch in #19, moving this to Drupal\Core\Config seems like a better solution, let's do that.
Comment #22
bbralaUpdated the class namespace as suggested, did do a rebase to clean up.
Comment #23
borisson_Back to rtbc now that it is moved.
Comment #24
alexpottIf we changing the 10.3 database dumps because of invalid schema this points to us needing an update function. I think we should not be changing the dumps.
Also I think we should be adding a new constraint that works like callback but uses the class resolver service to my more flexible.
Comment #25
bbralaSo, the path config key was deprecated in Drupal 8.8 it seems (https://www.drupal.org/node/3039255). That kinda feels out of scope of this change, the fact is that it will need to go through deprecation? I don't even really see any usage in core, but that could be my search skills failing me.
But i don't feel we should do that here. Hopefully you agree.
Comment #26
bbralaWaiting for build, since i had some ci issues ;x
Comment #27
bbralaAdjusted it to actually do what was asked for.
Did revert the deprecation message for the path property. Would like to know if we need to make the change here, or if we should defer that. Seems like that has been here for quite a while. I do think we might be able to ignore it here, since it doesnt seem to be used.
Edit:
A possible update would be:
Edit 2:
After reading #3400368: Deprecate path.temporary in system.file configuration schema it was mostly path.temporary that was deprecated. Although it seems that was the only key that used that. So the deprecation does make sense, and an upgrade path also make sense to remove the key from the config.
Lets do that.
Comment #28
bbralaComment #29
bbralaOk, lets try again. Seems good now.
Comment #30
bbrala#3517070: Remove system.file.path config from system.schema.yml created to do the deprecation and upgrade path
Comment #31
bbralaPostpone on child issue.
Comment #32
bbralaChild is committed
Comment #33
bbralaPipe is all green after the upgrade stuff in the child. Think we are there.
Comment #34
bbrala#3517070: Remove system.file.path config from system.schema.yml was merged, rebased this one.
Comment #35
smustgrave commentedUsing configuration inspector
Does the new constraint need a CR? I vote yes but don't want to hold it up on that.
Rest appears to be addressed
Comment #36
alexpottCommitted 63187d5 and pushed to 11.x. Thanks!
Comment #37
bbralaPublished a change record