Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
help.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2024 at 15:02 UTC
Updated:
9 Apr 2024 at 04:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
andypostComment #4
spokjeAfter applying the MR I still see a few textual references to the help_topics module and at least two test modules with the name help_topics in them.
I guess we want to remove all of those as well?
Comment #5
andypostComment #6
andypost@Spokje I see no mentions, all from
git grep help_topicsis related to help moduleOnly update hooks has 2 mentions but I see no reason to remove it
Comment #7
spokjeAh, so something like
hook_help_topics_info_alteris actually used by the help module?Comment #8
andypostYes, help topics are plugins)
Comment #9
andypostbtw it's time to release as project https://www.drupal.org/sandbox/jhodgdon/2369943
Comment #10
andypostComment #11
smustgrave commentedAll removal so easy to review. Removal didn't break anything so looks fine to me.
Comment #12
catchI don't think we can go straight to removal. The problem is that if you have a site with help_topics enabled, and update to 11.x, you'll get the missing module error message, then you can't uninstall it because it's not in the filesystem.
For previous merged modules, we've marked them obsolete, with an update to uninstall them, and a hook_requirements() to prevent them being re-installed. That guarantees the module is uninstalled everywhere, so it can then be safely removed in 12.x
All the other code can be removed though, so most of the MR is fine.
Comment #13
andypostThe module is uninstalled by help module's post update hook, so we can remove it safely until the hook is here
Comment #14
andypostupdate hook is not enough as screenshot points, so I marked module obsolete
so it allows to remove the obsolete stub in 12.x
Comment #15
andypostComment #16
catchThis looks good but it also needs a hook_requirements() to prevent the module being re-installed. Any existing or 9.5 obsolete module should have one as an example.
Comment #17
andypostSo the stub should be obsolete and hidden, and all tests pass
Comment #18
andypostHope the better title and may need CR
Comment #19
andypostBut there's existing CR https://www.drupal.org/node/3382015 which can be linked here
Comment #20
andypostupdated IS
Comment #21
catchStill needs the hook_requirements() to prevent the module from being enabled.
Comment #22
andypostobsolete/hidden state - means it can't be installed via UI and prevents drush from doing it
Comment #23
andypostBut the module still available to uninstall via UI!
Comment #24
catchSorry I forgot we added this support to obsolete modules centrally instead of the hook_requirements(), in that case, it looks good to me!
Comment #25
alexpottCommitted 31e7810 and pushed to 11.x. Thanks!
Comment #28
andypostThere's follow-up for CI job #3436055: Validatable config should skip obsolete modules