Config storage transformers do not get applied when installing Drupal from configuration

Created on 28 February 2024, 9 months ago
Updated 7 March 2024, 8 months ago

Problem/Motivation

Note: This could be argued to be a bugfix or a feature request, depending on your viewpoint, so going with task as middle ground, to hopefully avoid any contention.

When building a site with a module that uses a storage transfomer (such as newer versions of Config Split β†’ , Config Ignore β†’ , etc.), it is not possible to (correctly) use the the Install from existing configuration (or drush si --existing-config) feature, as the configuration transfomers will not be called in that case.

Steps to reproduce

  1. Build a site from Minimal profile and enable Config Split and split off some configuration
  2. Export all configuration. The split configuration should not be in the sync directory, but in its own directory
  3. Attempt to install from configuration

At this point the split configuration will not have been installed/imported, even though you would expect that it has been.

Proposed resolution

When installing from configuration we already call install_config_revert_install_changes() after all module have been installed. Simply invoking the storage transfomer at this point fixes the issue.

Remaining tasks

  • Write tests
  • Review patch

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

-

πŸ“Œ Task
Status

Closed: duplicate

Version

11.0 πŸ”₯

Component
ConfigurationΒ  β†’

Last updated 2 days ago

Created by

πŸ‡©πŸ‡ͺGermany tstoeckler Essen, Germany

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024