-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
addDataverse API endpoint extension for input levels and facet list setup #10644
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
3dd6355
Stash: including input levels to addDataverse endpoint WIP
GPortas 1cc48b7
Stash: including facet ids to addDataverse endpoint WIP
GPortas 8c88d14
Changed: error messages extracted to Bundle.properties
GPortas 7840a02
Added: addDataverse IT
GPortas 1651f80
Added: metadata block selection and input level and facets setup fixe…
GPortas ca3d103
Changed: setting dataverse facet root only if facet list is not empty…
GPortas 3db5b50
Removed: prettyPrint call
GPortas cb4d1ac
Merge branch 'develop' of github.com:IQSS/dataverse into 10633-create…
GPortas 97cca69
Added: addInputLevelsMetadataBlocksIfNotPresent method to CreateDatav…
GPortas 4bc644c
Added: invalid metadata block name error message to bundle strings
GPortas d47396b
Added: error test cases to addDataverse IT
GPortas d49aa70
Added: docs for addDataverse API endpoint
GPortas fd88c92
Fixed: failing unit tests
GPortas 9194865
Added: docs for inputLevels GET API endpoint
GPortas 2123388
Removed: duplicated endpoint
GPortas b261668
Removed: unused json printer method
GPortas c9e1f07
Added: release notes for #10633
GPortas f4168f4
Fixed: release notes for #10633
GPortas e65eb9f
Added: doc tweak
GPortas d2140e1
Merge branch 'develop' of github.com:IQSS/dataverse into 10633-create…
GPortas f569530
Added: addDataverse IT cases
GPortas 4be7309
Changed: response strings extracted to bundle properties
GPortas 27adc35
Added: parse input level validation to avoid fields marked as require…
GPortas b65b5a3
Merge branch 'develop' into 10633-create-collection-api-ext
landreev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ | ||
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. |
65 changes: 65 additions & 0 deletions
65
doc/sphinx-guides/source/_static/api/dataverse-complete-optional-params.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,65 @@ | ||
{ | ||
"name": "Scientific Research", | ||
"alias": "science", | ||
"dataverseContacts": [ | ||
{ | ||
"contactEmail": "[email protected]" | ||
}, | ||
{ | ||
"contactEmail": "[email protected]" | ||
} | ||
], | ||
"affiliation": "Scientific Research University", | ||
"description": "We do all the science.", | ||
"dataverseType": "LABORATORY", | ||
"metadataBlocks": { | ||
"metadataBlockNames": [ | ||
"citation", "geospatial" | ||
], | ||
"inputLevels": [ | ||
{ | ||
"datasetFieldTypeName": "geographicCoverage", | ||
"include": true, | ||
"required": true | ||
}, | ||
{ | ||
"datasetFieldTypeName": "country", | ||
"include": true, | ||
"required": true | ||
}, | ||
{ | ||
"datasetFieldTypeName": "geographicUnit", | ||
"include": false, | ||
"required": false | ||
}, | ||
{ | ||
"datasetFieldTypeName": "geographicBoundingBox", | ||
"include": false, | ||
"required": false | ||
}, | ||
{ | ||
"datasetFieldTypeName": "westLongitude", | ||
"include": false, | ||
"required": false | ||
}, | ||
{ | ||
"datasetFieldTypeName": "eastLongitude", | ||
"include": false, | ||
"required": false | ||
}, | ||
{ | ||
"datasetFieldTypeName": "northLatitude", | ||
"include": false, | ||
"required": false | ||
}, | ||
{ | ||
"datasetFieldTypeName": "southLatitude", | ||
"include": false, | ||
"required": false | ||
} | ||
], | ||
"facetIds": [ | ||
"authorName", "authorAffiliation" | ||
] | ||
} | ||
} |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to test to make sure that "citation" is included as a metadata block. If it's not in the json we can either add it automatically (probably preferred) or throw an error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just added a test to verify that citation is always included, even if it is not specified in the JSON.