Improve filtering logic for Advanced Search dropdowns

Description

Currently, the dropdown in Advanced Search has somewhat unintuitive results as it seems to check if the filter is contained at all within the attribute names. This can be confusing as searching for "id" will return results like "validation", "width", and other words that contain "id" when really we're probably searching for "identifier" or "id".

Environment

None

Activity

Show:
Vina Martin
January 25, 2019, 10:48 PM


Here's the solution I've arrived at for now, I'll have a PR up soon.

Emily Berk
January 24, 2019, 11:38 PM

Another improvement would be to move the option that exactly matches the inputted text to the top of the dropdown list. In downstream projects with many attributes, the field that you want could be very far down the list, even though you've inputted the exact full name of the field.

Fixed

Assignee

Vina Martin

Reporter

Vina Martin

Labels

None

Fix versions

Affects versions

Priority

Minor