File Metadata Update - Empty values clear fields#11439
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| ---- | ||
|
|
||
| - An undocumented :doc:`search` parameter called "show_my_data" has been removed. It was never exercised by tests and is believed to be unused. API users should use the :ref:`api-mydata` API instead. | ||
| - For POST /api/files/{id}/metadata passing an empty string (“description”:””) or array (“categories”:[]) will no longer be ignored. Empty fields will now clear out the values in the file's metadata. To ignore the fields simply do not include them in the Json string. |
There was a problem hiding this comment.
Are we trying to get this in 6.7? If not, this should be placed under "v6.8" in the changelog.
sourceInternalVersionNumber is gone right? Should we mention that?
Also, I would suggest replacing the smart quotes with straight quotes and writing "JSON" in all caps.
|
|
||
| #AbstractApiBean.java | ||
| abstractApiBean.error.internalVersionTimestampIsOutdated=Internal version timestamp {0} is outdated | ||
| abstractApiBean.error.datasetInternalVersionNumberIsOutdated=Dataset internal version number {0} is outdated |
There was a problem hiding this comment.
Can we remove this bundle entry? It seems to be unused now.
pdurbin
left a comment
There was a problem hiding this comment.
The changes look good. Thanks. Now that we're mentioning 6.8 explicitly in the guides, I added the 6.8 milestone.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
|
📦 Pushed preview images as 🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name. |
|
tests are passing - merging |
|
As @JR-1991 and I have been discussing, this change in behavior resulted in test failures here: Thanks for putting something in the "breaking changes" API changelog. |
What this PR does / why we need it: No way to clear the fields with the API since empty fields were being ignored
Which issue(s) this PR closes:#11392
Special notes for your reviewer:
Suggestions on how to test this: See FilesIT test
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?: Included
Additional documentation: Included