Skip to content

Related Datasets View: Broken for custom dataset types, does not include dataset.relationships #1984

@HayenNico

Description

@HayenNico

Summary

Due to hardcoded filters in dataset.effects.ts, the Related Datasets view will show all accessible datasets in case a dataset's type is neither "raw" nor "derived" (can happen if additional types are defined in the BE datasetTypes.json configuration).

Additionally, Related Datasets is only based on the inputDatasets property and does not render the relationships which carry very similar information.

Expected Behaviour

For any dataset, both its inputDatasets and relationships should be shown regardless of dataset type.

For the reverse links (e.g. raw datasets pointing to associated derived datasets), leaving it based on only inputDatasets seems fine, just needs to have the explicit type requirement removed.

Extra Details

Image Dataset of type "custom" Image Related Datasets shows all datasets in this toy instance Image A derived dataset using `relationships` shows no entries in Related Datasets

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions