You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Bug: Publish and Submit for review must contain files
2
+
When `requireFilesToPublishDataset` is set on a Dataverse a Dataset must contain files to be published or submitted for review. This fix make sure the dataset version contains files, and not just the dataset. It also adds this check to the `Submit for Review` functionality.
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/api/changelog.rst
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,13 @@ This API changelog is experimental and we would love feedback on its usefulness.
7
7
:local:
8
8
:depth: 1
9
9
10
+
v6.11
11
+
-----
12
+
13
+
- The following API will now return ``403`` if the ``requireFilesToPublishDataset`` flag is set and the dataset version contains 0 files.
14
+
15
+
- **/api/datasets/{Id}/submitForReview**
16
+
10
17
v6.10
11
18
-----
12
19
- The following GET APIs will now return ``400`` if a required Guestbook Response is not supplied. A Guestbook Response can be passed to these APIs in the JSON body using a POST call. See the notes under :ref:`basic-file-access` and :ref:`download-by-dataset-by-version` for details.
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/api/native-api.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1278,7 +1278,7 @@ The following attributes are supported:
1278
1278
* ``description`` Description
1279
1279
* ``affiliation`` Affiliation
1280
1280
* ``filePIDsEnabled`` ("true" or "false") Restricted to use by superusers and only when the :ref:`:AllowEnablingFilePIDsPerCollection <:AllowEnablingFilePIDsPerCollection>` setting is true. Enables or disables registration of file-level PIDs in datasets within the collection (overriding the instance-wide setting).
1281
-
* ``requireFilesToPublishDataset`` ("true" or "false") Restricted to use by superusers. Defines if Dataset needs files in order to be published. If not set the determination will be made through inheritance by checking the owners of this collection. Publishing by a superusers will not be blocked.
1281
+
* ``requireFilesToPublishDataset`` ("true" or "false") Restricted to use by superusers. Defines if Dataset version needs files in order to be published or submitted for review. If not set the determination will be made through inheritance by checking the owners of this collection. Publishing by a superusers will not be blocked.
1282
1282
* ``allowedDatasetTypes`` Restricted to use by superusers. By default "dataset" is implied. Pass a comma-separated list of dataset types (e.g. "dataset,software"). You cannot unset this attribute so if you want to delete a dataset type, set ``allowedDatasetTypes`` to a dataset type you won't be deleting. See also :ref:`dataset-types`.
and DatasetPage.dataset.latestVersion.versionState=='DRAFT'
58
59
and canUpdateDataset
59
-
and !canIssuePublishDatasetCommand}"/>
60
+
and !canIssuePublishDatasetCommand
61
+
and canIssueSubmitDatasetForReviewCommand}"/>
60
62
<ui:paramname="showReturnToAuthorLink" value="#{DatasetPage.dataset.latestVersion.versionState=='DRAFT' and latestVersionInReview
61
63
and canIssuePublishDatasetCommand}"/>
62
64
<ui:paramname="showAccessDatasetButtonGroup" value="#{(canDownloadFiles or versionHasGlobus)
@@ -358,7 +360,7 @@
358
360
<!-- END: DOWNLOAD/ACCESS DATASET -->
359
361
360
362
<!-- PUBLISH DATASET -->
361
-
<divclass="btn-group btn-group-justified" jsf:rendered="#{showPublishLink or showSubmitForReviewLink}">
363
+
<divclass="btn-group btn-group-justified" jsf:rendered="#{showSubmitForReviewLink or showReturnToAuthorLink or showPublishLink or latestVersionInReview}">
362
364
<divclass="btn-group">
363
365
<!-- Publish BTN -->
364
366
<h:outputLinkvalue="#" disabled="#{DatasetPage.lockedFromPublishing or !DatasetPage.hasValidTermsOfAccess or !valid}">
0 commit comments