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
Unknown Object (File)
Mon, Nov 18, 9:47 PM
Unknown Object (File)
Sun, Nov 17, 8:53 AM
Unknown Object (File)
Thu, Nov 7, 12:17 AM
Unknown Object (File)
Oct 18 2024, 4:34 AM
Unknown Object (File)
Oct 18 2024, 4:34 AM
Unknown Object (File)
Oct 18 2024, 4:34 AM
Unknown Object (File)
Oct 18 2024, 4:33 AM
Unknown Object (File)
Oct 18 2024, 4:33 AM
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