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)
Mon, Mar 3, 7:43 PM
Unknown Object (File)
Wed, Feb 26, 6:09 PM
Unknown Object (File)
Wed, Feb 26, 6:09 PM
Unknown Object (File)
Wed, Feb 26, 6:09 PM
Unknown Object (File)
Wed, Feb 26, 6:08 PM
Unknown Object (File)
Wed, Feb 26, 5:57 PM
Unknown Object (File)
Wed, Feb 26, 12:22 PM
Unknown Object (File)
Wed, Feb 26, 5:31 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