Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The creation of the files required for an update could still be improved. Current steps are:
- Fresh Install
- Make config changes
- Export new config and update your config files
- Reinstall with old configuration files (propably by stashing the changes or creating a new branch)
- Get back new configuration files
- Run update helper
This is quite complex and unintuitive. It's also slow, since you need to install twice.
Proposed resolution
Simplify the workflow by inverting the diff (compare new active config with unchanged config files) and directly exporting the new config to the corresponding file.
The workflow would look like this:
- Fresh Install
- Make changes in the active config
- Run update helper
Th update helper would calculate the diff as before, create the code and also export the new config to update the config directory.
Comments
Comment #2
daniel.bosenComment #3
mtodor CreditAttribution: mtodor at Thunder commentedThere is PR for this feature: https://github.com/BurdaMagazinOrg/module-update_helper/pull/9
Comment #5
mtodor CreditAttribution: mtodor at Thunder commentedThank you for the review!
Comment #6
mtodor CreditAttribution: mtodor at Thunder commentedComment #8
mtodor CreditAttribution: mtodor at Thunder commented