-
Notifications
You must be signed in to change notification settings - Fork 541
File Metadata Update - Empty values clear fields #11439
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
9baf2d5
File Metadata Update
stevenwinship 6d871aa
new version checking
stevenwinship fd800fc
fix test
stevenwinship dea4904
Merge branch 'develop' into 11392-edit-file-metadata-empty-values
stevenwinship 8dcb065
fix test
stevenwinship 2fce5fd
add to test
stevenwinship 26f07b7
adding info for debugging jenkins test failure
stevenwinship 10939ce
remove jenkins debug
stevenwinship f5ddcff
per review comments
stevenwinship 1615fb9
per review comments
stevenwinship 8a57fc8
refactor to use last update timestamp instead of version number
stevenwinship 6fedf6e
comment on data/timestamp compare
stevenwinship eaf49a9
refactor so both datafiles and datasets validate update timestamp the…
stevenwinship 1320d51
refactor optional qp name from sourceInternalVersionTimestamp to sour…
stevenwinship b61bb1c
Merge branch 'develop' into 11392-edit-file-metadata-empty-values
stevenwinship 8ef92d2
Merge branch 'develop' into 11392-edit-file-metadata-empty-values
stevenwinship 7563cf8
Suggested doc edits (#11590)
qqmyers 7a7a84f
Merge branch 'develop' into 11392-edit-file-metadata-empty-values
stevenwinship 0eaca6c
Merge branch 'develop' into 11392-edit-file-metadata-empty-values
stevenwinship 0c72a89
remove unused bundle entry
stevenwinship 509e55a
update changelog to move this PR to 6.8
stevenwinship c465180
Merge branch 'develop' into 11392-edit-file-metadata-empty-values
stevenwinship 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 hidden or 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 @@ | ||
| ### Edit Dataset Metadata API extension | ||
|
|
||
| - This endpoint now allows removing fields (by sending empty values), as long as they are not required by the dataset. | ||
| - New ``sourceLastUpdateTime`` optional query parameter, which prevents inconsistencies by managing updates that | ||
| may occur from other users while a dataset is being edited. | ||
|
|
||
| NOTE: This release note was updated to conform to the refactoring of the validation as part of issue #11392 |
This file contains hidden or 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 @@ | ||
| ### Edit File Metadata empty values should clear data | ||
|
|
||
| Previously the API POST /files/{id}/metadata would ignore fields with empty values. Now the API updates the fields with the empty values essentially clearing the data. Missing fields will still be ignored. | ||
|
|
||
| An optional query parameter (sourceLastUpdateTime) was added to ensure the metadata update doesn't overwrite stale data. | ||
|
|
||
| See also [the guides](https://dataverse-guide--11359.org.readthedocs.build/en/11359/api/native-api.html#updating-file-metadata), #11392, and #11359. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.