Page MenuHomePhabricator

[identity] Relax conditions for device list reorder
ClosedPublic

Authored by bartek on Sep 23 2024, 2:54 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 2:24 AM
Unknown Object (File)
Nov 9 2024, 1:56 AM
Unknown Object (File)
Nov 8 2024, 7:02 PM
Unknown Object (File)
Nov 8 2024, 7:02 PM
Unknown Object (File)
Nov 8 2024, 7:02 PM
Unknown Object (File)
Nov 8 2024, 2:08 AM
Unknown Object (File)
Nov 1 2024, 5:35 AM
Unknown Object (File)
Oct 30 2024, 11:25 PM
Subscribers

Details

Summary

Address ENG-9272.
Made v1 login RPCs able to reorder device list even if new logout flow was used (DDB devices data doesn't match device list).
Updated some log messages to be more meaningful and used redact_sensitive_data in more places.

Test Plan
  • Registered a user
  • Used "Primary device logout" to log out. This left a singleton device list on Identity.
  • Logged in with v1 Login on mobile.
    • Device list was reordered. An info log was displayed about mismatch but no error.
  • Manually modified DDB to contain device that is not on device list
  • Used v1 login. Warn was displayed about corrupt state

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.Sep 23 2024, 3:33 AM
varun added inline comments.
services/identity/src/database/device_list.rs
1950 ↗(On Diff #44407)
This revision is now accepted and ready to land.Sep 24 2024, 11:47 AM