Skip to content

Grid advanced search should not search enums or lists #2633

@ryanjbudhu

Description

@ryanjbudhu

Describe the problem your feature will solve.
Currently any advanced searches via "search all" just check that the input type is acceptable for the present fields (i.e. type == date && w2utils.isDate(value)). This is fine for all the search types, but I think types enum and list should not be included when building the advanced search request. This is because enums and lists have specific items to search for, and the backend handles that accordingly. Also the user would need to enter the full enum item in the box to get the correct output, which may defeat the purpose of it.

Describe the solution you'd like
I'd be fine at least an option to turn it off, like how there is a searches.simple:bool property, there could be a searches.searchAll:bool property that excludes that specific search from being filled out when using the "all" search bar.

Describe alternatives you've considered
I've also thought about just removing the line below, but adding an option might be better (and would be backwards compatible):

|| (search.type == 'enum' && w2utils.isAlphaNumeric(value)) || (search.type == 'list' && w2utils.isAlphaNumeric(value))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions