Page MenuHomePhabricator

[services][blob] Add assign holder HTTP endpoint
ClosedPublic

Authored by bartek on Apr 18 2023, 12:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 5, 1:18 PM
Unknown Object (File)
Sat, Jan 4, 7:22 PM
Unknown Object (File)
Sat, Jan 4, 3:23 PM
Unknown Object (File)
Fri, Jan 3, 12:10 PM
Unknown Object (File)
Thu, Dec 26, 8:06 PM
Unknown Object (File)
Sun, Dec 15, 6:24 AM
Unknown Object (File)
Sun, Dec 15, 6:24 AM
Unknown Object (File)
Sun, Dec 15, 6:24 AM
Subscribers

Details

Summary

This diff implements endpoint to assign holder to a blob instance. Details are in the linear task. Ensuring that the blob exists is done in a separate diff.

Depends on D7466

Test Plan

Executed this endpoint for:

  • non-existing blob - false is returned in response
  • existing blob - true is returned in response. Also checked if holder is assigned to blob in DB (a reverse index is created).
  • already existing holder - HTTP 409 is returned

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable