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
The addDataverse (/api/dataverses/{identifier}) API endpoint has been extended to allow adding metadata blocks, input levels and facet ids at creation time, as the Dataverse page in create mode does in JSF.
When datasets have neither a license nor custom terms of use the display will indicate this. Also, these datasets will no longer be indexed as having custom terms.
In an earlier Dataverse release, Datasets with only 'CC0 Waiver' in termsofuse field were converted to 'Custom License' instead of CC0 1.0 licenses during an automated process. A new process was added to correct this. Only Datasets with no terms other than the one create by the previous process will be modified.
2
+
- The existing 'Terms of Use' must be equal to 'This dataset is made available under a Creative Commons CC0 license with the following additional/modified terms and conditions: CC0 Waiver'
3
+
- The following terms fields must be empty: Confidentiality Declaration, Special Permissions, Restrictions, Citation Requirements, Depositor Requirements, Conditions, and Disclaimer.
4
+
- The License ID must not be assigned.
5
+
6
+
This process will set the License ID to that of the CC0 1.0 license and remove the contents of termsofuse field.
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/api/native-api.rst
+27
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,14 @@ The fully expanded example above (without environment variables) looks like this
66
66
67
67
You should expect an HTTP 200 response and JSON beginning with "status":"OK" followed by a representation of the newly-created Dataverse collection.
68
68
69
+
The request JSON supports an optional ``metadataBlocks`` object, with the following supported sub-objects:
70
+
71
+
- ``metadataBlockNames``: The names of the metadata blocks you want to add to the Dataverse collection.
72
+
- ``inputLevels``: The names of the fields in each metadata block for which you want to add a custom configuration regarding their inclusion or requirement when creating and editing datasets in the new Dataverse collection. Note that if the corresponding metadata blocks names are not specified in the ``metadataBlockNames``` field, they will be added automatically to the Dataverse collection.
73
+
- ``facetIds``: The names of the fields to use as facets for browsing datasets and collections in the new Dataverse collection. Note that the order of the facets is defined by their order in the provided JSON array.
74
+
75
+
To obtain an example of how these objects are included in the JSON file, download :download:`dataverse-complete-optional-params.json <../_static/api/dataverse-complete-optional-params.json>` file and modify it to suit your needs.
76
+
69
77
.. _view-dataverse:
70
78
71
79
View a Dataverse Collection
@@ -258,6 +266,25 @@ The fully expanded example above (without environment variables) looks like this
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/developers/making-releases.rst
+18-10
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,12 @@ Making Releases
8
8
Introduction
9
9
------------
10
10
11
-
Note: See :doc:`making-library-releases` for how to publish our libraries to Maven Central.
12
-
13
-
See :doc:`version-control` for background on our branching strategy.
11
+
This document is about releasing the main Dataverse app (https://github.com/IQSS/dataverse). See :doc:`making-library-releases` for how to release our various libraries. Other projects have their own release documentation.
14
12
15
13
The steps below describe making both regular releases and hotfix releases.
16
14
15
+
Below you'll see branches like "develop" and "master" mentioned. For more on our branching strategy, see :doc:`version-control`.
16
+
17
17
.. _write-release-notes:
18
18
19
19
Write Release Notes
@@ -24,10 +24,10 @@ Developers express the need for an addition to release notes by creating a "rele
24
24
The task at or near release time is to collect these snippets into a single file.
25
25
26
26
- Create an issue in GitHub to track the work of creating release notes for the upcoming release.
27
-
- Create a branch, add a .md file for the release (ex. 5.10.1 Release Notes) in ``/doc/release-notes`` and write the release notes, making sure to pull content from the release note snippets mentioned above.
28
-
- Delete the release note snippets as the content is added to the main release notes file.
29
-
- Include instructions to describe the steps required to upgrade the application from the previous version. These must be customized for release numbers and special circumstances such as changes to metadata blocks and infrastructure.
30
-
- Take the release notes .md through the regular Code Review and QA process.
27
+
- Create a branch, add a .md file for the release (ex. 5.10.1 Release Notes) in ``/doc/release-notes`` and write the release notes, making sure to pull content from the release note snippets mentioned above. Snippets may not include any issue number or pull request number in the text so be sure copy the number from the filename of the snippet into the final release note.
28
+
- Delete (``git rm``) the release note snippets as the content is added to the main release notes file.
29
+
- Include instructions describing the steps required to upgrade the application from the previous version. These must be customized for release numbers and special circumstances such as changes to metadata blocks and infrastructure.
30
+
- Take the release notes .md through the regular Code Review and QA process. That is, make a pull request.
31
31
32
32
Create a GitHub Issue and Branch for the Release
33
33
------------------------------------------------
@@ -70,6 +70,13 @@ Once important tests have passed (compile, unit tests, etc.), merge the pull req
70
70
71
71
If this is a hotfix release, skip this whole "merge develop to master" step (the "develop" branch is not involved until later).
72
72
73
+
Add Milestone to Pull Requests and Issues
74
+
-----------------------------------------
75
+
76
+
Often someone is making sure that the proper milestone (e.g. 5.10.1) is being applied to pull requests and issues, but sometimes this falls between the cracks.
77
+
78
+
Check for merged pull requests that have no milestone by going to https://github.com/IQSS/dataverse/pulls and entering `is:pr is:merged no:milestone <https://github.com/IQSS/dataverse/pulls?q=is%3Apr+is%3Amerged+no%3Amilestone>`_ as a query. If you find any, add the milestone to the pull request and any issues it closes. This includes the "merge develop into master" pull request above.
79
+
73
80
(Optional) Test Docker Images
74
81
-----------------------------
75
82
@@ -106,7 +113,7 @@ Create a Draft Release on GitHub
106
113
Go to https://github.com/IQSS/dataverse/releases/new to start creating a draft release.
107
114
108
115
- Under "Choose a tag" you will be creating a new tag. Have it start with a "v" such as ``v5.10.1``. Click "Create new tag on publish".
109
-
- Under "Target" go to "Recent Commits" and select the merge commit from when you merged ``develop`` into ``master`` above. This commit will appear in ``/api/info/version`` from a running installation.
116
+
- Under "Target", choose "master". This commit will appear in ``/api/info/version`` from a running installation.
110
117
- Under "Release title" use the same name as the tag such as ``v5.10.1``.
111
118
- In the description, copy and paste the content from the release notes .md file created in the "Write Release Notes" steps above.
112
119
- Click "Save draft" because we do not want to publish the release yet.
@@ -153,6 +160,7 @@ ssh into the dataverse-internal server and do the following:
153
160
- ``mkdir target``
154
161
- ``cp /tmp/dataverse-5.10.1.war target``
155
162
- ``cd scripts/installer``
163
+
- ``make clean``
156
164
- ``make``
157
165
158
166
A zip file called ``dvinstall.zip`` should be produced.
@@ -175,7 +183,7 @@ Upload the following artifacts to the draft release you created:
175
183
Deploy on Demo
176
184
--------------
177
185
178
-
Now that you have the release ready to go, give it one final test by deploying it on https://demo.dataverse.org. Note that this is also an opportunity to re-test the upgrade checklist as described in the release note.
186
+
Now that you have the release ready to go, consider giving it one final test by deploying it on https://demo.dataverse.org. Note that this is also an opportunity to re-test the upgrade checklist as described in the release note.
179
187
180
188
Publish the Release
181
189
-------------------
@@ -194,7 +202,7 @@ ssh into the guides server and update the symlink to point to the latest release
194
202
cd /var/www/html/en
195
203
ln -s 5.10.1 latest
196
204
197
-
205
+
This step could be done before publishing the release if you'd like to double check that links in the release notes work.
0 commit comments