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)
Mon, Oct 28, 1:44 AM
Unknown Object (File)
Wed, Oct 23, 7:35 PM
Unknown Object (File)
Mon, Oct 21, 2:06 AM
Unknown Object (File)
Mon, Oct 21, 2:06 AM
Unknown Object (File)
Mon, Oct 21, 2:06 AM
Unknown Object (File)
Sun, Oct 20, 11:12 AM
Unknown Object (File)
Oct 4 2024, 10:46 PM
Unknown Object (File)
Sep 28 2024, 5:53 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
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