populationgenomics / variant-curation-portal

Web application for curating loss of function variants
MIT License
1 stars 0 forks source link

Filter/sort assigned variants (low priority) #49

Open SamBryen opened 1 year ago

SamBryen commented 1 year ago

Currently on the 'Assigned Variants' page there is no way to filter or sort variants that have been assigned to the user. This would be a useful feature as it would help us quickly find variants that still need curating.

We can go without this feature as we can use ctrl + f to search for any variant attribute we would like to (eg. 'no verdict'). However, I have started to noticed that the more variants I have assigned, the longer this page takes to load in general. Perhaps only loading a filtered subset of variants would make this page load quicker, especially as I'll be assigning more and more variants to curators over time.

The main thing we would want to filter for is 'no verdict' and 'Revisit this variant', but I think it would also be useful to filter by 'Genes' or 'Verdict', and less importantly, 'Major consequence', 'AC', 'AF' or any specific flag.

This is a 'want' not a 'need' feature request so absolutely no rush here. Thanks!

EddieLF commented 8 months ago

Suggested change: Modify the project page so not all variants load at once.

EddieLF commented 6 months ago

Another change that could help is to optimise the query which retrieves assigned variants - on this line.

Currently, it takes several minutes to load the page when ~2000 variants are assigned to a user in a project. Since a speedup was achieved when viewing project results by prefetching models related to each curation result, then perhaps a similar speedup can be achieved here optimising this query in a similar way.