Skip to content

[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:

  1. Create couple of beta test instances
  2. Set INACTIVE_OLD_BETATEST_USER_DAYS = 1
  3. Set DELETE_OLD_BETATEST_USER_DAYS = 1
  4. Manually change BetaTestApplication.created to an old date
  5. Manually change corresponding user's last_login to an old date
  6. Delete deployed instances, keep BetaTestApplication model instance
  7. Run Huey
  8. Users should be inactive now.
  9. Change UserProfile.modified to an old date
  10. Run Huey
  11. Users will be deleted, also all data with on_delete=CASCADE will be deleted.

Author notes and concerns:

  1. Not sure if this is what we should do

Reviewers

Settings

Merge request reports