[BB-2164] Erase Ocim trial user data after X months
This PR introduces a new periodic task, that deletes old beta test users.
JIRA tickets: https://tasks.opencraft.com/browse/BB-2164
Discussions:
Dependencies: None
Screenshots:
Sandbox URL:
Merge deadline: "None"
Testing instructions:
- Create couple of beta test instances
- Set
INACTIVE_OLD_BETATEST_USER_DAYS = 1
- Set
DELETE_OLD_BETATEST_USER_DAYS = 1
- Manually change
BetaTestApplication.created
to an old date - Manually change corresponding user's
last_login
to an old date - Delete deployed instances, keep
BetaTestApplication
model instance - Run Huey
- Users should be inactive now.
- Change
UserProfile.modified
to an old date - Run Huey
- Users will be deleted, also all data with
on_delete=CASCADE
will be deleted.
Author notes and concerns:
- Not sure if this is what we should do
Reviewers
Settings