cortex-lab / alyx

Database for experimental neuroscience laboratories
44 stars 11 forks source link

sessions endpoint returns sessions where datasets don't exist on Flatiron #670

Closed k1o0 closed 3 years ago

k1o0 commented 3 years ago

We want to use the sessions endpoint to find sessions where a given list of dataset types exist on Flatiron. Currently this is not the case.

From @oliche:

I think the issue comes from the fact that the dataset_type filter on the session endpoint does not enforce the exist flag, unlike the dataset serializer in the session endpoint. This consistency issue needs fixing in the custom filter (actions.views I think)