Page MenuHomePhabricator

[identity] Add function to remove user devices' data
ClosedPublic

Authored by bartek on Jun 27 2024, 7:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 10:23 AM
Unknown Object (File)
Fri, Nov 22, 5:01 AM
Unknown Object (File)
Thu, Nov 21, 11:53 PM
Unknown Object (File)
Wed, Nov 20, 11:20 PM
Unknown Object (File)
Wed, Nov 20, 5:22 PM
Unknown Object (File)
Wed, Nov 20, 1:27 AM
Unknown Object (File)
Fri, Nov 15, 1:22 AM
Unknown Object (File)
Fri, Nov 8, 10:36 PM
Subscribers

Details

Summary

Added a function that prunes all user's devices data, while keeping device lists.
Removes all DeviceRow DDB items for given user_id. It does this by querying items with specific sort key prefix.

Made it return list of removed device IDs, it will be used for Tunnelbroker to remove their data too.

Depends on D12587

Test Plan

Cargo check. The logic is tested later in the stack

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage