Problem/Motivation
To improve search settings help text.
Steps to reproduce
Go to /admin/config/search/pages to view the page
Proposed resolution
- Shorten the label in the "Indexing throttle" section. Do not mention "cron" again.
- Remove the second link to the cron configuration page (same section).
- Shorten the text and remove italics from the "Default indexing settings" section.
Remaining tasks
No task are remaining
User interface changes
- unnecessary settings text removed
- duplicate cron information removed
- content ranking is now sortable
- and italics removed
Before

After

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.
| Comment | File | Size | Author |
|---|---|---|---|
| #36 | before2023.png | 116.23 KB | ericrubino |
| #22 | 463106-22.patch | 2.39 KB | abhijith s |
| #13 | search-admin-markup-463106-13.patch | 2.4 KB | ao5357 |
| #9 | 463106-9.patch | 3.27 KB | star-szr |
| #9 | interdiff.txt | 2.14 KB | star-szr |
Comments
Comment #1
jhodgdonMany 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".
Comment #2
kika commentedI think Xano still has a point here in the original report:
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.
Comment #3
kika commentedComment #4
ao5357 commentedApplied 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.
Comment #5
webchickOne 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
Comment #6
xanoOr 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.
Comment #7
ao5357 commentedApplied 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()?
Comment #8
xanoMarking 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.
Comment #9
star-szr@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:
After:
Not sure how I feel about adding
<p>tags but without them the text ends up uncomfortably close to the table in Seven:Comment #13
ao5357 commentedAfter reviewing the overlapping changes from #2572689, I've rolled a new patch against 8.2.x with the spirit of this issue:
Did cursory runs of phpunit and simpletest, and none of the errors were related to the admin page text.
Comment #14
ao5357 commentedSee #2211241-33: Refactor search_reindex() into separate functions for introduction of new text that I subsequently removed with this patch.
Comment #21
abhijith s commentedPatch #13 shows error when applying.Needs reroll
Comment #22
abhijith s commentedRerolled patch #13.Please check
Comment #23
ao5357 commentedI reviewed the patch reroll and it looks good to me. Thanks for doing that, @abhijith-s !
Comment #28
smustgrave commentedComment #29
ranjit1032002Patch #22 applied successfully and it's working as expected.
Comment #30
smustgrave commentedThanks for the interest but this still needs usability review.
Comment #31
smustgrave commentedStill 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.
Comment #32
ericrubino commentedComment #33
ericrubino commentedComment #34
ericrubino commentedComment #35
ericrubino commentedComment #36
ericrubino commentedComment #37
ericrubino commentedComment #38
benjifisher@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
with
I have to think a bit about whether we will miss any of the deleted text.
Comment #39
benjifisherUsability 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.
Comment #40
smustgrave commented#22 still applies for 11.x
So believe this can be moved to RTBC
Comment #41
quietone commentedI'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.
Comment #46
xjmSaving credits, and attributing usability review meeting participants
Comment #48
xjmI 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!