Problem/Motivation

The update hook added in #2892552 loads all purgers including any overridden config and stores them again. When you export config, overridden config is stored.

Our use case is that the host and port of the purger needs to be different locally as opposed to acceptance and production. So we override the config locally by setting the host and port of the purger through a local settings.php. However, after updating the module the overridden config is exported and unexpectedly ends up on acceptance and production where the purger stops functioning.

Steps to reproduce

Install 8.x-1.0, override the config through settings.php, export the configuration, update to 8.x-1.1 and run the update hook. Now export the configuration again and the overridden config is exported.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Marty2081 created an issue. See original summary.

DieterHolvoet made their first commit to this issue’s fork.

dieterholvoet’s picture

Apparently it's not possible yet to get non-overridden values for config entities, so I fixed the update hook by loading the purger settings config entities through the config factory instead.

  • DieterHolvoet committed 94213292 on 8.x-1.x
    Issue #3376490 by DieterHolvoet, Marty2081: Update_8002 causes...
dieterholvoet’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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