aces / Loris

LORIS is a web-accessible database solution for longitudinal multi-site studies.
GNU General Public License v3.0
142 stars 172 forks source link

[Imaging_browser] Count query does not match filter results #9219

Open CamilleBeau opened 4 months ago

CamilleBeau commented 4 months ago

Describe the bug The query used to count "New and pending imaging sessions" does not match the query that it links to in the imaging browser module.

For example, here are the CandIDs considered in the tasks widget query:

image

And here are the results of the imaging browser filter that the task links to:

image

In certain cases this will mean that the count will not match.

AlexandraLivadas commented 3 months ago

Sorry @MaximeMulder I didn't see that you had assigned yourself :)

MaximeMulder commented 3 months ago

I tried to change the query to emulate the behaviour of the imaging browser table, but I am advancing very slowly as there are too many things I don't know about these parts of the codebase. There may also be a cleaner design I am not aware of so I'll let this to someone else I think.