Page MenuHomePhabricator

[identity] Add function to retrieve user's devices
ClosedPublic

Authored by bartek on Dec 7 2023, 12:13 AM.
Tags
None
Referenced Files
F2148514: D10217.id34367.diff
Sun, Jun 30, 5:22 AM
Unknown Object (File)
Sat, Jun 29, 9:22 AM
Unknown Object (File)
Sat, Jun 29, 12:30 AM
Unknown Object (File)
Wed, Jun 26, 4:33 PM
Unknown Object (File)
Tue, Jun 25, 12:53 PM
Unknown Object (File)
Tue, Jun 25, 12:53 PM
Unknown Object (File)
Tue, Jun 25, 12:53 PM
Unknown Object (File)
Tue, Jun 25, 12:53 PM
Subscribers

Details

Summary

This function retrieves all Device rows for given user. This is a counterpart of get_keys_for_user function in "legacy" schema.

Depends on D10216

Test Plan

Added a few test rows (with both device- and devicelist- prefixes) to the identity-devices table and verified that the function returns only the device- items.

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.Dec 7 2023, 1:06 AM
varun added inline comments.
services/identity/src/database/device_list.rs
309 ↗(On Diff #34367)

maybe i missed it but is there a reason why this isn't a client method? i.e. should this be in an impl DatabaseClient block instead?

This revision is now accepted and ready to land.Dec 8 2023, 12:39 AM
services/identity/src/database/device_list.rs
309 ↗(On Diff #34367)

Move function into impl DatabaseClient