Skip to content

API endpoint for details about a dataset #1638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks
MalinAhlberg opened this issue Apr 29, 2025 · 1 comment
Open
2 tasks

API endpoint for details about a dataset #1638

MalinAhlberg opened this issue Apr 29, 2025 · 1 comment

Comments

@MalinAhlberg
Copy link
Contributor

MalinAhlberg commented Apr 29, 2025

Please describe the feature

As an admin, I want to be able to get detailed info about a given dataset so that I can easily check that I can verify that my dataset contains all the files I expect it to.

Either a new endpoint or add more details to the output of /datasets/list. Or maybe a grafana dashboard.

Acceptance criteria

  • Tests verifying the changes are added

Additional context

The Swedish dataset submission document (confluence) has a step:

Check that the <dataset_id> is added to the sda.dataset_event_log table in the database with a registered event. Moreover, check that all accession IDs are listed under the accession_ids of that record.

The api endpoint should help doing that.

Estimation of size

medium

Estimation of priority

high

@jbygdell
Copy link
Collaborator

jbygdell commented May 7, 2025

Currently the datasets/list gives this output for each dataset that exists:

{
  "DatasetId": "zz-dataset-123456-asdfgh",
  "Status": "registered",
  "Timestamp": "2025-03-30T09:10:11.321Z"
}

What else is missing, the number of files?
In that case the output could easily be expanded to look more like this:

{
  "DatasetId": "zz-dataset-123456-asdfgh",
  "Files": 2048,
  "Status": "registered",
  "Timestamp": "2025-03-30T09:10:11.321Z"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants