Skip to content
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

smarter filter operators #178

Open
guruofgentoo opened this issue Feb 16, 2023 · 0 comments
Open

smarter filter operators #178

guruofgentoo opened this issue Feb 16, 2023 · 0 comments

Comments

@guruofgentoo
Copy link
Member

From Ben: "The (slight) complexity of adding additional operators to an existing filter class may point us in the direction of having smarter operators. In this example, a date filter operator could know that it requires no value, know how to generate its own date range, and know how to generate its own query filter."

Correct IMO, this would be a good change to the structure of filter operators. It necessarily makes the operators more specific, so there would likely be more of them.

For what it's worth, the way search works is a kind of a smart operator and could be factored that way. I.e. we could have field-specific search operators that the grid's search uses, and factor away from the current way of setting that up.

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

No branches or pull requests

1 participant