Page MenuHomePhabricator

[identity] Add function to get device list history
ClosedPublic

Authored by bartek on Dec 8 2023, 4:45 AM.
Tags
None
Referenced Files
F2193009: D10247.id35276.diff
Thu, Jul 4, 8:53 PM
F2192734: D10247.id34508.diff
Thu, Jul 4, 8:25 PM
F2192554: D10247.id35276.diff
Thu, Jul 4, 8:02 PM
F2192003: D10247.id34892.diff
Thu, Jul 4, 6:34 PM
Unknown Object (File)
Tue, Jul 2, 6:20 PM
Unknown Object (File)
Tue, Jul 2, 4:31 PM
Unknown Object (File)
Tue, Jul 2, 4:19 PM
Unknown Object (File)
Mon, Jul 1, 11:28 PM
Subscribers

Details

Summary

Part of ENG-5049. Adds a function that queries all device list updates since given timestamp, or all updates ever if no timestamp is given.

Depends on D10246

Test Plan

Added three updates with to DDB.

  • Without timestamp, all three are returned.
  • Given timestamp T, where U1 < T < U2 < U3, the function returned U2 and U3.
  • Empty list is returned if timestamp is after all updates.
  • Empty list is returned if the user has no device lists yet.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.

Move function into impl DatabaseClient

bartek published this revision for review.Dec 12 2023, 3:20 AM
varun added inline comments.
services/identity/src/database/device_list.rs
433 ↗(On Diff #34508)

tiemstamp -> timestamp
deice -> device

This revision is now accepted and ready to land.Dec 19 2023, 8:25 PM