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)
Thu, Sep 26, 1:33 AM
Unknown Object (File)
Tue, Sep 24, 7:16 AM
Unknown Object (File)
Tue, Sep 10, 1:18 AM
Unknown Object (File)
Aug 15 2024, 8:13 PM
Unknown Object (File)
Aug 6 2024, 8:42 AM
Unknown Object (File)
Aug 6 2024, 8:42 AM
Unknown Object (File)
Aug 6 2024, 8:42 AM
Unknown Object (File)
Aug 6 2024, 8:42 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
No Lint Coverage
Unit
No Test Coverage

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

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

Move function into impl DatabaseClient