Page MenuHomePhabricator

[lib][keyserver] Expose upload_media_metadata endpoint
ClosedPublic

Authored by bartek on Apr 25 2023, 11:28 AM.
Tags
None
Referenced Files
F1690460: D7620.diff
Wed, May 1, 9:43 PM
Unknown Object (File)
Tue, Apr 23, 9:42 AM
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
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
No Lint Coverage
Unit
No Test Coverage

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