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)
Sun, Nov 24, 5:40 AM
Unknown Object (File)
Sun, Nov 24, 5:39 AM
Unknown Object (File)
Sun, Nov 24, 5:39 AM
Unknown Object (File)
Sun, Nov 24, 5:39 AM
Unknown Object (File)
Sat, Nov 9, 5:11 PM
Unknown Object (File)
Sat, Nov 9, 5:11 PM
Unknown Object (File)
Fri, Nov 8, 3:48 AM
Unknown Object (File)
Mon, Oct 28, 1:44 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