- 🇨🇦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.