- Issue created by @AaronMcHale
- 🇫🇷France vbouchet
I think the proposed solution / approach only describes the easy path: dependent modules can be uninstalled. But there are situations where a dependent module can't be uninstall because it is used by entities (whatever it is config entity or content entity).
As a first step, we should probably authorise uninstall of modules which all dependent modules are uninstallable as well.
Please find a patch to initiate that work. I have not updated the tests on purpose as I do expect discussion.
I used the form states api to check dependent modules when a module is checked for uninstall.
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 30,419 pass, 2 fail - Status changed to Needs review
over 1 year ago 7:43am 20 October 2023 - Status changed to Needs work
over 1 year ago 2:09pm 20 October 2023 - 🇺🇸United States smustgrave
Test failures.
Also believe will need test coverage.
- 🇮🇹Italy afagioli Rome
"This gets quite tedious"
Not sure "tediousness" can be an issue.Multi-step uninstall is pretty common to me. I find this process useful instead to better understand how that Drupal instance is made of.
Following though..
- 🇺🇸United States nicxvan
Postponing this only because uninstall can be destructive. I think manually checking the dependency tree is important.
Imagine we add this them someone uninstalled system, suddenly their site is just gone.
I think I would need a very convincing argument that the convenience of single step uninstall is outweighs the risks of accidentally uninstall to many modules.