-
Notifications
You must be signed in to change notification settings - Fork 8
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
133 - Add publish dataset use case #137
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼 First time reviewing a pr from this repo, all tests are passing, the documentation looks good and I don't see any inconsistencies at code level.
Great work!!
Please, can you resolve the merge conflicst? @MellyGray |
…vascript into feature/133-add-publish-dataset-use-case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor comment, but everything looks fine to me.
@@ -32,4 +32,5 @@ export interface IDatasetsRepository { | |||
datasetMetadataBlocks: MetadataBlock[], | |||
collectionId: string | |||
): Promise<CreatedDatasetIdentifiers> | |||
publishDataset(datasetId: number | string, versionUpdateType: 'major' | 'minor'): Promise<void> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use versionUpdateType: VersionUpdateType
instead of versionUpdateType: 'major' | 'minor'
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I probably forgot. Thanks! I made the change
What this PR does / why we need it:
This PR adds a new use case to the module publishDataset to allow the user to publish a new version of a dataset using js-dataverse module.
Which issue(s) this PR closes:
Related Dataverse PRs:
Special notes for your reviewer:
Suggestions on how to test this:
Is there a release notes update needed for this change?:
Additional documentation: