Problem/Motivation
Forum provides default configuration and content including fields, a node-type, a vocabulary and a taxonomy term.
Until now we were unsure about what should happen to that when you uninstall forum.
Proposed resolution
We've settled on what should happen is:
- For correct dependency management, and to unblock #2140511: Configuration file name collisions silently ignored for default configuration , all of the forum module's supplied configuration should be removed when the module is uninstalled. This means its vocabulary, its node type, and its field.
- The taxonomy field should have a dependency on the taxonomy vocabulary, ensuring that the field data must be purged first, then the field deleted, then the vocabulary deleted. If the field data has not been purged, then the module cannot be uninstalled.
- If other config entities have added the taxonomy field, they too are subject to the same rules.
- Forum nodes must be deleted before the module is uninstalled (same as #2).
- Forum taxonomy terms must be removed before the vocabulary can be deleted (same as #2 - as the 'forum_container' field will dictate this too).
Remaining tasks
New patch
User interface changes
Can't uninstall forum whilst content exists.
API changes
None
Original report by @beejeebus
over in #1776830-100: [META-1] Installation and uninstallation of configuration provided by a module that belongs to another module's API, we decided on the rules for what should happen when a module is uninstalled.
this patch should make forum behave that way - only remove configuration entities during uninstall if there is a dependency issue.
geez i wish pings worked, oh hai larowlan.