Problem/Motivation

To improve search settings help text.

Steps to reproduce

Go to /admin/config/search/pages to view the page

Proposed resolution

  1. Shorten the label in the "Indexing throttle" section. Do not mention "cron" again.
  2. Remove the second link to the cron configuration page (same section).
  3. Shorten the text and remove italics from the "Default indexing settings" section.

Remaining tasks

No task are remaining

User interface changes

  1. unnecessary settings text removed
  2. duplicate cron information removed
  3. content ranking is now sortable
  4. and italics removed

Before
before screenshot 2023

After
After Screenshot 2023

API changes

No API changes

Data model changes

No data model changes

Release notes snippet

No added release notes

Original report by Xano

The search settings page repeats the word "settings" a lot. Also, information about cron is being stated twice. Content ranking can probably converted to a sortable table. The "Indexing settings" fieldset contains italic text which should not be italic at all, but set as #description and it should not explain the default values are probably the best to use, since that is mostly the case with default values.

Comments

jhodgdon’s picture

Status: Active » Closed (won't fix)

Many of these items have been fixed, and some are duplicates of other issues. At this point, unless we have serious errors in UI, the UI is fixed for 7.x, so I am just going to close this as a "won't fix".

kika’s picture

Title: Rework admin/settings/search » Improve indexing settings help text in admin/settings/search
Version: 7.x-dev » 8.x-dev
Status: Closed (won't fix) » Needs review
StatusFileSize
new52 KB
new58.33 KB
new1.11 KB

I think Xano still has a point here in the original report:

The "Indexing settings" fieldset contains italic text which should not be italic at all, but set as #description and it should not explain the default values are probably the best to use, since that is mostly the case with default values.

The attached patch:

1. Removes <p><em> markup from the help string. If there is a need for emphasized text, let's figure out how to pass message importance classes to the form elements.
2. Removes unneccessary "The default settings should be appropriate for the majority of sites." from the help text.

PS: It would be nice for fieldgroups to support #description property natively and re-use its styling.

kika’s picture

Title: Improve indexing settings help text in admin/settings/search » Improve indexing settings help text
Component: search.module » user interface text
ao5357’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.12 KB

Applied patch manually (2 lines were removed from search.admin.inc since patch 2) and the result was the same as the sample images. Ran all the search module tests and got 2080 passes and 0 fails.

patch with 2-line difference attached.

webchick’s picture

Status: Reviewed & tested by the community » Needs work

One minor thing is we should do t("...") to avoid having to escale the backslash in won\'t, so needs work for that.

I'm also wondering the rationale of removing that sentence about the defaults being fine. If I were confronted with those settings, I'd literally have no idea what to change them to, so that sentence actually helps me breathe a sigh of relief that I can safely ignore them unless I employ someone who used to work at Google. :P

xano’s picture

Status: Needs work » Needs review
StatusFileSize
new1.13 KB

Or we just remove the contraction, which is recommended by our own writing guide, and if it's not (oh, the irony), then by many other writing guides.

ao5357’s picture

Applied the patch from 6 and confirmed the change of language in the interface.

@webchick, while I also appreciate the reassuring-ness of the sentence we removed, I'm not sure conceptually that it fits. Drupal should ship with reasonable defaults for all configuration options. If the minimum word length and CJK handling really are appropriate for the vast majority of sites, it might be a better idea for them not be options at all and rely on contrib to override them. Or, changing them could trigger confirm_form()?

xano’s picture

Status: Needs review » Reviewed & tested by the community

Marking RTBC, as the issue raised in #5 was fixed, and confirmed in #7.

We design for the 80%, which means that whatever defaults Drupal offers, they should be appropriate for the majority of sites.

star-szr’s picture

Title: Improve indexing settings help text » Improve search settings help text
Status: Reviewed & tested by the community » Needs review
StatusFileSize
new42.76 KB
new43.43 KB
new29.22 KB
new46.98 KB
new53.81 KB
new2.14 KB
new3.27 KB

@Xano - please don't RTBC your own patch.

I'm not sure I agree with the sentence removal either, but while we're at it, how about we fix the other bit of help text that doesn't display at all, and if it did display it would also be wrapped in <em> tags as well.

Before:

463106-indexing-before.png

463106-ranking-before.png

After:

463106-indexing-after.png

463106-ranking-after.png

Not sure how I feel about adding <p> tags but without them the text ends up uncomfortably close to the table in Seven:

463106-ranking-after-no-p.png

alansaviolobo queued 9: 463106-9.patch for re-testing.

Status: Needs review » Needs work

The last submitted patch, 9: 463106-9.patch, failed testing.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

ao5357’s picture

Version: 8.1.x-dev » 8.2.x-dev
Issue summary: View changes
Status: Needs work » Needs review
Issue tags: +MWDS2016
StatusFileSize
new2.4 KB

After reviewing the overlapping changes from #2572689, I've rolled a new patch against 8.2.x with the spirit of this issue:

  • Removed the contraction and switched to single quotes
  • Removed the duplicate "cron maintenance tasks" descriptions for indexing run information
  • Moved the ['info'] markup into the fieldset description and took out the p and em tags
  • Took out wording that explains what 'default' means, or mentions that the default search index is the default search index

Did cursory runs of phpunit and simpletest, and none of the errors were related to the admin page text.

ao5357’s picture

See #2211241-33: Refactor search_reindex() into separate functions for introduction of new text that I subsequently removed with this patch.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

abhijith s’s picture

Patch #13 shows error when applying.Needs reroll

Checking patch core/modules/search/src/SearchPageListBuilder.php...
error: while searching for:
    );
    $form['indexing_throttle']['cron_limit'] = array(
      '#type' => 'select',
      '#title' => $this->t('Number of items to index per cron run'),
      '#default_value' => $search_settings->get('index.cron_limit'),
      '#options' => $items,
      '#description' => $this->t('The maximum number of items indexed in each run of the <a href=":cron">cron maintenance task</a>. If necessary, reduce the number of items to prevent timeouts and memory errors while indexing. Some search page types may have their own setting for this.', array(':cron' => \Drupal::url('system.cron_settings'))),
    );
    // Indexing settings:
    $form['indexing_settings'] = array(
      '#type' => 'details',
      '#title' => $this->t('Default indexing settings'),
      '#open' => TRUE,
    );
    $form['indexing_settings']['info'] = array(
      '#markup' => $this->t("<p>Search pages that use an index may use the default index provided by the Search module, or they may use a different indexing mechanism. These settings are for the default index. <em>Changing these settings will cause the default search index to be rebuilt to reflect the new settings. Searching will continue to work, based on the existing index, but new content won't be indexed until all existing content has been re-indexed.</em></p><p><em>The default settings should be appropriate for the majority of sites.</em></p>")
    );
    $form['indexing_settings']['minimum_word_size'] = array(
      '#type' => 'number',

error: patch failed: core/modules/search/src/SearchPageListBuilder.php:203
error: core/modules/search/src/SearchPageListBuilder.php: patch does not apply

abhijith s’s picture

StatusFileSize
new2.39 KB

Rerolled patch #13.Please check

ao5357’s picture

I reviewed the patch reroll and it looks good to me. Thanks for doing that, @abhijith-s !

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

smustgrave’s picture

Issue tags: +Needs usability review
ranjit1032002’s picture

Status: Needs review » Reviewed & tested by the community

Patch #22 applied successfully and it's working as expected.

smustgrave’s picture

Status: Reviewed & tested by the community » Needs review

Thanks for the interest but this still needs usability review.

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs issue summary update

Still waiting for UX review. But looking again at the issue summary not clear what is being updated. Think the issue summary should be updated for what the test changes are and why. Screenshots couldn't hurt.

ericrubino’s picture

Issue summary: View changes
ericrubino’s picture

Issue summary: View changes
StatusFileSize
new96.46 KB
new96.46 KB
ericrubino’s picture

Issue summary: View changes
ericrubino’s picture

Issue summary: View changes
StatusFileSize
new96.46 KB
ericrubino’s picture

Issue summary: View changes
StatusFileSize
new116.23 KB
ericrubino’s picture

benjifisher’s picture

Issue summary: View changes

@eric@erubino.net:

Thanks for the updated screenshots and for rewriting the issue summary.

I am making some further updates: looking at the patch from #22, I do not think it makes any changes to the table. And I want to be a little more specific about where the text is updated.

I think the biggest change is replacing the text

Search pages that use an index may use the default index provided by the Search module, or they may use a different indexing mechanism. These settings are for the default index. Changing these settings will cause the default search index to be rebuilt to reflect the new settings. Searching will continue to work, based on the existing index, but new content won't be indexed until all existing content has been re-indexed.

The default settings should be appropriate for the majority of sites.

with

Changing these settings will cause the default search index to be rebuilt to reflect the new settings. Searching will continue to work, based on the existing index, but new content will not be indexed until all existing content has been re-indexed.

I have to think a bit about whether we will miss any of the deleted text.

benjifisher’s picture

Status: Needs work » Needs review
Issue tags: -Needs usability review, -Needs issue summary update

Usability review

We discussed this issue at #3376176: Drupal Usability Meeting 2023-07-28. That issue has a link to a recording of the meeting. For the record, the attendees at the usability meeting were @AaronMcHale, @Emma Horrell, @benjifisher, @lukas.fischer, and @rkoller.

We agreed that the proposed changes are an improvement. We especially considered the text that is removed (as I pointed out in #38) and we decided that removing it is a good idea.

I already updated the issue description when I added #38, so I am removing the tag for an update.

smustgrave’s picture

Version: 9.5.x-dev » 11.x-dev
Status: Needs review » Reviewed & tested by the community
Issue tags: +Needs Review Queue Initiative

#22 still applies for 11.x

So believe this can be moved to RTBC

quietone’s picture

I'm triaging RTBC issues.

I read the issue summary and the comments. Thank you @eric@erubino.net for the issue summary update, it has made this task much easier. Also, thanks to @smustgrave for asking that it was done. Although, I do think that item 3 in the UI changes "content ranking is now sortable" is incorrect.

There has been a Usability review confirming that changes are OK. It is unfortunate that the patch is re-testing on 9.5 but this has been recently tested on 11.x. I have not found anything else that needs to be done here.

Leaving at RTBC.

xjm credited AaronMcHale.

xjm credited Emma Horrell.

xjm credited lukasfischer.

xjm credited rkoller.

xjm’s picture

Saving credits, and attributing usability review meeting participants

  • xjm committed 5b09f34b on 11.x
    Issue #463106 by ao5357, star-szr, kika, Xano, Abhijith S, ericrubino,...
xjm’s picture

I reviewed the changes carefully with a word diff, and manually tested the page with the patch applied.

When I first reviewed the diff, I was concerned about losing any reference to cron. (Site owners often don't realize that they need to configure cron, so referencing it is important.) I was particularly concerned about losing the link to the cron page. However, when manually testing, I see that the cron link is still mentioned at the top of the page. It's still clear in context, so that's okay.

Overall I think the tradeoff is worthwhile. I'm linking a couple related UX issues for this and related admin pages that would make good followups.

As a set of string changes, this issue is minor-version only, so I committed it to 11.x and did not backport. Thanks everyone!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.