Problem/Motivation
How to reproduce:
* Add a filter-providing module and add its filter to a text format
* Deploy
* Remove the filter from text format, uninstall the module
* Deploy
Expected:
* Deployment restores the status quo ante
Actual: (manually backtranslated so not exact strings)
$ drush cim
[notice] Syncing extensions: uninstall (filter-providing module)
The following reasons prevent the modules from being uninstalled: Provides a filter plugin which is used in these text formats: (text-format)
Setting high prio as this breaks automated deployment.
Workaround: Manually change remove the filter plugin from that text format.
Proposed resolution
I suppose it's about having the module uninstall depend on the filter format change.
I wonder if that's even possible currently.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comments
Comment #2
larowlanI think this would require filter module to be smarter about it's dependencies
Comment #8
lendudeMoving my patch from #3281308: FilterUninstallValidator blocks config syncing when uninstalling a module even if the incoming config is valid to here since I found this issue before I managed to find my own issue......(and this one is older)
Still a really bad patch, and it seems to have stopped working since I rolled it, but moving it over anyway since it gives an idea about where the problem might be.
Comment #11
dave reidI just ran into this attempting to uninstall the toc_filter module with a config deployment.