Conversation
…o published_data_schema_update
HayenNico
left a comment
There was a problem hiding this comment.
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).
I'm fine to keep |
|
@HayenNico which |
|
From what I found on the list, they have sample-ish (PhysicalObject) and proposal-ish (Project) resourcesType. |
|
@nitrosx @Junjiequan Which My concern is that the schema in this form could be used to register Perhaps an easy workaround to support your use case would be to make |
|
@HayenNico great points. Let's discuss at the meeting. As we stand now, we would like to create a published data record and register it as soon as the proposal is accepted. Regarding published data, I always interpreted with a wider meaning. It is public and registered, I do not know what it contains. It can be a mix of datasets, proposals or samples. I like your suggestion that we can make datasets, proposals and samples optional with the condition that when I make them public and register the published data record, the combined list of the three has to contain at least one element. |
|
@nitrosx Following up on the discussion at the meeting: For your use case, I think you'd want DataCite supports different status levels for registered DOIs: We need to have a look at the |
|
As an aside: |
|
@HayenNico maybe should do a brainstorming session and continue the discussion somewhere else. |
| " are part of the published data record.", | ||
| }) | ||
| @Prop({ type: [String], required: true }) | ||
| @Prop({ type: [String], required: false }) |
There was a problem hiding this comment.
Should be required: true here to match ApiProperty information
| " are part of this published data record.", | ||
| }) | ||
| @Prop({ type: [String], required: false }) | ||
| proposalIds: string[]; |
There was a problem hiding this comment.
Should be proposalIds?: string[] if optional;
could also make this required for the schema with a default empty array
| " are part of this published data record.", | ||
| }) | ||
| @Prop({ type: [String], required: false }) | ||
| sampleIds: string[]; |
| */ | ||
| @ApiProperty({ | ||
| type: [String], | ||
| required: false, |
There was a problem hiding this comment.
Should go back to required: true to match schema
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:
Tests included
N/A
Documentation