Allow OR operator when merging extraFilters on selectData

Description

At the moment all extraFilter are using AND operator, would be nice to allow OR operator. So that we can logic like below

ExtraFilter ( user is pending )

or

ExtraFilter ( user is active )

Activity

Show:
Dominic Watson
October 15, 2020, 12:16 PM
Edited

This is not really doable. Additional filters can be loaded in via interceptors and any logic doing that will always expect extra filters to be AND.

If you require ORs, these can be achieved in other ways within the filter system.

I think this would require some further thought to be reliable. I think extraFilters will always need to be AND, but potentially there could be some kind of nesting for a group of additional filters that should be treated as a group of ORs (like with ElasticSearch DSL, for example).

Definitely needs more careful planning though I think.

Johnson Cheng
October 15, 2020, 10:59 AM

Assignee

Unassigned

Reporter

Johnson Cheng