extensions-website/abuse
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
..
migrations Fix deletion task, protect more account-linked data 2024-06-05 13:20:51 +02:00
templates/abuse Fix abuse report default reason; add tests 2024-06-05 11:55:26 +02:00
tests Fix abuse report default reason; add tests 2024-06-05 11:55:26 +02:00
__init__.py Initial models, tests and other boilerplate 2022-08-25 17:37:48 +02:00
admin.py Admin: Add Save buttons top bar 2024-05-17 19:16:08 +02:00
apps.py Notification emails (#80) 2024-04-18 16:11:18 +02:00
forms.py Report rating: remove version field from the form 2024-05-03 13:00:03 +02:00
models.py Fix deletion task, protect more account-linked data 2024-06-05 13:20:51 +02:00
signals.py Log deleted extension data (#84) 2024-04-19 16:25:49 +02:00
urls.py Report rating: remove version field from the form 2024-05-03 13:00:03 +02:00
views.py Fix abuse report default reason; add tests 2024-06-05 11:55:26 +02:00