-
Notifications
You must be signed in to change notification settings - Fork 953
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
fix: persist ranking on search #7048
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, as nice extra feature would be that the search value doesn't get lowercased from the user perspective.
I have a few things to follow up on this (like searching in English should always work no matter the language) so I can add that as well. |
looks like solved: |
Issue
The ranking panel used the index as the ranking but this always changed when searching in meaning if you searched a single zone it would always be ranked as 1.
Description
This PR rewrites the whole filtering and sorting logic to account for this and persist the ranking even in searches, something that it looked like it was always intended to do as there was already a ranking property that was always set to undefined.
As a bonus it will now also match using the zone key.
This should partially help with the issue described in #6971
TODO:
Preview
On master
On this branch
Double check
pnpx prettier@2 --write .
andpoetry run format
in the top level directory to format my changes.