Problem/Motivation
#2920309: Add experimental module for Help Topics should move the help topics from the experimental module to the correct locations - either core/help_topics or each extension (module/theme)'s help_topics directory.
This can only be done as the last step before going Stable, so it is postponed for the moment.
Proposed resolution
Move the topics to their final spots, and remove the special case that the experimental help_topics module can provide topics for other providers that is in the Discovery class.
Remaining tasks
Postponed on #3037230: Finalize the merge of Help Topics into Help
Make a patch. Don't commit the patch until Help Topics is being made stable.
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
None
| Comment | File | Size | Author |
|---|
Issue fork drupal-3025577
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3025577-move-help-topics
changes, plain diff MR !4257
Comments
Comment #3
jhodgdonThis no longer needs to be postponed. Patch may conflict with #3037229: Extract help topics label from meta tag in Twig files however, as that issue is updating a few topic titles.
As a note, HelpTopicPluginManager is already scanning core, modules, and themes for subdirectories called help_topics. So, we can go ahead and move the topics that are now in core/modules/help_topics/help_topics to new subdirectories.
Comment #4
jhodgdonIt made more sense to me to do this along with #3072312: Review/fix/delete existing help topics, which was rewriting all of these topics that belonged somewhere else. So, closing this as a duplicate.
Comment #5
jhodgdonI recently asked in Slack and found out from @xjm that all of the code *and topics* related to the Help Topics module need to stay under core/modules/help_topics until we are Stable.
So I am reopening this issue instead of combining it with the other one. Adding a note that it can only be done as a last-minute thing.
Comment #7
andypostHere's a patch and postpone it #3027054: Help Topics module roadmap: the path to beta and stable
Comment #8
jhodgdonThat patch looks good. Eventually we'll need to add to the patch so that it also moves all the help topics files to their correct locations, but doing that now (before all the topics exist) would be silly. The tests will fail with this current patch because it removes the exception that topics can live in the help topics main directory instead of their own module directories.
Comment #14
andypostI think we can proceed here as it already happening #3343600: Move help topics to actions module
Comment #15
Abhisheksingh27 commentedAdding Reroll for D10.
Comment #16
alexpottWhy do we need to remove this restriction? Or to turn the question around. Why should module A be able to provide a help topic for module B. I might be missing something but I'm not sure why we'd want that.
I would have expected this patch to be the following change
i.e. we remove the help topics special case.
Comment #17
quietone commentedThe help_topics for Action are being moved because the module is being deprecated, it is not because of the work to make Help Topics stable. #3027054: Help Topics module roadmap: the path to beta and stable. In the Issue Summary for that issue it states that parent of this issue is not to be worked on until "all of the required issues above have been resolved, and all the questions answered". There are still 5 issues in that category listed on 3027054 that have not been resolved. I think this needs to wait until #3037230: Finalize the merge of Help Topics into Help is active.
Therefore I am restoring the postponed status.
Comment #18
andypostIt should remain postponed until topics are moved to help module, the move in #3087499: Merge Help Topics classes into Help with BC layer
Comment #20
andypostComment #22
andypostCreated MR
Comment #23
smustgrave commentedBeautiful thing to see all those topics landing in their respective modules.
The placement of the files seem to fall in the correct modules to me.
Comment #24
quietone commentedI checked the file renaming and did not find any errors. I would like to know why test coverage is being removed.
Comment #25
andypostThe test case
testDiscoveryExceptionProviderMismatchwas removed because it was testing that topics are living in help module (help topics previously) and this why commit message said this barrier is removedComment #26
andypostI mean the https://git.drupalcode.org/project/drupal/-/merge_requests/4257/diffs?co... commit
Comment #27
smustgrave commentedRemarking.
Comment #28
quietone commented@andypost, thanks. I reread the test more carefully this time. I think this is ready to commit but it is too late for me to do so now.
Comment #29
andypostRebased after #3336065: Move help topics to tour module
Comment #31
larowlanApplied on top of #3376261: Move help topics to book module and pushed to 11.x - Thanks!