avo icon indicating copy to clipboard operation
avo copied to clipboard

Add negative array conditions

Open adrianthedev opened this issue 1 year ago • 3 comments
trafficstars

Feature

In avo-dynamic_filters here we have positive conditions and we'd need some negative ones.

# positive
array_eq: :eq,
array_contains: :contains,
array_overlap: :overlaps,
array_contained_in: :contained_in_array,

We need to think about which ones to make.

adrianthedev avatar Jan 13 '24 11:01 adrianthedev

We're already using all array search helpers that postgres_ext gem provide.

We need to either generate some custom SQL or research more.

Since we're using ransack for the dynamic filter system, here is a related issue (our implementation is inspired from this issue).

Paul-Bob avatar Jan 15 '24 08:01 Paul-Bob

Can't we "add a not" to those that we already have? IDK, I'm asking...

adrianthedev avatar Jan 15 '24 20:01 adrianthedev

That is a possible solution, it may work for some of them

Paul-Bob avatar Jan 17 '24 11:01 Paul-Bob