Use ignore settings from storage being transformed if they exist

Created on 5 September 2022, over 2 years ago
Updated 20 October 2023, about 1 year ago

Problem/Motivation

Config ignore only works correctly if it had been configured prior to the config import that is ignoring things.
This is because the setting of what to ignore is taken from the active storage and enhanced by a alter hook.
While it is great that the alter hook is cached, this means that newly deployed config ignore rules only take effect on the second config import.

Steps to reproduce

Add some config to production (say a webform)
Add a rule to ignore the webform in dev
deploy the configuration
Now the webform is deleted because it only exists on production, and the config to ignore it is imported at the same time.

Proposed resolution

Config Split 2.x has a solution to this problem.
Copy the solution to config ignore

Remaining tasks

* Study the code of config split
* Port the solution to use the split settings from the transforming storage for config import.
* refactor how the rules are checked.

User interface changes

none

API changes

none

Data model changes

none

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇨🇭Switzerland bircher 🇨🇿

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024