Page MenuHomePhabricator

[Identity] send `IdentityDeviceListUpdated` after logout
ClosedPublic

Authored by kamil on Mon, Jun 10, 5:06 AM.
Tags
None
Referenced Files
F2152882: D12378.id.diff
Sun, Jun 30, 4:10 PM
Unknown Object (File)
Sat, Jun 29, 10:09 AM
Unknown Object (File)
Fri, Jun 28, 6:30 AM
Unknown Object (File)
Tue, Jun 25, 5:03 PM
Unknown Object (File)
Tue, Jun 25, 10:19 AM
Unknown Object (File)
Tue, Jun 25, 7:00 AM
Unknown Object (File)
Mon, Jun 24, 5:00 PM
Unknown Object (File)
Mon, Jun 24, 10:45 AM
Subscribers

Details

Summary

Part of ENG-7837.

Sending messages to devices remained on device list.

Depends on D12377

Test Plan
  1. Run local TB, and Identity, and make all clients connect to it.
  2. usingCommServicesAccessToken = true
  3. Login on multiple devices (2 devices of user A, 1 device of user B but A is aware of B).
  4. Log out on one of A's devices (the device that was last logged in - updates after login are not ready yet).
  5. Other A device should receive an update and fetch an updated device list
  6. B device should receive an update and fetch the device list for B

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil edited the test plan for this revision. (Show Details)
kamil published this revision for review.Mon, Jun 10, 9:52 AM

Besides that LGTM

services/identity/src/grpc_services/authenticated.rs
354–361 ↗(On Diff #41159)

Commented in D12377 - modifying send_device_list_update() to accept list of device IDs and creating a single tokio::spawn task for all of them might be more efficient.

This revision is now accepted and ready to land.Thu, Jun 13, 3:14 AM