Fix deletion task, protect more account-linked data #165

Manually merged
Anna Sirota merged 11 commits from fix-account-deletion into main 2024-06-05 13:24:50 +02:00
Owner

Account deletion task had a bug in it: its was skipping all accounts that were deactivated, but accounts are deactivated as soon as date_deletion_requested is received via webhook.

In addition to fixing that (now the task will exclude all account records that look like they were already anonymized), this also changes several on delete properties:

  • abuse reports about a deleted account are deleted along with it;
  • abuse reports made by a deleted account remain;
  • ratings made by a deleted account remain;
  • approval activity protects against deletion: account cannot be deleted if it authored any approval activity;

This PR also makes sure that API tokens and OAuth info/tokens are deleted when account is anonymized as well.

Account deletion task had a bug in it: its was skipping all accounts that were deactivated, but accounts are deactivated as soon as `date_deletion_requested` is received via webhook. In addition to fixing that (now the task will exclude all account records that look like they were already anonymized), this also changes several on delete properties: * abuse reports about a deleted account are deleted along with it; * abuse reports **made** by a deleted account remain; * ratings made by a deleted account remain; * approval activity protects against deletion: account cannot be deleted if it authored any approval activity; This PR also makes sure that API tokens and OAuth info/tokens are deleted when account is anonymized as well.
Anna Sirota added 1 commit 2024-06-04 11:23:05 +02:00
Anna Sirota changed title from WIP: Enable deletion task, protect more account-linked data to WIP: Fix deletion task, protect more account-linked data 2024-06-04 11:23:15 +02:00
Anna Sirota added 2 commits 2024-06-04 11:40:01 +02:00
Anna Sirota added 1 commit 2024-06-04 11:41:30 +02:00
Anna Sirota added 7 commits 2024-06-05 12:14:12 +02:00
Anna Sirota changed title from WIP: Fix deletion task, protect more account-linked data to Fix deletion task, protect more account-linked data 2024-06-05 13:19:28 +02:00
Anna Sirota manually merged commit 729ce453ac into main 2024-06-05 13:24:50 +02:00
Anna Sirota deleted branch fix-account-deletion 2024-06-05 13:25:31 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: infrastructure/extensions-website#165
No description provided.