opentargets / issues

Issue tracker for Open Targets Platform and Open Targets Genetics Portal
https://platform.opentargets.org https://genetics.opentargets.org
Apache License 2.0
12 stars 2 forks source link

Platform UI does not reset sorting state when changing between entities of the same type #3303

Open HelenaCornu opened 2 months ago

HelenaCornu commented 2 months ago

Describe the bug When browsing the Platform, the associations on the fly (AOTF) view does not reset the sorting state when the user switches between different entities of the same type (e.g. between targets, between diseases).

Observed behaviour When viewing associations for a disease in AOTF, if I click to sort the evidence based on a datasource, then switch to a different disease, the AOTF evidence for the new disease is still sorted by the selected datasource, rather than by the overall association score.

This also happens when viewing associations for a target, and switching to a different targets.

This does not happen when switching from a disease to a target, or a target to a disease.

Expected behaviour When switching to a different entity, the sorting state should reset to default (overall association score).

To Reproduce Steps to reproduce the behaviour:

  1. Go to a Platform disease page e.g. 'https://platform.opentargets.org/disease/MONDO_0004976/associations'
  2. Click on any datasource e.g. ClinVar
  3. Search for a different disease, e.g. 'https://platform.opentargets.org/disease/MONDO_0005180/associations'
  4. See error: associations sorted for ClinVar evidence