forked from IQSS/dataverse
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 7423-jms-config
- Loading branch information
Showing
45 changed files
with
1,487 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Major Use Cases | ||
|
||
- New API for Banners.. | ||
|
||
## Notes to Admins | ||
|
||
The functionality previously provided by the DB settings :StatusMessageHeader and ::StatusMessageText is no longer supported and is now provided through the Manage Banner Messages API. Learn more in the [Native API Guide](https://guides.dataverse.org/en/5.x/api/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## Notes for Tool Developers and Integrators | ||
|
||
Experimental endpoints have been added to allow auxiliary files to be added to datafiles. These auxiliary files can be deposited and accessed via API. Later releases will include options for accessing these files through the UI. For more information, see the Auxiliary File Support section of the [Developer Guide](https://guides.dataverse.org/en/5.3/developers/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
## Release Highlights | ||
|
||
### Easier Configuration of Database Connections | ||
|
||
Dataverse now being able to use up-to-date Java technologies, transforms | ||
the way how to configure the connection to your PostgreSQL database. | ||
|
||
In the past, the configuration of the connection has been quite static | ||
and not very easy to update. This has been an issue especially for cloud | ||
and container usage. | ||
|
||
Using MicroProfile Config API (#7000, #7418), you can much more easily specify configuration | ||
details. For an overview of supported options, please see the | ||
[installation guide](https://guides.dataverse.org/en/5.3/installation/config.html#jvm-options). | ||
|
||
Note that some settings have been moved from domain.xml to code such as min and max pool size. | ||
|
||
## Notes for Dataverse Installation Administrators | ||
|
||
### New JVM Options | ||
|
||
- dataverse.db.name | ||
- dataverse.db.user | ||
- dataverse.db.password | ||
- dataverse.db.host | ||
- dataverse.db.port | ||
|
||
<!-- ## Update to Payara Platform 5.2020.6 --> | ||
<!-- ... --> | ||
|
||
<!-- PLACEHOLDER REPLACEMENT TEXT FOR PAYARA UPGRADE NOTE #7417 --> | ||
🚨 THIS VERSION OF DATAVERSE **REQUIRES** UPGRADING TO PAYARA 5.2020.6. 🚨 | ||
|
||
<!-- ... --> | ||
|
||
## Upgrading from earlier releases | ||
|
||
ℹ️ You need to update the Payara Application Server before continuing here. See above. | ||
|
||
1. Undeploy the previous version. | ||
``` | ||
<payara install path>/asadmin list-applications | ||
<payara install path>/asadmin undeploy dataverse-<version> | ||
``` | ||
|
||
(where `<payara install path>` is where Payara 5 is installed, for example: `/usr/local/payara5`) | ||
|
||
2. Update your database connection before updating. | ||
|
||
Please configure your connection details, replacing all the `${DB_...}`. | ||
(If you are using a PostgreSQL server on `localhost:5432`, you can omit `dataverse.db.host` and `dataverse.db.port`.) | ||
|
||
``` | ||
<payara install path>/asadmin create-system-properties "dataverse.db.user=${DB_USER}" | ||
<payara install path>/asadmin create-system-properties "dataverse.db.host=${DB_HOST}" | ||
<payara install path>/asadmin create-system-properties "dataverse.db.port=${DB_PORT}" | ||
<payara install path>/asadmin create-system-properties "dataverse.db.name=${DB_NAME}" | ||
echo "AS_ADMIN_ALIASPASSWORD=${DB_PASS}" > /tmp/password.txt | ||
<payara install path>/asadmin create-password-alias --passwordfile /tmp/password.txt dataverse.db.password | ||
rm /tmp/password.txt | ||
``` | ||
|
||
<!-- PLACE HOLDER FOR EJB TIMER DATABASE RESET NOTE #5345 --> | ||
|
||
Now you are safe to delete the old password alias and DB pool: | ||
``` | ||
<payara install path>/asadmin delete-jdbc-connection-pool --cascade=true dvnDbPool | ||
<payara install path>/asadmin delete-password-alias db_password_alias | ||
``` | ||
|
||
3. Stop payara and remove the generated directory, start. | ||
``` | ||
service payara stop | ||
# remove the generated directory: | ||
rm -rf <payara install path>/payara/domains/domain1/generated | ||
service payara start | ||
``` | ||
|
||
3. Deploy this version. | ||
``` | ||
<payara install path>/bin/asadmin deploy dataverse-5.3.war | ||
``` | ||
|
||
4. Restart Payara | ||
``` | ||
service payara stop | ||
service payara start | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Auxiliary File Support | ||
====================== | ||
|
||
Auxiliary file support is experimental. Auxiliary files in Dataverse are being added to support depositing and downloading differentially private metadata, as part of the OpenDP project (OpenDP.io). In future versions, this approach may become more broadly used and supported. | ||
|
||
Adding an Auxiliary File to a Datafile | ||
-------------------------------------- | ||
To add an auxiliary file, specify the primary key of the datafile (FILE_ID), and the formatTag and formatVersion (if applicable) associated with the auxiliary file. There are two form parameters. "Origin" specifies the application/entity that created the auxiliary file, an "isPublic" controls access to downloading the file. If "isPublic" is true, any user can download the file, else, access authorization is based on the access rules as defined for the DataFile itself. | ||
|
||
.. code-block:: bash | ||
export API_TOKEN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | ||
export FILENAME='auxfile.txt' | ||
export FILE_ID='12345' | ||
export FORMAT_TAG='dpJson' | ||
export FORMAT_VERSION='v1' | ||
export SERVER_URL=https://demo.dataverse.org | ||
curl -H X-Dataverse-key:$API_TOKEN -X POST -F "file=@$FILENAME" -F 'origin=myApp' -F 'isPublic=true' "$SERVER_URL/api/access/datafile/$FILE_ID/metadata/$FORMAT_TAG/$FORMAT_VERSION" | ||
You should expect a 200 ("OK") response and JSON with information about your newly uploaded auxiliary file. | ||
|
||
Downloading an Auxiliary File that belongs to a Datafile | ||
-------------------------------------------------------- | ||
To download an auxiliary file, use the primary key of the datafile, and the | ||
formatTag and formatVersion (if applicable) associated with the auxiliary file: | ||
|
||
.. code-block:: bash | ||
export API_TOKEN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | ||
export SERVER_URL=https://demo.dataverse.org | ||
export FILE_ID='12345' | ||
export FORMAT_TAG='dpJson' | ||
export FORMAT_VERSION='v1' | ||
curl "$SERVER_URL/api/access/datafile/$FILE_ID/$FORMAT_TAG/$FORMAT_VERSION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,5 @@ Developer Guide | |
geospatial | ||
selinux | ||
big-data-support | ||
aux-file-support | ||
workflows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"dismissible": "false", | ||
"messageTexts": [ | ||
{ | ||
"lang": "en", | ||
"text": "Invalid json" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"dismissibleByUser": "false", | ||
"messageTexts": [ | ||
{ | ||
"lang": "en", | ||
"message": "Banner Message added via API" | ||
}, | ||
{ | ||
"lang": "fr", | ||
"message": "Message de bannière ajouté via l'API" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"dismissibleByUser": "false", | ||
"messageTexts": [ | ||
{ | ||
"lang": "en", | ||
"message": "Banner Message For Deletion" | ||
}, | ||
{ | ||
"lang": "fr", | ||
"message": "Banner Message For Deletion" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.