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)
Mon, Dec 23, 3:28 PM
Unknown Object (File)
Mon, Dec 23, 3:28 PM
Unknown Object (File)
Mon, Dec 23, 3:28 PM
Unknown Object (File)
Mon, Dec 23, 3:27 PM
Unknown Object (File)
Mon, Dec 23, 3:27 PM
Unknown Object (File)
Sat, Dec 14, 4:18 PM
Unknown Object (File)
Tue, Dec 10, 9:36 PM
Unknown Object (File)
Nov 25 2024, 11:11 AM
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