- ๐ซ๐ทFrance andypost
As help topics can be set as stable it needs to solve this issue
how to mark it stable if it should be merged into help, probably it's all goes to 10.2
- ๐ซ๐ทFrance andypost
As I got we still need to mark the module stable the same time as remove "experimental" from codebase
Also the same commit should update all
@internal
interfaces with comment that it's experimental until move in ๐ Mark Help topics as a stable module Closed: won't fix - ๐ฌ๐งUnited Kingdom catch
Per discussion in ๐ Mark Help topics as a stable module Closed: won't fix I think this is the next step for help topics now. We can move the API and make some documentation updates in one patch (or more if it's easier, but hopefully one), and then the actual help topics themselves can be moved to their respective modules separately. Then we'll need a further follow-up to mark help_topics module obsolete once everything is moved.
- last update
over 1 year ago Build Successful - @andypost opened merge request.
- Status changed to Needs review
over 1 year ago 7:44pm 30 April 2023 - ๐ซ๐ทFrance andypost
Initial move
- classes with BC shims in help_topics as on update container will reference old classes
- routing and service, needs careful review as I started to add type-hints
- template and schemaNeeds work
- hook_help rewording
- move tests without BC
- add update hook to disable help_topics and upgrade test - last update
over 1 year ago Build Successful - ๐ซ๐ทFrance andypost
Looks it's easy to review as patch when files are moved
- last update
over 1 year ago 29,303 pass, 52 fail - last update
over 1 year ago 29,303 pass, 52 fail - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 29,319 pass, 45 fail - ๐ซ๐ทFrance andypost
-
+++ b/core/modules/help/config/optional/block.block.claro_help_search.yml @@ -0,0 +1,29 @@ +id: claro_help_search
it may have conflict when both help & help_topics enabled and search installed to add the block
-
+++ b/core/modules/help/config/optional/search.page.help_search.yml @@ -0,0 +1,11 @@ +dependencies: + module: + - help
this block should be kept by upgrade path but different dependency
-
+++ b/core/modules/help/src/Plugin/HelpSection/HelpTopicSection.php @@ -127,6 +127,7 @@ protected function getPlugins() { + $this->topLevelPlugins = [];
found bug when no topics available sorting bellow fails as NULL coming instead of array
-
+++ b/core/modules/help/tests/src/Functional/HelpTopicsSyntaxTest.php @@ -1,12 +1,12 @@ -use Drupal\help_topics_twig_tester\HelpTestTwigNodeVisitor; ... +use Drupal\help_twig_tester\HelpTestTwigNodeVisitor;
fixed
-
- last update
over 1 year ago 29,362 pass, 6 fail - ๐ซ๐ทFrance andypost
Probably we need to remove optional config from help topics to solve #20.1
- last update
over 1 year ago 29,366 pass, 2 fail - last update
over 1 year ago 29,364 pass, 2 fail - last update
over 1 year ago 29,363 pass, 2 fail - ๐ซ๐ทFrance andypost
Looks like everything works and now needs review before adding test for upgrade path - should we disable help_topics or not?
Hope there's no custom modules depending on experimental module - ๐ซ๐ทFrance andypost
The last failed test
ViewsFixRevisionIdUpdateTest
using to install extra module before running updates and search plugin (which already configured on 9.4 dump) can't find tableThat's because help topics require re-index each time new topic(files) installed see
\Drupal\help\HelpSectionManager::clearCachedDefinitions()
To fix last test it needs to modify the test or add kill-switch to prevent indexing to access not-created-yet database table
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 29,364 pass 22:43 19:45 Running19:16 18:40 Running- ๐บ๐ธUnited States Amber Himes Matz Portland, OR USA
Regarding the upgrade path tests and related tasks...I'm reading the docblock for core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php, which seems like a good to-do list thought I've never done this before. @andypost is this what needs to be done? I will work on that if so.
* To write an update test: * - Write the hook_update_N() implementations that you are testing. * - Create one or more database dump files, which will set the database to the * "before updates" state. Normally, these will add some configuration data to * the database, set up some tables/fields, etc. * - Create a class that extends this class. * - Ensure that the test is in the legacy group. Tests can have multiple * groups. * - In your setUp() method, point the $this->databaseDumpFiles variable to the * database dump files, and then call parent::setUp() to run the base setUp() * method in this class. * - In your test method, call $this->runUpdates() to run the necessary updates, * and then use test assertions to verify that the result is what you expect. * - In order to test both with a "bare" database dump as well as with a * database dump filled with content, extend your update path test class with * a new test class that overrides the bare database dump. Refer to * UpdatePathTestBaseFilledTest for an example.
- ๐ซ๐ทFrance andypost
@Amber no, looking at LB patch - all
@internal
blocks has changes, a-la@internal + * Tagged services are internal.
I need help merging
hook_help()
from topics intohelp_help()
there's few tricky wordings I can't paraphrase for help module+++ b/core/modules/help/help.api.php @@ -79,6 +109,22 @@ function hook_help_section_info_alter(array &$info) { + * @internal + * Help Topics is currently experimental and should only be leveraged by + * experimental modules and development releases of contributed modules. + * See https://www.drupal.org/core/experimental for more information.
I mean this doc-blocks, I fixed the most of them by removing this but it needs something like patch did for LB #3041053: Mark Layout Builder as a stable module โ
- last update
over 1 year ago 29,376 pass - Status changed to Needs work
over 1 year ago 5:40pm 6 May 2023 - ๐บ๐ธUnited States smustgrave
Tested on 10.1 with a standard profile.
Had help_topics preinstalled
Applied the patch
The help section is working fine
No errors in the logs.
Using the site normally for creating content no issues. So moving things didn't cause any regression.Moving to NW for the upgrade path + tests.
- ๐บ๐ธUnited States smustgrave
Oh also ran update hooks after the patch and those ran fine. Forgot to mention.
- ๐ซ๐ทFrance andypost
Thank you! so only few missing
@internal
and upgrade tests) - ๐ซ๐ทFrance andypost
Probably it needs follow-up and todo to clean-up ViewsFixRevisionIdUpdateTest
as plugin cache for topics should be cleaned on code deploy we reseting search index on every action
- last update
over 1 year ago 29,378 pass - last update
over 1 year ago 29,378 pass - last update
over 1 year ago 29,378 pass - last update
over 1 year ago 29,378 pass - last update
over 1 year ago 29,378 pass - ๐ซ๐ทFrance andypost
squashed last commits to simplify review by commits
- ๐ซ๐ทFrance andypost
Will need rebase after ๐ Resolve test failures on 11.x branch Fixed
- last update
over 1 year ago 29,379 pass - last update
over 1 year ago 29,384 pass - Status changed to Needs review
over 1 year ago 7:49pm 10 May 2023 - ๐ซ๐ทFrance andypost
Added upgrade tests
- one when help topics already installed, using fixture for search page to make sure dependencies updated
- second to make sure block and search page is installed from optional configProbably it needs to change name
help_update_10100
tohelp_update_10200
for 10.2 - last update
over 1 year ago 29,384 pass - last update
over 1 year ago 29,384 pass - last update
over 1 year ago 29,384 pass - last update
over 1 year ago 29,384 pass - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - ๐ซ๐ทFrance andypost
We should import new config as hard-coded data because it may change over time but this update hook should always install expected page and block
- ๐บ๐ธUnited States Amber Himes Matz Portland, OR USA
Hiding patch file since we're using merge requests for this issue.
- last update
over 1 year ago 29,360 pass, 2 fail - last update
over 1 year ago 29,383 pass, 2 fail - ๐บ๐ธUnited States smustgrave
Removing credit from myself. Rebased to trigger a rebuild to see if failure is random. Retest button was unavailable.
- last update
over 1 year ago 29,384 pass - ๐ซ๐ทFrance andypost
Sorry rebased again, earlier I got CORS errors in browser and Gitlab was down
btw I;m not sure the fix https://git.drupalcode.org/project/drupal/-/merge_requests/3900/diffs?co... is good but I found no other way to allow this test pass
Also wording for new comments and the moving of properties to constructor promoted arguments (as the code is new for help module) needs review
- last update
over 1 year ago 29,384 pass - ๐ซ๐ทFrance andypost
I squashed last 2 commits to upgrade path one, now it will be easier to review and rebase
- Status changed to RTBC
over 1 year ago 10:29pm 11 May 2023 - ๐บ๐ธUnited States smustgrave
Retested same as #29
Had help_topics preinstalled
Applied the patch
The help section is working fine
No errors in the logs.
Using the site normally for creating content no issues. So moving things didn't cause any regression.
Database updates run without issu - Status changed to Needs review
over 1 year ago 2:27am 12 May 2023 - ๐บ๐ธUnited States Amber Himes Matz Portland, OR USA
Thanks for testing @smustgrave. I haven't had a chance to complete my review of the grammar of newly added comments, as @andypost requested. (I have found 1 error so far.) I'll update the issue to Needs work after my review is completed.
- Status changed to Needs work
over 1 year ago 2:53am 12 May 2023 - ๐บ๐ธUnited States Amber Himes Matz Portland, OR USA
I've added comments and suggestions in GitLab, in the merge request.
- last update
over 1 year ago 29,389 pass - Status changed to Needs review
over 1 year ago 1:16am 13 May 2023 - ๐ซ๐ทFrance andypost
Thank you Amber! Applied all suggestions as extra commit and it needs follow-up for @todo to be filed.
I guessed in comment what it could be for but not sure enough, will git blame this weekend and file issue if nobody will do it )
- ๐บ๐ธUnited States Amber Himes Matz Portland, OR USA
I've opened the follow-up: โจ Display links to help topics provided by uninstalled modules Active .
- ๐ซ๐ทFrance andypost
Thank you, ๐ exactly words I wanted to find out
So only this todo fix is left
- last update
over 1 year ago 29,389 pass - ๐บ๐ธUnited States Amber Himes Matz Portland, OR USA
The MR was rebased to 11.x, so updating the version metadata in the issue to 11.x-dev.
- Status changed to RTBC
over 1 year ago 7:02pm 17 May 2023 - ๐บ๐ธUnited States smustgrave
Additional changes since review in #41 look good.
- last update
over 1 year ago 29,389 pass - Assigned to Amber Himes Matz
- Status changed to Needs work
over 1 year ago 10:46pm 18 May 2023 - ๐บ๐ธUnited States Amber Himes Matz Portland, OR USA
We decided in #3037230-26: Finalize the merge of Help Topics into Help โ that it makes sense to incorporate the changes in that MR into this one, since they affect several of the same files. So I am doing that.
- last update
over 1 year ago 29,448 pass, 2 fail - last update
over 1 year ago 29,448 pass, 2 fail - Status changed to Needs review
over 1 year ago 7:49pm 15 June 2023 - ๐ซ๐ทFrance andypost
Rebased after ๐ Enable more service autowiring by adding interface aliases to core modules Fixed
Added changes from #3037230-26: Finalize the merge of Help Topics into Help โ
Guess now it should be ready
- last update
over 1 year ago 29,448 pass, 2 fail - Status changed to Needs work
over 1 year ago 10:22pm 15 June 2023 - ๐บ๐ธUnited States smustgrave
Seems failure is legit to the issue.
Will keep an eye out for this back in the queue so hopefully can get into 10.2 early.
- ๐ซ๐ทFrance andypost
Yes newly added topic now is displayed in results
- last update
over 1 year ago Custom Commands Failed - Status changed to Needs review
over 1 year ago 6:46am 16 June 2023 - ๐ซ๐ทFrance andypost
Limited topics to
help_topic_test
module, to prevent collisions.
Previously installing help module in tests is not supposed that all topics will be accessible - last update
over 1 year ago 29,472 pass, 2 fail - last update
over 1 year ago 29,474 pass - last update
over 1 year ago 29,474 pass - Status changed to RTBC
over 1 year ago 2:45pm 16 June 2023 - ๐บ๐ธUnited States smustgrave
All green. Think this would be good for early 10.2
- last update
over 1 year ago 29,500 pass - last update
over 1 year ago 29,500 pass - last update
over 1 year ago 29,509 pass - ๐ซ๐ทFrance andypost
Rebased after ๐ Update topic contact.setting_default to use route instead of "/contact" Fixed
- ๐ซ๐ทFrance andypost
Rebased after ๐ Add tests to enforce correct use of help_topic_link and help_route_link functions Fixed
- last update
over 1 year ago 29,532 pass - ๐ซ๐ทFrance andypost
It could have collision with ๐ Fix up minor copy problems in help topics Fixed
- Status changed to Needs work
over 1 year ago 3:19am 23 June 2023 - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Did a review of this and it all looks good to me with one exception.
Per ๐ [policy, then docs] Change how we deprecate classes Fixed should we be adding a constructor with a trigger_error for the stub classes?
Huge effort folks
- Status changed to Needs review
over 1 year ago 2:07pm 23 June 2023 - ๐ซ๐ทFrance andypost
I'm sure we should skip adding deprecation to constructor of help_topics's classes because:
- module initially marked as experimental and after commit it becoming deprecated, there's no policy yet #3135100: [policy and meta] Provide a proper mechanism for deprecating modules and themes โ
- all this classes are@internal
intentionally as they been supposed to be moved to help
- new classes has this mark in doc-blocks only where it supposed (no BC promises), inspired by #3041053: Mark Layout Builder as a stable module โWould be great to have a docs page for beta stage a-la we have for alphas https://www.drupal.org/about/core/policies/core-change-policies/experime... โ
- last update
over 1 year ago 29,552 pass - ๐ซ๐ทFrance andypost
Rebased and added
@internal
to\Drupal\help_topics\HelpTwigExtension
(somehow it was missing) - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
I've asked for an RM opinion on the depreciation errors
- Status changed to RTBC
over 1 year ago 9:39pm 24 June 2023 - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Release managers agreed this doesn't need to trigger depreciation errors
- last update
over 1 year ago 29,554 pass -
larowlan โ
committed b8bb2e9f on 11.x
Issue #3087499 by andypost, smustgrave, Amber Himes Matz: Merge Help...
-
larowlan โ
committed b8bb2e9f on 11.x
- Status changed to Fixed
over 1 year ago 6:52am 26 June 2023 - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Committed to 11.x
Added a release note and a change record.
- ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
I held off on change record until the parent is resolved
- ๐บ๐ธUnited States benjifisher Boston area
I noticed that
help-topics.html.twig
was left behind in the stub module. I asked about it on Slack, and I am adding a note to the issue summary (Proposed resolution section) explaining it. - ๐ฎ๐นItaly mondrake ๐ฎ๐น
Filed ๐ Fix HelpSearch queries to ensure db identifiers are properly escaped. Fixed for follow-up.
- Status changed to Needs review
over 1 year ago 10:42am 15 July 2023 - ๐บ๐ธUnited States xjm
Adding some missed issue credits for the initial IS and updates, reviewers, and release manager feedback. (Which ends up being everyone plus quietone.)
Also, I am not convinced of this approach. Internal APIs are supposed to receive BC and deprecations where possible, and Help Topics is a beta experimental module (not alpha) which means it gets that BC promise.
Quoting myself from Slack:
Counterpoint: Is HT alpha or beta? If it's alpha, definitely nothing needed. If it's beta, we should consider what happens if contrib has integrated with it and check for contrib usages. IIRC it is beta.
We broke BC for Layout Builder in beta and people were pissed AF, but LB was a major extension point with impacts on data model and upgrade path. Whereas contrib help text is vanishingly rare. So my guess is that we don't need to trigger deprecations, but I would still check to ensure we're not causing fatal errors during minor updates or breaking existing contrib integrations.
Not reverting yet, but setting NR so it doesn't get sucked into the void.
- Issue was unassigned.
- ๐ซ๐ทFrance andypost
@xjm do you mean to file follow-up to add deprecation warnings? I think it needs new issue to discuss in which places as there's no contrib using topics because they supposed to be merged to help initially.
- Status changed to RTBC
over 1 year ago 2:14pm 17 July 2023 - ๐บ๐ธUnited States smustgrave
I also searched for "help_topics" in http://grep.xnddx.ru/ and only seemed to find matches in forks of core.
- ๐บ๐ธUnited States xjm
This is probably the best status while the release managers hash things out. @catch did mention using parts of HT's API on a client site (albeit later undoing that). I'd like to review what's in scope internal BC-break-wise myself. It would also help me do so if there were a change record with more details than "Help ate Help Topics"; we should have one anyway.
- ๐ฌ๐งUnited Kingdom catch
The usage I did on a client site was this:
/** * Implements hook_help_topics_info_alter(). */ function mymodule_help_topics_info_alter(array &$info) { // Remove all help topics except our own. foreach ($info as $name => $definition) { if ($definition['provider'] !== 'mymodule') { unset($info[$name]); } } }
This was to use help topics as a cross-site help repository on a site that doesn't otherwise use help module, although the MR isn't merged yet so it's not in production anywhere or anything.
However the hook name hasn't changed as a result of this MR, so this would be unaffected, I thought it might be and was ready to change it when we go to 10.2.x, but just checked and it was preserved across (which makes sense given they're still called help topics, I just hadn't realised).
- ๐ซ๐ทFrance andypost
@catch this workaround could be removed because next step is merged too ๐ Move help topics to core or the correct modules Fixed
Exactly this commit https://git.drupalcode.org/project/drupal/-/merge_requests/4257/diffs?co...
- ๐ซ๐ทFrance andypost
@xjm I filed draft CR (maybe it needs to mention namespace changes as well) OTOH release note is more bold for developers
- ๐ซ๐ทFrance andypost
FYI this issue and ๐ Add help_search plugin to the base admin theme test Fixed are only blockers to mark the plan and parent issues fixed ๐ฑ Help Topics module roadmap: the path to beta and stable Fixed
- ๐ฌ๐งUnited Kingdom catch
I've added this to the change record:
Help topics continue to be defined in a
my_module/help_topics
directory, and the existing alter hook,hook_help_topics_info_alter()
remains the same.The
help_twig.extension
service remains the same.The
plugin.manager.help_section_topics
service has changed toplugin.manager.help_topic
.The only class here that isn't a controller/tagged service is the plugin manager, but there would be no reason to use that in contrib or custom code, so I don't think bc for any of the classes/services would help (no pun intended...) anyone here. The two actual integration points - providing help topics and the alter hook, are unchanged by the move.
- ๐ซ๐ทFrance andypost
The
plugin.manager.help_section_topics
service has changed toplugin.manager.help_topic
.This is not true
The
plugin.manager.help_section_topics
was a decorator and removedThe
plugin.manager.help_topic
using the same name, just defined in help module now - this is topics discovery - ๐ฌ๐งUnited Kingdom catch
Ah thanks I was wondering about that, edited the CR again.
- ๐ซ๐ทFrance andypost
I set RTBC the roadmap issue, technically it depends on that one
Also I updated โ https://www.drupal.org/community-initiatives/documentation-and-help-init... โ
- Status changed to Fixed
about 1 year ago 10:15am 17 October 2023 - ๐ฌ๐งUnited Kingdom longwave UK
Given this was committed months ago, I've published the change record. I don't feel like a BC break here is going to affect anyone as much as breaking Layout Builder would have done.
As stated in #83 there is not a lot we can do if someone was explicitly depending on the now-uninstalled module, but as it was experimental anyway the policy for these is "use at your own risk" and so I don't think we should be introducing an awkward BC layer that we have to remove again in the future.
I've also updated https://www.drupal.org/about/core/policies/core-change-policies/experime... โ to note that Help Topics is now part of Help.
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
about 1 year ago 3:34am 10 November 2023 - ๐ซ๐ทFrance andypost
- ๐บ๐ธUnited States Amber Himes Matz Portland, OR USA
Adding tag per Gรกbor's request.
- ๐ฉ๐ชGermany hchonov ๐ช๐บ๐ฉ๐ช๐ง๐ฌ
I am not really sure why config factory instead of the config entity API was used here to create new entities, but this is not the right way. The config_plus โ modules catches such issues and throws errors, which is how I've found out about this. Maybe I am missing something or should I open a new issue to fix this?
- ๐ฉ๐ชGermany hchonov ๐ช๐บ๐ฉ๐ช๐ง๐ฌ
Actually I've just discovered that an existing search page config in the system is even missing the uuid and this is still breaking for me when saving as a config entity. This is what the config_plus module was created initially for to prevent from configs in the system without uuids. It turns out this config has the issue. Further it is not even possible to set the update due to core checking for the uuid changing ignoring the fact that it might not be there at all. I am just including a quick fix in here and we can discuss how to proceed.