extensions-website/users/tests
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 Add Blender ID login and webhook 2022-09-26 18:09:41 +02:00
test_model.py Fix deletion task, protect more account-linked data 2024-06-05 13:20:51 +02:00
test_tasks.py Fix deletion task, protect more account-linked data 2024-06-05 13:20:51 +02:00
test_webhooks.py Blender ID: update tests and docstrings 2024-06-03 13:41:01 +02:00
util.py Blender ID: update username and avatar using webhook payload 2024-05-31 17:09:52 +02:00