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
Unknown Object (File)
Mon, Nov 18, 12:21 PM
Unknown Object (File)
Thu, Nov 7, 12:00 AM
Unknown Object (File)
Oct 18 2024, 2:43 AM
Unknown Object (File)
Oct 18 2024, 2:43 AM
Unknown Object (File)
Oct 18 2024, 2:43 AM
Unknown Object (File)
Oct 18 2024, 2:43 AM
Unknown Object (File)
Oct 18 2024, 2:42 AM
Unknown Object (File)
Oct 18 2024, 2:42 AM
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