Closed aglassman closed 7 months ago
Thanks for sharing your implementation! I feel like grouping or
clauses with an additional attribute like this will lead to less-than-ideal ergonomics when it comes to HTML forms. Nesting filters like proposed elsewhere might allow us to leverage inputs_for
for filter groups. But this is nice for future reference.
Agreed, I don't think this is an ideal solution. If nested filters are available for any pre-release testing at some point in the future, let me know and I give them a try in my current project. I've been using custom filters which work great, but could swap them out for a new approach easily.
This is just a draft PR to share my implementation of supporting 'or' filters.
It works, but is far from done. There are most likely edge cases where this will not work, specifically it will not work when using custom field info.
Filter:
Will generage: