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
DatasetFieldTypes in MetadataBlock response that are also a child of another DatasetFieldType were being returned twice. The child DatasetFieldType was included in the "fields" object as well as in the "childFields" of it's parent DatasetFieldType. This fix suppresses the standalone object so only one instance of the DatasetFieldType is returned (in the "childFields" of its parent).
4
+
This fix changes the Json output of the API `/api/dataverses/{dataverseAlias}/metadatablocks`
5
+
6
+
## Backward Incompatible Changes
7
+
8
+
The Json response of API call `/api/dataverses/{dataverseAlias}/metadatablocks` will no longer include the DatasetFieldTypes in "fields" if they are children of another DatasetFieldType. The child DatasetFieldType will only be included in the "childFields" of it's parent DatasetFieldType.
OAI Client harvesting now uses the correct granularity while re-run a partial harvest (using the `from` parameter). The correct granularity comes from the `Identify` verb request.
This release fixes a bug that caused Dataverse to generate unnecessary solr documents for files when a file is added/deleted from a draft dataset. These documents could accumulate and potentially impact performance.
2
+
3
+
Assuming the upgrade to solr 9.7.0 also occurs in this release, there's nothing else needed for this PR. (Starting with a new solr insures the solr db is empty and that a reindex is already required.)
### Fixes consequences for not adding some optional fields in update dataverse API
2
+
3
+
Omitting optional fields inputLevels, facetIds, or metadataBlockNames caused data to be deleted.
4
+
This fix no longer deletes data for these fields. Two new flags have been added to the ``metadataBlocks`` Json object to signal the deletion of the data.
5
+
-``inheritMetadataBlocksFromParent: true`` will remove ``metadataBlockNames`` and ``inputLevels`` if the Json objects are omitted.
6
+
-``inheritFacetsFromParent: true`` will remove ``facetIds`` if the Json object is omitted.
7
+
8
+
For more information, see issue [#11130](https://github.com/IQSS/dataverse/issues/11130)
### Search fix when using AVOID_EXPENSIVE_SOLR_JOIN=true
2
+
3
+
Dataverse v6.5 introduced a bug which causes search to fail for non-superusers in multiple groups when the AVOID_EXPENSIVE_SOLR_JOIN feature flag is set to true. This releases fixes the bug.
A new API endpoint has been added that allows a global role to be updated. See [Native API Guide > Update Global Role](https://guides.dataverse.org/en/6.3/api/native-api.html#update-global-role) (#10612)
6
+
7
+
## Bug fixes
8
+
9
+
### Edition of custom role fixed
10
+
11
+
It is now possible to edit a custom role with the same alias (reported in #8808)
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/api/native-api.rst
+44-10Lines changed: 44 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,12 +128,23 @@ Note that setting any of these fields overwrites the previous configuration.
128
128
129
129
When it comes to omitting these fields in the JSON:
130
130
131
-
- Omitting ``facetIds`` or ``metadataBlockNames`` causes the Dataverse collection to inherit the corresponding configuration from its parent.
132
-
- Omitting ``inputLevels`` removes any existing custom input levels in the Dataverse collection.
133
-
- Omitting the entire ``metadataBlocks`` object in the request JSON would exclude the three sub-objects, resulting in the application of the two changes described above.
131
+
- Omitting ``facetIds`` or ``metadataBlockNames`` causes no change to the Dataverse collection. To delete the current configuration and inherit the corresponding configuration from its parent include the flag ``inheritFacetsFromParent`` and/or ``inheritMetadataBlocksFromParent`` respectively.
132
+
- Omitting ``inputLevels`` causes no change to the Dataverse collection. Including the flag ``inheritMetadataBlocksFromParent`` will cause the custom ``inputLevels`` to be deleted and inherited from the parent.
133
+
- Omitting the entire ``metadataBlocks`` object in the request JSON would cause no change to the ``inputLevels``, ``facetIds`` or ``metadataBlockNames`` of the Dataverse collection.
134
134
135
135
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.
136
136
137
+
To force the configurations to be deleted and inherited from the parent's configuration include the following ``metadataBlocks`` object in your JSON
138
+
139
+
.. code-block:: json
140
+
141
+
"metadataBlocks": {
142
+
"inheritMetadataBlocksFromParent": true,
143
+
"inheritFacetsFromParent": true
144
+
}
145
+
146
+
.. note:: Including both the list ``metadataBlockNames`` and the flag ``"inheritMetadataBlocksFromParent": true`` will result in an error being returned {"status": "ERROR", "message": "Metadata block can not contain both metadataBlockNames and inheritMetadataBlocksFromParent: true"}. The same is true for ``facetIds`` and ``inheritFacetsFromParent``.
147
+
137
148
See also :ref:`collection-attributes-api`.
138
149
139
150
.. _view-dataverse:
@@ -4558,12 +4569,12 @@ The JSON representation of a role (``roles.json``) looks like this::
4558
4569
4559
4570
{
4560
4571
"alias": "sys1",
4561
-
"name": “Restricted System Role”,
4562
-
"description": “A person who may only add datasets.”,
4572
+
"name": "Restricted System Role",
4573
+
"description": "A person who may only add datasets.",
4563
4574
"permissions": [
4564
4575
"AddDataset"
4565
4576
]
4566
-
}
4577
+
}
4567
4578
4568
4579
.. note:: alias is constrained to a length of 16 characters
4569
4580
@@ -5721,22 +5732,43 @@ Creates a global role in the Dataverse installation. The data POSTed are assumed
The MyData API is used to get a list of just the datasets, dataverses or datafiles an authenticated user can edit.
6627
6659
6660
+
The API excludes dataverses linked to an harvesting client. This results in `a known issue <https://github.com/IQSS/dataverse/issues/11083>`_ where regular datasets in harvesting dataverses are missing from the results.
0 commit comments