- 🇨🇦Canada ergonlogic Montréal, Québec 🇨🇦
Here's a patch that introduces a
drush config-enforce:update
command. It updates the hashes in all registries.Note that CED calculates hashes based on the already exported config files, rather than what's in active storage. Maybe we need to force
config_devel
to sync from active storage to disk first? - 🇨🇦Canada ergonlogic Montréal, Québec 🇨🇦
Maybe we need to force config_devel to sync from active storage to disk first?
Here's an updated patch that does essentially that. That is, it writes enforced configs to disk based on active storage, then updates all the registry hashes.
One possible issue here is that enforced configs that are in
config/optional
may not have been imported yet. For example, if the site was just installed. So updating them may result in unwanted changes. This can be worked around, at the moment, by `git reset`ting files inconfig/optional
.It'd probably be better to provide some CLI options to better control this.
- 🇨🇦Canada ergonlogic Montréal, Québec 🇨🇦
✨ Provide mechanism to update stale registry settings Active is related, but covers edge-cases (such as a manually deleted config file). We should either consider those use-cases here, or follow-up from this ticket in the other one.
- Status changed to Fixed
8 months ago 2:15am 8 August 2024 - 🇨🇦Canada spiderman Halifax, NS
I agree we can do better than accidentally clobbering config/optional changes on disk, but I think `git reset` is a reasonable workaround for now. I'm committing this patch as-is, we can take up extra parameters and such in the followup.
-
spiderman →
committed 99f15b2d on 1.0.x
Issue #3221284 by ergonlogic: Provide way to re-export config and/or...
-
spiderman →
committed 99f15b2d on 1.0.x
Automatically closed - issue fixed for 2 weeks with no activity.