Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove user data after 28 days from last updated #588

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

StevenLeighton21
Copy link
Contributor

We run the db sweeper every hour, and it removes records created at 28.days.ago

Which means records live 28 days + up to 59 minutes

We delete files using a 28 day retention policy managed by S3, which appears to delete at 00:00 on the 28th day, so it functionally keeps files for 27 days + minutes until midnight

This seems to leave an edge case where you can use save & return to return to your form on the morning of the 28th day, complete your submission successfully and see no errors.

We will see a failed submission where the S3 bucket returns 404 results for the attachments you uploaded 28 days ago. It's possible this isn't the (or the only) reason this can happen but this should prevent one failure case.

@StevenLeighton21 StevenLeighton21 changed the title Remove data after 27 days Remove user data after 28 days from last updated Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant