Page MenuHomePhabricator

[identity] Extract device list verification to separate func
ClosedPublic

Authored by bartek on Thu, Apr 18, 6:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 30, 5:44 PM
Unknown Object (File)
Sat, Apr 27, 11:12 AM
Unknown Object (File)
Sat, Apr 27, 4:17 AM
Unknown Object (File)
Fri, Apr 26, 8:52 AM
Unknown Object (File)
Wed, Apr 24, 6:37 PM
Unknown Object (File)
Tue, Apr 23, 4:30 PM
Unknown Object (File)
Tue, Apr 23, 11:27 AM
Unknown Object (File)
Sun, Apr 21, 5:38 PM
Subscribers

Details

Summary

Some refactor - Extracted verification logic to the caller of apply_device_list_update() to give flexibility of giving different verification criteria for different scenarios (e.g. we want it to be able to replace device list with a singleton during backup restore, but not when primary device is adding a new device)

Depends on D11685

Test Plan
  • Manually called UpdateDeviceList RPC. Behaves the same before and after this diff
    • Valid device list (1 device added)
    • Invalid update (2 devices added)
    • Invalid update (no changes)
    • Invalid update (device removed)
  • Integration test still passes

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.Fri, Apr 19, 3:34 AM
bartek edited the summary of this revision. (Show Details)
bartek edited the test plan for this revision. (Show Details)
bartek added inline comments.
services/identity/src/grpc_services/authenticated.rs
430–431 ↗(On Diff #39269)

Actually this is done in the next diff

This revision is now accepted and ready to land.Mon, Apr 22, 2:41 PM