Skip to content

feat: published data schema update#2649

Open
nitrosx wants to merge 9 commits intomasterfrom
published_data_schema_update
Open

feat: published data schema update#2649
nitrosx wants to merge 9 commits intomasterfrom
published_data_schema_update

Conversation

@nitrosx
Copy link
Copy Markdown
Member

@nitrosx nitrosx commented Apr 5, 2026

Description

This PR adds fields to store proposals and samples in the published data record.

Motivation

Some data policies requires that a DOi is assigned to the whole proposal as soon as it is approved. This PR will allow to assign and register a new DOI as soon as a proposal is accepted and saved in SciCat.
Also, more and more, DOI can be register for a non homogeneous group of information which can contain proposals, samples and datasets alike.

Changes:

  • published data schema

Tests included

N/A

Documentation

  • swagger documentation updated (required for API changes)
  • official documentation updated

@nitrosx nitrosx requested a review from a team as a code owner April 5, 2026 20:46
Copy link
Copy Markdown
Member

@HayenNico HayenNico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks fine, but I think we should not make the datasetPids field optional at this time. The DOI registration at DataCite is currently hardcoded to use Dataset as the resourceTypeGeneral (see e.g. here in the v4 controller). This is not suitable if a PublishedData instance were to include only samples or proposals.
It would be fine to add links to sample and proposal documents under a publishedData instance so long as these do not have their own DOIs (standalone sample DOI publications should for example use IGSNs).

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

Successfully merging this pull request may close these issues.

2 participants