Skip to content

Conversation

@rzhao271
Copy link
Collaborator

@rzhao271 rzhao271 commented Mar 1, 2022

Fixes #143513

This PR allows for the order fields of settings and categories to be preserved when users do a search, unless the matches have different match types, such as if one of the matches is a whole word match and the other one isn't.
Previously, the order fields would only be considered when the user was not doing a search.

For example, for the screencap below, the settings are in the order C A B (from the B configuration), then D E F (from the A configuration). Even after searching for "Setting", that order is still preserved, which is what we want.

Demo

@rzhao271 rzhao271 added this to the March 2022 milestone Mar 1, 2022
@rzhao271 rzhao271 requested a review from roblourens March 1, 2022 22:20
@rzhao271 rzhao271 self-assigned this Mar 1, 2022
@rzhao271 rzhao271 force-pushed the rzhao271/settings-search-order branch from 67a3b55 to c065fad Compare March 9, 2022 20:06
@rzhao271
Copy link
Collaborator Author

rzhao271 commented Mar 9, 2022

Rebased

@rzhao271 rzhao271 merged commit f407da2 into main Mar 10, 2022
@rzhao271 rzhao271 deleted the rzhao271/settings-search-order branch March 10, 2022 00:41
@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

contributes.configuration items respects "order" attribute in views only if search box empty

3 participants