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

Add User.deleted column to model code #8710

Merged
merged 1 commit into from
May 21, 2024
Merged

Add User.deleted column to model code #8710

merged 1 commit into from
May 21, 2024

Conversation

seanh
Copy link
Contributor

@seanh seanh commented May 16, 2024

This is going to be used by the new incremental user delete service (#8700): deleting a user will immediately mark them as User.deleted = True and then will incrementally delete all their data (and eventually the user row itself) in the backround. Users with deleted = True won't be allowed to log in so that users can't be creating more data while we're incrementally deleting their account.

Migration: #8711

@seanh seanh requested a review from marcospri May 16, 2024 16:54
@seanh seanh changed the title Add user.deleted column to model code Add User.deleted column to model code May 16, 2024
@@ -25,7 +25,7 @@ SELECT
-- As we do our partial updates based on updated date, it's good if this
-- is actually high res timestamp, so we get less overlap
annotation.updated,
deleted,
annotation.deleted,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to make it unambiguous that this refers to annotation.deleted not user.deleted, otherwise Postgres chokes on the query

@seanh seanh marked this pull request as ready for review May 16, 2024 17:00
@seanh seanh merged commit 349f85c into main May 21, 2024
9 checks passed
@seanh seanh deleted the add-User.delete-model branch May 21, 2024 12:05
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.

None yet

2 participants