Skip to content

Conversation

@GPortas
Copy link
Contributor

@GPortas GPortas commented Jun 19, 2023

What this PR does / why we need it:

This PR adds the optional fields alternativePersistentId, publicationDate and citationDate to the dataset model and their transformation in case they are returned from the API.

This branch is created from 65-modify-the-dataset-type-description-to-explicitly-declare-the-citation-metadata-fields so PR #67 should be merged first.

Which issue(s) this PR closes:

Special notes for your reviewer:

Optional parameters need IQSS/dataverse#9657 to work

Suggestions on how to test this:

I've added one of the optional fields to the datasetHelper.ts test response payload and test model to test the model transformation when only one optional field is sent.

Is there a release notes update needed for this change?:

No

Additional documentation:

N/A

pdurbin
pdurbin previously approved these changes Jun 20, 2023
Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

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

I didn't run the code but tests are passing and the changes make sense.

Please note the other PR noted should be merged first.

@pdurbin pdurbin removed their assignment Jun 20, 2023
@kcondon kcondon dismissed pdurbin’s stale review June 21, 2023 13:37

The merge-base changed after approval.

@kcondon kcondon self-assigned this Jun 21, 2023
@kcondon kcondon merged commit 439ffb6 into develop Jun 21, 2023
@kcondon kcondon deleted the 64-66-optional-dataset-fields branch June 21, 2023 15:44
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.

Add the alternativePersistentId as part of the Dataset object definition Add the publicationDate, citationDate as part of the Dataset object

4 participants