Skip to content

Incorrect Dataset Metadata #867

Description

@SeanBerrieHRI

What components are related to the issue?

No response

Which FDP are you using?

FDP that I manage, My local instance

Version

1.8.2

What happened?

Image

Description:
When fetching metadata for a specific dataset via the getMeta(id) function in the frontend client, the backend returns a resource path where the dataset title is incorrectly mapped or unexpectedly labeled. This was reproduced in our local instance after we noticed it in our Acceptation environment.

Expected :
The title of the actual dataset in the breadcrumb instead of "Analytics Distributions".
It should be: /My Fair Data Point/Health-RI XNAT/{dataset.title}

Actual:
The breadcrumbs are built in the frontend from data retrieved from the /meta endpoint in the backend: GET request to https://{target_domain}/dataset/{dataset_id}/meta → returns title “Analytics Distributions”. (located in /src/api/builder.ts -> getMeta(id)

GET response to: http://localhost:8080/dataset/037ab79b-10af-4df7-83e3-cc21f8895ba7/meta

{
    "member": {},
    "state": null,
    "path": {
        "http://localhost:8080/dataset/037ab79b-10af-4df7-83e3-cc21f8895ba7": {
            "resourceDefinitionUuid": "2f08228e-1789-40f8-84cd-28e3288c3604",
            "title": "Analytics Distributions",
            "parent": "http://localhost:8080/catalog/471e110d-8e79-4f85-9e34-e918f1d81bfc"
        },
        "http://localhost:8080": {
            "resourceDefinitionUuid": "77aaad6a-0136-4c6e-88b9-07ffccd0ee4c",
            "title": "My FAIR Data Point",
            "parent": null
        },
        "http://localhost:8080/catalog/471e110d-8e79-4f85-9e34-e918f1d81bfc": {
            "resourceDefinitionUuid": "a0949e72-4466-4d53-8900-9436d1049a4b",
            "title": "Inflammatory Bowel Disease catalogue",
            "parent": "http://localhost:8080"
        }
    }
}

The /meta endpoint returns "Analytics Distribution" while we excpect "test".

Relevant log output


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions