Open GPortas opened 3 days ago
:package: Pushed preview images as
ghcr.io/gdcc/dataverse:11018-update-dataverse-fix
ghcr.io/gdcc/configbaker:11018-update-dataverse-fix
:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.
:package: Pushed preview images as
ghcr.io/gdcc/dataverse:11018-update-dataverse-fix
ghcr.io/gdcc/configbaker:11018-update-dataverse-fix
:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.
:package: Pushed preview images as
ghcr.io/gdcc/dataverse:11018-update-dataverse-fix
ghcr.io/gdcc/configbaker:11018-update-dataverse-fix
:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.
:package: Pushed preview images as
ghcr.io/gdcc/dataverse:11018-update-dataverse-fix
ghcr.io/gdcc/configbaker:11018-update-dataverse-fix
:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.
:package: Pushed preview images as
ghcr.io/gdcc/dataverse:11018-update-dataverse-fix
ghcr.io/gdcc/configbaker:11018-update-dataverse-fix
:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.
:package: Pushed preview images as
ghcr.io/gdcc/dataverse:11018-update-dataverse-fix
ghcr.io/gdcc/configbaker:11018-update-dataverse-fix
:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.
:package: Pushed preview images as
ghcr.io/gdcc/dataverse:11018-update-dataverse-fix
ghcr.io/gdcc/configbaker:11018-update-dataverse-fix
:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.
:package: Pushed preview images as
ghcr.io/gdcc/dataverse:11018-update-dataverse-fix
ghcr.io/gdcc/configbaker:11018-update-dataverse-fix
:ship: See on GHCR. Use by referencing with full name as printed above, mind the registry name.
What this PR does / why we need it:
The updateDataverse API endpoint has been updated to support an "inherit from parent" configuration for metadata blocks, facets, and input levels.
When it comes to omitting any of these fields in the request JSON:
facetIds
ormetadataBlockNames
causes the Dataverse collection to inherit the corresponding configuration from its parent.inputLevels
removes any existing input levels in the Dataverse collection.Previously, not setting these fields meant keeping the existing ones in the Dataverse.
Which issue(s) this PR closes:
Special notes for your reviewer:
I have applied this behavior only to the updateDataverse endpoint, preserving the previous behavior of the UpdateDataverseCommand in other places for backwards compatibility.
Suggestions on how to test this:
curl -H "X-Dataverse-key:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -X PUT "http://localhost:8080/api/dataverses/dvAlias" --upload-file update-dataverse.json
Does this PR introduce a user interface change? If mockups are available, please link/include them here:No
Is there a release notes update needed for this change?:
Yes, attached.
Additional documentation:
None