Skip to content

OrigDatablocks not returned in dataset public v4 #2512

@nitrosx

Description

@nitrosx

Summary

When submitting a GET request to /api/v4/dataset/public/<pid> that includes all of the linked information, it returns the dataset output DTO schema without the origdatablock included.
When viewing the same dataset in the FE as anonymous user, the files list is populated.

Steps to Reproduce

Submit a request similar to the following to your test environment:
curl -X 'GET' \ 'http://localhost:3000/api/v4/datasets/public?filter=%7B%0A%20%20%22limits%22%3A%20%7B%0A%20%20%20%20%22limit%22%3A%202%0A%20%20%7D%0A%7D' \ -H 'accept: application/json'

Copy the pid of the first public dataset shown and submit a request for the specific dataset specifying include all option.

Image

The dataset output dto returned is not fully populated with the origdatablock

Current Behaviour

Currently, it appears that the GET dataset/public/<pid> does not return the origdatablocks associated with the dataset

Expected Behaviour

When requesting a dataset through a GET dataset/public/<pid> with the include all option, it should return a fully populated dataset output dto that include the origdatablock

Details

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