Skip to content

Commit

Permalink
SWORD: don't force major version bumps of dataset #795
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Nov 4, 2014
1 parent 986def9 commit bb1be09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
4 changes: 2 additions & 2 deletions doc/Sphinx/source/API/SWORD.rst
Expand Up @@ -41,6 +41,8 @@ New features as of v1.1

- Dataverses can be published via SWORD

- Datasets versions will only be increased to the next minor version (i.e. 1.1) rather than a major version (2.0) if possible. This depends on the nature of the change.

- Granular permissions are used for certain operations. Previously, you needed to be "admin" on a dataverse to use the Data Deposit API at all.

- The Service Document will return all the dataverses on which you have the "AddDataset" permission. This should resolve the issue reported at https://trello.com/c/F2ZQPFdM/6-reconcile-what-is-seen-by-the-data-deposit-api-and-the-gui-currently-python-api-hides-dvs-from-admin-unless-it-is-also-dv-creato
Expand Down Expand Up @@ -210,8 +212,6 @@ These are features we'd like to add in the future:

- Populate "Subject" from parent dataverse rather than always using "Other": https://github.com/IQSS/dataverse/issues/769

- Do not force major version bumps of datasets: https://github.com/IQSS/dataverse/issues/795

- Let file metadata (i.e. description) be specified during zip upload: https://github.com/IQSS/dataverse/issues/723

- SWORD: Display of actual dcterms xml element for equivalent of required field not found: https://github.com/IQSS/dataverse/issues/1019
Expand Down
Expand Up @@ -304,17 +304,11 @@ public DepositReceipt useHeaders(String uri, Deposit deposit, AuthCredentials au
Command<Dataset> cmd;
try {
boolean doMinorVersionBump = false;
/**
* if business rules change, uncomment
* this code to always try a minor
* version bump when allowed:
* https://github.com/IQSS/dataverse/issues/795
*/
// if (dataset.getLatestVersion().isMinorUpdate()) {
// doMinorVersionBump = true;
// } else {
// doMinorVersionBump = false;
// }
if (dataset.getLatestVersion().isMinorUpdate()) {
doMinorVersionBump = true;
} else {
doMinorVersionBump = false;
}
cmd = new PublishDatasetCommand(dataset, user, doMinorVersionBump);
dataset = engineSvc.submit(cmd);
} catch (CommandException ex) {
Expand Down

0 comments on commit bb1be09

Please sign in to comment.