This may appear to be a noob problem, but perhaps I'm using the module wrong.
- I am on local. I have uninstalled the purge module, which should be installed on production.
- I install config filter and config ignore with drush.
- I run
drush cex. I note a setting has been modified which I do not wish to be modified:purge_queuer_coretags.settings - I paste 'purge_queuer_coretags.settings' into config ignore settings
- I run
drush cr - I run `drush cex` again, but
purge_queuer_coretags.settingsis still included in the export. - I try adding 'purge_queuer_coretags.*' to the settings, but that doesn't work either.
What am I doing wrong? Am I misunderstanding something about the workings of this module?
$drush --version
Drush Version : 8.1.11
$
Comments
Comment #2
glass.dimly commentedComment #3
tlyngej commentedHi @glass.dimly
Just for clarification, does the config ignore module kick in, if you try to ignore any other config name? Like
system.site.Comment #4
glass.dimly commentedI tried a few other ones, I made a list of all the ones I wanted to ignore, there were several, none worked. Now I've moved on to config_split though.
Comment #5
glass.dimly commentedAlright, this was my fault, I installed and tried again.
I didn't cache clear after I added settings.
Since this is required, can this be added to the docs?
Comment #6
tlyngej commentedRight. I've manged to re-produce the issue (I think) so that's step one completed.
Thanks for reporting this @glass.dimly!
Comment #7
tlyngej commentedAfter doing some testing I'm fairly sure that this could not be fixed by clearing cache.
I can re-produce the issue by doing following (
configfolder is one level above):The above will try to export and output the
system.siteconfiguration three times.First time, the
nameisSite-Install, second time it'sConfig Ignore, and likewise the third time.Note how the
system.siteconfiguration was setting to be ignored before the second export, and therefore should have been left asSite-Installin all three cases.So, that proves that there is an issue.
However, if I move the
drush cset -y config_ignore.settings ignored_config_entities.0 'system.site'bit before the first export, the rest of the exports works as expected (are ignored).Comment #10
bircherI am not sure what exactly the issue is, but I added cache clearing to the ignore form submission just in case.
We still might need to improve the documentation. Of course the active config_ignore settings are used for filtering so if the config ignore setting is updated as part of the deployment the the newly ignored config will not be ignored in that deployment. a single import of the ignore settings first would solve that.
Comment #11
bircherah! reading the issue summary again I see what the problem is. We currently do not ignore config on export if I am not mistaken. Seeing that this is something that might be expected we could add an option to ignore also on export.
If you want to not export you can currently use config_split. If you configure the split with an empty folder it will export it to a database table and so not export it.
Comment #12
tlyngej commented@bircher Config is ignored upon exporting.
But would have been lovely if that was all :-)
Comment #13
tlyngej commentedRight, this has come down to me not really know how Config Filter (which this module relies on) works.
Turns out that Config Ignore don't support exported configuration.
But I certainly intend to change that!