As config_split_ignore module is not working anymore with config split 2.x-branch, i need a way to make it possible to ignore some keys of splitted configuration. (or entire config)

For example in a specific case, i wantaed to ignore system.site:page while following to have system.site in my split

I discsussed this case here with Bircher :
https://www.drupal.org/project/config_ignore/issues/3307930#comment-1469...

Setting a higher or lower priority to my stackable split via $settings['config_split_priorities'] was not sufficient as importDefaultPriority will still remain with a 0 priority in config_split module.

My only way to achieve my goal was to set a lower priority to subscribed event of config ignore. (and keep a higher priority on my specific stackable split in config_split_priorities)

On attached patch, i provide a way to set a specifical priority for config_ignore module.

Comments

julien.sibi created an issue. See original summary.

julien.sibi’s picture

Here is attached patch to then set piorityo import event subscription via $settings['config_ignore_import_priority']

I don't have an enough good ovrview of export mechanism to tell if it has any interest to do the same with export event?

julien.sibi’s picture

Status: Active » Needs review
bircher’s picture

yea makes sense, though I think we should do it for both and add a lot of documentation on what is recommended to do.

julien.sibi’s picture

Hello,

Here is a patch adding export priority too

  • bircher committed cc238096 on 8.x-3.x
    Issue #3314749 by julien.sibi, bircher: Make eventsubscriber priority...
bircher’s picture

Status: Needs review » Fixed

Thank you for your contribution.

Status: Fixed » Closed (fixed)

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

joseph.olstad’s picture

I recommend a default import priority of -1, otherwise the out of the box experience is months/years of frustration. We're using sometimes upwards of 400 modules, just can't dig dig dig into every single one of them.