Skip to content

fix(catalogue): filtering on areas of information ignores Resources.areas of information #6085

@hslh

Description

@hslh

Have you checked if this issue already exists?

  • yes

Molgenis EMX2 version

Software version: v13.90.0

Description

When filtering on areas of information in the Collections overview, e.g. https://molgeniscatalogue.org/all/collections , the Resources.areas of information attribute is ignored. Instead, it only filters on Collection events.areas of information. This is highly counter-intuitive.

Reproduction steps

  1. Go to 'https://molgeniscatalogue.org/all/collections'
  2. Filter on area of information 'Tobacco'
  3. See that 44 collections are found, but not FLEHS-IV
  4. Go the table explorer at https://molgeniscatalogue.org/catalogue/tables/#/Resources
  5. Filter on area of information 'Tobacco'
  6. See that 2 collections are found, including FLEHS-IV

Expected behaviour

One would expect a filter on the areas of information for Resources to use the Resources.areas of information attribute. Since this attribute is not often filled in and Collection events.areas of information is used more frequently, the best solution is for the filter to use both. That is, filtering on area of information 'Tobacco' should yield collections which have 'Tobacco' directly as an area of information as well as collections with collection events which have 'Tobacco' as an area of information.

System configuration

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions