Page MenuHomePhabricator

[lib][keyserver] Expose upload_media_metadata endpoint
ClosedPublic

Authored by bartek on Apr 25 2023, 11:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 3, 8:22 PM
Unknown Object (File)
Wed, Apr 3, 8:22 PM
Unknown Object (File)
Wed, Apr 3, 8:22 PM
Unknown Object (File)
Wed, Apr 3, 8:22 PM
Unknown Object (File)
Wed, Apr 3, 8:21 PM
Unknown Object (File)
Wed, Apr 3, 8:14 PM
Unknown Object (File)
Thu, Mar 28, 4:39 AM
Unknown Object (File)
Mar 5 2024, 8:24 AM
Subscribers

Details

Summary

This diff exposes the upload_media_metadata endpoint.

Depends on D7619

Test Plan

Created useServerCall hook and called this endpoint. Verified that a new record is added to the uploads table.
The endpoint response format is the same as the upload_multimedia endpoint.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Apr 25 2023, 11:46 AM
ashoat added inline comments.
lib/actions/upload-actions.js
28 ↗(On Diff #25694)

Since we directly return the result from the server here, it would be good to make sure that the code that consumes this will not break if the server starts including some new additional key

This revision is now accepted and ready to land.Apr 25 2023, 12:48 PM

Rebase. Opted out of direct return, for similiar reasons as discussed in D7522