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
F1777462: D11686.diff
Fri, May 17, 1:27 AM
Unknown Object (File)
Sun, May 12, 12:55 AM
Unknown Object (File)
Mon, May 6, 4:31 AM
Unknown Object (File)
Fri, May 3, 10:57 PM
Unknown Object (File)
Thu, May 2, 10:31 PM
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
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
No Lint Coverage
Unit
No Test Coverage

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