Skip to content
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

Merged
merged 7 commits into from
Apr 4, 2024

Conversation

MellyGray
Copy link
Contributor

@MellyGray MellyGray commented Mar 27, 2024

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:

  • Depends on #

Special notes for your reviewer:

Suggestions on how to test this:

  1. Visual inspection of the code
  2. Run the tests
  3. Check the docs of the new use case here

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

Additional documentation:

@MellyGray MellyGray linked an issue Mar 27, 2024 that may be closed by this pull request
@MellyGray MellyGray added Size: 3 A percentage of a sprint. 2.1 hours. pm.GREI-d-2.7.1 NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflows pm.GREI-d-2.7.2 NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows SPA: Dataset View Page labels Mar 27, 2024
@g-saracca g-saracca self-assigned this Apr 1, 2024
g-saracca
g-saracca previously approved these changes Apr 1, 2024
Copy link
Contributor

@g-saracca g-saracca left a 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!!

@g-saracca g-saracca removed their assignment Apr 1, 2024
@GPortas
Copy link
Contributor

GPortas commented Apr 4, 2024

Please, can you resolve the merge conflicst? @MellyGray

Copy link
Contributor

@GPortas GPortas left a 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>
Copy link
Contributor

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'?

Copy link
Contributor Author

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

@GPortas GPortas assigned MellyGray and unassigned GPortas Apr 4, 2024
@MellyGray MellyGray assigned GPortas and unassigned MellyGray Apr 4, 2024
@GPortas GPortas merged commit c4971c2 into develop Apr 4, 2024
5 checks passed
@GPortas GPortas deleted the feature/133-add-publish-dataset-use-case branch April 4, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pm.GREI-d-2.7.1 NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflows pm.GREI-d-2.7.2 NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows Size: 3 A percentage of a sprint. 2.1 hours. SPA: Dataset View Page
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create PublishDataset use case
3 participants