Page MenuHomePhabricator

[keyserver][lib] Blob client function to remove multiple holders
ClosedPublic

Authored by bartek on Mon, Sep 30, 3:10 AM.
Tags
None
Referenced Files
F2874449: D13511.diff
Thu, Oct 3, 2:12 AM
F2870554: D13511.id44815.diff
Wed, Oct 2, 7:29 PM
F2867544: D13511.id44664.diff
Wed, Oct 2, 2:07 PM
F2865163: D13511.id.diff
Wed, Oct 2, 8:13 AM
F2864259: D13511.id44746.diff
Wed, Oct 2, 6:02 AM
Unknown Object (File)
Tue, Oct 1, 10:04 PM
Unknown Object (File)
Tue, Oct 1, 12:03 AM
Unknown Object (File)
Tue, Oct 1, 12:02 AM
Subscribers

Details

Summary

Similiarly to assignMultipleHolders(), added a blob client function to remove multiple holders.
Added a keyserver wrapper for this function which provides HTTP headers with CSAT.

Test Plan

Called the function from keyserver against local Blob Service. Verified that requested holders were removed from DDB

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.Mon, Sep 30, 4:05 AM

I'm aware types are not perfect, I described cleanup/refactor plan in ENG-9422

lib/utils/blob-service.js
178 ↗(On Diff #44664)

I lost this in rebase

lib/utils/blob-service.js
163–167 ↗(On Diff #44664)

It's a bit unusual that this union of disjoint types doesn't have a single property to disambiguate. I'd consider something like +result: 'success' | 'error' | 'failedRequests', or (perhaps easier) to make failedRequests a sub-case of error: true

This revision is now accepted and ready to land.Wed, Oct 2, 12:56 AM