Use ignore settings from storage being transformed if they exist

Created on 5 September 2022, almost 2 years ago
Updated 20 October 2023, 8 months 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.69.0 2024