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)
Tue, Jun 25, 11:49 AM
Unknown Object (File)
Tue, Jun 25, 11:49 AM
Unknown Object (File)
Tue, Jun 25, 11:49 AM
Unknown Object (File)
Tue, Jun 25, 11:49 AM
Unknown Object (File)
Tue, Jun 25, 11:49 AM
Unknown Object (File)
Tue, Jun 25, 11:49 AM
Unknown Object (File)
Wed, Jun 12, 3:43 PM
Unknown Object (File)
Thu, Jun 6, 11:05 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
Lint Not Applicable
Unit
Tests Not Applicable

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