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)
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
Unknown Object (File)
Fri, Nov 8, 1:30 PM
Unknown Object (File)
Fri, Nov 8, 12:23 PM
Unknown Object (File)
Fri, Nov 8, 12:23 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