πŸ‡ͺπŸ‡ΈSpain @aheredia

Account created on 3 April 2011, about 13 years ago
#

Recent comments

πŸ‡ͺπŸ‡ΈSpain aheredia

Hi I have a similar problem because current module version has different behaviour on import than the previous one.

On 8.2.x

My admin interface ignored:
webform.webform.*
and is aligned with the confing_ignore.settings.yml.

Imagine I want to make a deployment where I change an specific weborm.
I would go to admin interface I would add the exception there without doing any kind of drush cex only admin interface.

So looks like
Admin interface:
webform.webform.*
~webform.webform.contact_us
But confing_ignore.settings.yml. still has
webform.webform.*
Then, on the deployment there is is a drush cim command that
detect 2 changes and updates them
webform.webform.contact_us
config_ignore.settings.yml

So after the deployment I have webform.webform.contact_us changes applied and the admin interface reverted to only
webform.webform.* and aligned again with config_ignore.settings.yml

With version 8.3.x seems that is not possible any more because it looks to transformation_storage

Maybe its only a question to point always to ConfigIgnoreConfig::fromConfig($this->configFactory->get('config_ignore.settings'));

Son changing:

if ($transformation_storage->exists('config_ignore.settings')) {
      try {
        // This can be used to hook into config ignore via an event subscriber
        // which alters the data prior to the config ignore subscriber.
        $settings = $transformation_storage->read('config_ignore.settings');
        $ignoreConfig = new ConfigIgnoreConfig($settings['mode'] ?? 'simple', $settings['ignored_config_entities'] ?? []);
      }
      catch (\InvalidArgumentException $exception) {
        // We should probably log this exception.
      }
    }
    if (!isset($ignoreConfig)) {
      $ignoreConfig = ConfigIgnoreConfig::fromConfig($this->configFactory->get('config_ignore.settings'));
    }

By
$ignoreConfig = ConfigIgnoreConfig::fromConfig($this->configFactory->get('config_ignore.settings'));

Production build 0.69.0 2024