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 2, 5:11 PM
Unknown Object (File)
Sat, Oct 26, 5:40 AM
Unknown Object (File)
Wed, Oct 23, 8:08 PM
Unknown Object (File)
Sun, Oct 20, 1:20 AM
Unknown Object (File)
Fri, Oct 11, 10:04 AM
Unknown Object (File)
Wed, Oct 9, 1:29 AM
Unknown Object (File)
Oct 5 2024, 5:42 AM
Unknown Object (File)
Sep 27 2024, 1:26 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
Lint Not Applicable
Unit
Tests Not Applicable