fractal-analytics-platform / fractal-server

Fractal backend
https://fractal-analytics-platform.github.io/fractal-server/
BSD 3-Clause "New" or "Revised" License
8 stars 3 forks source link

Allow complex filters being set #1401

Open jluethi opened 2 months ago

jluethi commented 2 months ago

If my understanding is correct, we currently can filter for the following: Inclusion only AND combination of filters Single filter per attribute / type For types: Filter for boolean true vs. false For attributes: Filter for exact match of the attribute

Correct me if I'm wrong and we already support more in V2 @tcompa

Because it comes up in web discussions, I'll try to give a larger perspective of where this could go in the future. This is not meant as blocking for the v2 release.


There are many areas where we could expand the filters to allow for more complex filters, ordered by approximate importance:

Important:

Nice to have:

I don't currently see the value in: Support OR filters between attributes: Look for well B03 or acquisition 1

tcompa commented 2 months ago

Reminder: the action of merging two filter sets together is now also implemented in fractal-web (ref https://github.com/fractal-analytics-platform/fractal-web/issues/442). When we change the filter structure, we should either change it in both places or offer a dedicated endpoint for the merge operation.