Docs regression: the search is now showing duplicate results from all the various different versions

Bug #2056480 reported by Jane Sandberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
3.11
Fix Released
Medium
Unassigned

Bug Description

This is a regression caused by bug 2036328.

Previously, the search dropdown only provided results from latest (aka the main branch). This is the desired behavior, since it is more cluttery with all these duplicate results from all versions.

See http://irc.evergreen-ils.org/evergreen/2024-03-07#i_546757

Revision history for this message
Jane Sandberg (sandbergja) wrote :

Here is a branch to do this in the new Antora Lunr way: https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/sandbergja/lp2056480-only-index-main-in-lunr / user/sandbergja/lp2056480-only-index-main-in-lunr

A test plan from the commit message:
* Build the docs using perl docs/generate_docs.pl --base-url=http://example.com
* Open docs/output/index.html in your browser
* Type a search into the search box
* Note that you only get results for latest, rather than getting duplicate results from multiple versions.
* Note that the file docs/output/search-index.js is now 3.3 MB, rather than the 5.53 MB of the current production file.

Thanks to Blake for catching this issue!

tags: added: pullrequest
Changed in evergreen:
assignee: Jane Sandberg (sandbergja) → nobody
importance: Undecided → Medium
Galen Charlton (gmc)
Changed in evergreen:
milestone: none → 3.12.3
status: New → Confirmed
Revision history for this message
Galen Charlton (gmc) wrote :

Tested and pushed to main, rel_3_12, and rel_3_11. Thanks, Jane!

Note that I amend the commit message to more accurate describe the test procedure; at present generate_docs.pl works only if you run it from the docs/ subdirectory.

Changed in evergreen:
status: Confirmed → Fix Committed
Revision history for this message
Galen Charlton (gmc) wrote :

See new bug 2056759

Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.