extensions-website/abuse/migrations
Anna Sirota 729ce453ac Fix deletion task, protect more account-linked data
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, so no
deletion/anonymisation would have happened.

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 change also makes sure that API tokens and OAuth info/tokens
are deleted when account deleted or anonymized.
2024-06-05 13:20:51 +02:00
..
__init__.py Initial models, tests and other boilerplate 2022-08-25 17:37:48 +02:00
0001_initial.py Flattening out django migrations 2024-01-29 16:41:08 +01:00
0002_initial.py Flattening out django migrations 2024-01-29 16:41:08 +01:00
0003_initial.py Flattening out django migrations 2024-01-29 16:41:08 +01:00
0004_abusereport_rating_abusereport_type.py Report a Review option 2024-03-01 16:24:44 +01:00
0005_alter_abusereport_type.py Abuse: rename ABUSE_TYPE_REVIEW to ABUSE_TYPE_RATING to avoid confusion 2024-04-18 15:55:52 +02:00
0006_remove_abusereport_date_deleted.py Make it possible to fully delete unlisted/unrated extensions and versions (#81) 2024-04-19 11:00:13 +02:00
0007_alter_abusereport_status.py Abuse Reports: Update statuses 2024-05-06 16:29:55 +02:00
0008_alter_abusereport_reason.py Fix abuse report default reason; add tests 2024-06-05 11:55:26 +02:00
0009_alter_abusereport_user.py Fix deletion task, protect more account-linked data 2024-06-05 13:20:51 +02:00