-
Notifications
You must be signed in to change notification settings - Fork 16
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
Feature/492 publish dataset with compare versions #551
base: develop
Are you sure you want to change the base?
Feature/492 publish dataset with compare versions #551
Conversation
…ajorVersionUpdate param to PublishDatasetModal.tsx
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.
Looks good, just some questions
src/dataset/infrastructure/repositories/DatasetJSDataverseRepository.ts
Outdated
Show resolved
Hide resolved
tests/component/dataset/infrastructure/mappers/JSDatasetMapper.spec.ts
Outdated
Show resolved
Hide resolved
thanks @g-saracca, ready to review now |
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.
Great job @ekraffmiller , approving!
Just one comment, you are mapping the js-dataverse versionDiff in toDatasetVersionDiff
but not changing any property, maybe we don't need the mapper at all?
What this PR does / why we need it:
This PR adds a use case for comparing dataset versions, and uses it to add a property to the Dataset object, a boolean that indicates whether the next version should be a major or minor version update.
The boolean requiresMajorVersionUpdate will be true if the draft contains added, removed or replaced files. If this boolean is true, then the PublishDatasetModal will include help text describing the major version update.
Which issue(s) this PR closes:
Special notes for your reviewer:
The dataverse API hasn't been merged yet, so to run locally, use the PR image:
./run-env.sh 10888-add-api-for-comparing-dataset-versions
Suggestions on how to test this:
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
Is there a release notes update needed for this change?:
Additional documentation:
Add a waiting tag because this Dataverse PR IQSS/dataverse#10945 needs to be merged for e2e tests to work