Page MenuHomePhabricator

[blob-service] DB: Add holder management methods
ClosedPublic

Authored by bartek on Jul 9 2023, 2:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 19, 9:56 AM
Unknown Object (File)
Sat, Apr 19, 9:01 AM
Unknown Object (File)
Sat, Apr 19, 8:58 AM
Unknown Object (File)
Sat, Apr 19, 4:26 AM
Unknown Object (File)
Thu, Apr 17, 10:50 PM
Unknown Object (File)
Wed, Apr 2, 10:46 PM
Unknown Object (File)
Tue, Apr 1, 9:42 PM
Unknown Object (File)
Mar 19 2025, 3:22 PM
Subscribers

Details

Summary

Part of ENG-4269.

Added methods to manage holder assignments - design described in-depth in the notion doc attached to the parent linear issue

Depends on D8450.

Test Plan

Tested together with the previous and the following diff

Created a custom testing sandbox to play with these:

  1. Checkout this stack (this + next diff)
  2. Apply this patch and copy the tests.rs file contents attached there to the services/blob/src/database/client/tests.rs.
  3. cargo run

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek edited the test plan for this revision. (Show Details)
bartek published this revision for review.Jul 10 2023, 12:43 AM

Rust looks fine to me, but would like other to take a look

services/blob/src/database/client.rs
156–157

Should we create a followup task for this?

310

Why are we checking if len < 3? Should we maybe put it into a more descriptive constant?

This revision is now accepted and ready to land.Jul 13 2023, 10:00 AM