molgenis / molgenis-emx2

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

feat(directory): filters should be adaptive #3764

Open dtroelofsprins opened 1 month ago

dtroelofsprins commented 1 month ago

In the initial version of the Directory App adaptive filtering was included, however it turned out that it was not working properly (or not). It was therefore turned off (https://github.com/molgenis/molgenis-emx2/issues/3343).

This issue requests to include the adaptive filtering in the Directory App again: Specifications:

esthervanenckevort commented 2 weeks ago

I would expect the following behaviour:

  1. No filters selected. For all filters the options that do not return any value are filtered out
  2. One or more filters selected. For all filters the options that do not return any value when applying all other filters are filtered out.

To clarify this an example:

diagnosis |  country | material
-----------------------------------
C18.1     | NL       | DNA;  Urine
D01.1     | BE       | DNA; Blood
U07.1     | DE       | Urine; Blood
U07.1     | BE       | Urine; Blood

No filters applied: diagnosis: C18.1; D01.1; U07.1 country: NL; BE; DE material: DNA; Urine; Blood

country == BE: diagnosis: D01.1; U07.1 country: NL; BE; DE material: DNA; Urine; Blood

country == NL: diagnosis: C18.1 country: NL; BE; DE material: DNA; Urine

material == DNA: diagnosis: C18.1; D01.1 country: NL; BE material: DNA; Urine; Blood

material == DNA && country == BE: diagnosis: D01.1; U07.1 country: NL; BE material: DNA; Urine; Blood

material == DNA && country == NL: diagnosis: C18.1 country: NL; BE material: DNA; Urine