Problem/Motivation

Search is being removed from core. #3581109: Move HelpSearch to Search sub-module moved the search plugin but not the help text about how it should be configured.

Steps to reproduce

Proposed resolution

Move the help text about help search to search_help module.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

LLM disclosure

LLM was used to identify this remaining bit and to create the MR. It is human reviewed and adjusted though.

Issue fork drupal-3614983

Command icon 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:

Comments

gábor hojtsy created an issue. See original summary.

gábor hojtsy’s picture

Issue summary: View changes
gábor hojtsy’s picture

Status: Active » Needs review
gábor hojtsy’s picture

Title: Move help text explaining how to enable help search into the search module » Move help text explaining how to enable help search into the search_help module
gábor hojtsy’s picture

Issue summary: View changes
smustgrave’s picture

Status: Needs review » Needs work

sjpagan made their first commit to this issue’s fork.

sjpagan’s picture

PHPCS was just indentation in the switch block. PHPStan was three missing imports: RouteMatchInterface, Url and StringTranslationTrait. Both jobs pass now on pipeline 913692, along with everything else.

Ran the tests locally on the same commit: search_help gives 3 tests / 109 assertions, help gives 27 tests / 11633 assertions.

I also checked hook_help output on a real site. Without search_help installed, the text about configuring help search isn't there; with it installed, search_help provides it. The help module output is identical either way.

Two Functional Javascript jobs failed on the first run and passed on retry. One of them was the console error already tracked in #3472624.

sjpagan’s picture

Status: Needs work » Needs review
gábor hojtsy’s picture

Status: Needs review » Reviewed & tested by the community

Even though its my issue, I think @sjpagan contributed significant enough (including manual testing) that I am safe to RTBC :) Also in reference to @smustgrave liking it in #7.

larowlan’s picture

Status: Reviewed & tested by the community » Needs work

Comments on the MR, unfortunately it doesn't work

sjpagan’s picture

Status: Needs work » Needs review

@larowlan Applied your suggestion. RemoveHook alone leaves the help module without a hook_help implementation, so /admin/help/help returns 404. The method also needs #[Hook('help', module: 'help')]: it replaces HelpHooks::help(), calls it, and appends the section on help.page.help.

gábor hojtsy’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.24 MB

Good find! Configuring help search is now visible (tried with current tugboat preview). I think its a pain that it needs to be done this way but if we want to match this instead of removing, it needs to be done :) The search field already shows up once this module is enabled too. I think this is RTBC though if we want to keep this bit of help instead of removing it.

larowlan’s picture

Status: Reviewed & tested by the community » Needs review

Are we happy with the order change? In HEAD Configuring search pages is the last section, in the screenshot in #14 it is now first?

larowlan’s picture

Status: Needs review » Reviewed & tested by the community

Wait that's a different screenshot, testing on tugboat instead

larowlan’s picture

Issue summary: View changes
StatusFileSize
new469.81 KB

Confirming the order and appearance is correct, screenshot

larowlan’s picture

Status: Reviewed & tested by the community » Needs work

Left a comment on the test

sjpagan’s picture

Status: Needs work » Needs review

quietone made their first commit to this issue’s fork.

quietone’s picture

Issue summary: View changes
StatusFileSize
new35.79 KB

I'd like to avoid a functional test with only 1 assertion so I merged the two test methods into one and then the setUp function could be removed. I also tweak the addition of the new section so that it is in the same data list. This avoid a blank line before 'Configuring help search' as in the below screenshot.