When editing a feature, you can uncheck a config item to "exclude" it from being exported. The list of excluded items is saved in the modulename.features.yml file. However, when this feature is edited again, the excluded config is not shown at all.

It should instead be shown as auto-detected items (blue) with the unchecked box.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mpotter created an issue. See original summary.

mpotter’s picture

Status: Active » Needs review
FileSize
6.19 KB

Here is the first pass at a fix for this. Turned out to be a bit complicated after a lot of interactive testing. I'll be adding some tests for this soon, but need to fix the tests in another issue first.

Status: Needs review » Needs work

The last submitted patch, 2: features_excluded_config-2791967-2.patch, failed testing.

mpotter’s picture

Here are some fixes to both the code and the tests that were failing. The prior tests were not actually correct. Included an interdiff to make it easier to review test changes.

mpotter’s picture

Status: Needs work » Needs review

  • mpotter committed 689e969 on 8.x-3.x
    Issue #2791967 by mpotter: Excluded config not marked in Edit form
    
mpotter’s picture

Status: Needs review » Fixed

Commited to 689e969.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.