-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Search result titles incorrectly include "(from project foo)" #3792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Seems that the search functionality comes from a private repo https://github.com/rtfd/readthedocs.org/blob/d918a0fde1252ddbfa9c57dc6f196a207d65d9dc/readthedocs/restapi/urls.py#L95-L102. |
@davidfischer seems that the linting PR around js code, breaks the search page results. It makes sense to me what @begriffs is saying here. Can you take a look at this? |
We can revert this case as well as mark the check as a warning instead of error for fixing this issue. |
Why |
Any decision about what to do, i.e. revert the breaking change, or store as |
Resolved on #4176 |
Expected Result
Search results should list the title of each page and a snippet.
Actual Result
Each title ends with a note "(from project foo)"
example
Cause
A recent commit to fix linter errors changed a
!=
operator to!==
: https://github.com/rtfd/readthedocs.org/blame/e923c0cdf7547e63b4d2a9ab2b5e69b527bb482b/readthedocs/core/static-src/core/js/doc-embed/search.js#L52-L57Adding a breakpoint to that code, I saw that
fields.project
had the value['foo']
whileproject
was'foo'
. The old comparison treated them as equal, but the strict comparison knows that they differ./cc @bansalnitish
The text was updated successfully, but these errors were encountered: