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
Merging in configuration updates without overriding customizations requires 3-way configuration merges.
For the configuration staging workflow, the three configuration states are:
- Configuration item as previously snapshotted
- Configuration item as staged
- Configuration item as saved in the active configuration storage
For configuration updates from extensions, the states are:
- Configuration item as previously snapshotted; see #2960870: Snapshot configuration as installed and updated from recipes and extensions
- Configuration item as provided by updated version of extension (e.g., in config/install)
- Configuration item as saved in the active configuration storage
The Config Merge in contrib includes a 3-way merging method. The module also provides a Config Filter plugin to allow safely merging into live using the staging workflow.
Proposed resolution
Adapt and add ConfigMerger along with accompanying test coverage.
Comments
Comment #10
nedjoNeeded for #2960999: Support updating extension-provided config via configuration synchronization API and UI.
Comment #11
nedjoMoving into the Distributions and Recipes Initiative as a prerequisite to #3307646: Merge in config updates when (re)applying a recipe.