new db method to get all tokens for a user and then delete them with BatchWriteItem. we use the comm-lib batch_write function for the delete requests.
Depends on D11795
Paths
| Differential D11796 Authored by varun on Apr 25 2024, 4:45 PM.
Details Summary new db method to get all tokens for a user and then delete them with BatchWriteItem. we use the comm-lib batch_write function for the delete requests. Depends on D11795 Test Plan signed in to a local account from web, native, and keyserver. then deleted my account from native. confirmed that there were no tokens in local ddb for my user ID
Diff Detail
Event TimelineHerald added subscribers: tomek, ashoat. · View Herald TranscriptApr 25 2024, 4:45 PM2024-04-25 16:45:08 (UTC-7) Harbormaster completed remote builds in B28492: Diff 39522.Apr 25 2024, 5:00 PM2024-04-25 17:00:47 (UTC-7) This revision is now accepted and ready to land.Apr 26 2024, 1:14 AM2024-04-26 01:14:28 (UTC-7) Closed by commit rCOMMb08ab7a0087b: [identity] delete all token data on user account deletion (authored by varun). · Explain WhyApr 26 2024, 11:31 AM2024-04-26 11:31:07 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 39522 services/identity/src/constants.rs
services/identity/src/database.rs
services/identity/src/database/token.rs
|
updateChangedUndirectedRelationships only updates the relationship if there was none, or the relationship status provided it greater than the one in the db. This will not be the case here, because KNOW_OF is 0-the lowest possible value. So we will not override a more meaningful relationship.