molgenis / molgenis-emx2

MOLGENIS EMX2, the latest version of the MOLGENIS data platform.
GNU Lesser General Public License v3.0
14 stars 18 forks source link

Removing filters in the project-specific and general Variable Explorers is problematic #2722

Open EleanorHyde-UMCG opened 1 year ago

EleanorHyde-UMCG commented 1 year ago

What version of EMX2 are you using (see footer) Software version: v8.213.29. Database version: 8.

Describe the bug Variables can be filtered on in the variable explorer (both project-specific variable explorer and the 'general' variable explorer). These filters can then be removed in different ways but not all removal methods work correctly.

To Reproduce Steps to reproduce the behavior:

  1. Go to the Athlete-specific variable explorer: https://data-catalogue-acc.molgeniscloud.org/catalogue/catalogue/#/networks-catalogue/ATHLETE/variables
  2. search on keyword 'chemi' on the left hand side and then choose 'chemicals' in the list of keywords
  3. See that there are 979 variables shown.
  4. Go straight to the Athlete project page by clicking on ATHLETE in the ribbon at the top
  5. Go to 'view variables'
  6. See that the chemicals filter is still active. This shouldn't still be active because we have left the variables page without drilling down to a detail on that page - this is a separate bug.
  7. Remove all the chemicals filters one by one by choosing 'remove all filters'
  8. See that the list of variables doesn't change, and that the system stops at '...loading count'.
  9. Refresh the page to get the correct list.
  10. Repeat steps 2 and 3.
  11. See that there are 979 variables.
  12. Remove the chemicals filter by clicking on 'chemicals' on the left hand side
  13. See that the list is updated immediately to the correct number of variables (1087)

Expected behavior I would expect both methods of removing filters (left and right) to operate (for the user in the same way, ie by removal of the filter, immediate update of the list of variables.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

EleanorHyde-UMCG commented 6 months ago

difficult to test in SSR but let's check once we've got other bugs in the filters / variable explorer sorted out and see whether this still happens