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

CommentFileSizeAuthor
#8 3281308-2.patch834 byteslendude

Comments

geek-merlin created an issue. See original summary.

larowlan’s picture

I think this would require filter module to be smarter about it's dependencies

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

lendude’s picture

StatusFileSize
new834 bytes

Moving 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.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

dave reid’s picture

I just ran into this attempting to uninstall the toc_filter module with a config deployment.