Skip to content

Enhancement: Default filter operator for fields#3318

Merged
mshibuya merged 7 commits into
railsadminteam:masterfrom
mitchkettzend:default_filter_operator
Feb 28, 2021
Merged

Enhancement: Default filter operator for fields#3318
mshibuya merged 7 commits into
railsadminteam:masterfrom
mitchkettzend:default_filter_operator

Conversation

@mitchkettzend

@mitchkettzend mitchkettzend commented Nov 11, 2020

Copy link
Copy Markdown
Contributor

Issue
When a filter is initially added on the filter criteria on a list view, the default operator is nil or empty which makes it necessary for the user to select an operator each time they add a filter. This can be a bit cumbersome especially if users search a field by a particular operator the majority of the time.

Proposed change
A field option to set a default filter operator for a field which populates the filter operator select box when initially added to the filter criteria. If one is not specified then it will default to the original behavior of setting the operator to nil or empty.

@mitchkettzend mitchkettzend marked this pull request as ready for review November 11, 2020 20:30
@mshibuya mshibuya merged commit 3d8cb28 into railsadminteam:master Feb 28, 2021
@mshibuya

Copy link
Copy Markdown
Member

Looks good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants