Page MenuHomePhabricator

[keyserver] Add a function that deletes a blob
ClosedPublic

Authored by tomek on Nov 24 2023, 6:48 AM.
Tags
None
Referenced Files
F5937826: D9966.id.diff
Fri, Apr 18, 6:59 AM
F5927777: D9966.id36404.diff
Fri, Apr 18, 1:21 AM
F5914597: D9966.id34052.diff
Thu, Apr 17, 8:31 PM
F5909051: D9966.diff
Thu, Apr 17, 3:02 PM
Unknown Object (File)
Tue, Apr 8, 11:29 PM
Unknown Object (File)
Tue, Apr 8, 10:40 PM
Unknown Object (File)
Tue, Apr 8, 10:35 PM
Unknown Object (File)
Tue, Apr 8, 10:34 PM
Subscribers

Details

Summary

This function calls an endpoint of Blob service that deletes a blob.

Depends on D9944

Test Plan

Create a blob and delete it - check if a holder is deleted.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Nov 24 2023, 7:08 AM
This revision is now accepted and ready to land.Nov 24 2023, 10:42 AM

Use a param object instead of two args for hash and holder to avoid the confusion between them

Destructure params inside function

bartek added inline comments.
keyserver/src/services/blob.js
103–105 ↗(On Diff #36406)

Before landing, could you update this diff to use the function from D10908?

Use auth headers

keyserver/src/services/blob.js
103–105 ↗(On Diff #36406)

Sure!