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:
Closes #492
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:
Create and publish a dataset.
Edit the metadata of the dataset, and click the Publish button. The PublishDatasetModal will show an option for choosing either minor or major version update.
Publish the dataset, and then create another draft version, with an uploaded, removed or replaced file.
Click the publish button again, and the PublishDatasetModal should display help text about the required major version update.
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?:
coverage: 97.353% (+0.008%) from 97.345%
when pulling e2e050cdc6245668b187ad2047c11baade1967ff on feature/492-publish-dataset-with-compare-versions
into 88d218a116ddc3986add25597eb70c8a15cb671a on develop.
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 https://github.com/IQSS/dataverse/pull/10945 needs to be merged for e2e tests to work