Config ignore displays incorrect entities from splits

Created on 19 November 2021, almost 3 years ago
Updated 4 January 2024, 11 months ago

Problem/Motivation

Drupal 9.2.9
Config Ignore version 2.3
Config Filter 2.2
Config Split 2.0.0-beta4.

I have a number of config splits. Dev and Local have modules that are enabled only in those environments (devel, dblog, stage_file_proxy) with the config split. The needed module config is located in the ../config/envs/local folder. I do not have them in the config_ignore.settings.

I am seeing under the config ignore section of the config sync screen: core.extension and all the config for each of these modules. The webform.webform.contact is supposed to be there, for demonstration.

If I make a change to any of these config entities they move from the ignored section to changed/review area. Having these entities appear in the ignored section is misleading and distracting as they aren't found in any config ymls.

Steps to reproduce

Setup two config splits. Add that module to the config split, it's configuration in the folder.
Add webform.webform.* to the config_ignore settings. For a baseline.
Review the config sync page. Your split config is show as ignored as is the webform.webform.contact
Make a change either in the code or database for your module.
Check back with the config sync page, the change should been seen and webform is still ignored.

Proposed resolution

In the config_ignore.moule, there are 2 storage $vars: the active config and the config in the main config folder. The code assumes that if the config is active and not in the main config folder, the config is ignored. Because of config splits this assumption is incorrect. I think there should be a call load the ignored config and use that as a check as well.

Remaining tasks

discuss and do.

πŸ› Bug report
Status

Closed: outdated

Version

2.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States oheller

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.

  • πŸ‡¨πŸ‡­Switzerland bircher πŸ‡¨πŸ‡Ώ

    This issue is being closed because Config Ignore 2.x is deprecated.

    The new 3,x version has been re-written from the ground up and works in a totally different way, yet it provides the same backwards compatible functionality. All the 2.x tests pass in 3.x and the 3.x codebase is easier to maintain.
    Users of 2.x are strongly encouraged to upgrade to 3.x, as there is a very simple update path.

    So likely this issue is no longer relevant. If you think that this issue still applies please open it again and target the new branch. All issues on the 2.x branch were closed in bulk.

Production build 0.71.5 2024