-
-
Notifications
You must be signed in to change notification settings - Fork 974
Introduce maintenance task to remove unconfirmed users #6088
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
base: master
Are you sure you want to change the base?
Conversation
Sometimes accounts are created by someone other than the owner of an email address. In these cases, a User is created, but the account is never confirmed. If someone has been in this scenario for more than a month, we should remove the record in order to ensure the owner of the email is not contacted.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6088 +/- ##
=======================================
Coverage 97.24% 97.24%
=======================================
Files 476 477 +1
Lines 9785 9795 +10
=======================================
+ Hits 9515 9525 +10
Misses 270 270 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| UNCONFIRMED_USER_RETENTION_DAYS = 30.days | ||
|
|
||
| def collection | ||
| User |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually could this happen?
- User creates account long ago that has gems
- User recently changes email within 30 days but never confirmed it
- We delete their account
The query is too broad and would remove users with legitimate ownerships.
Sometimes accounts are created by someone other than the owner of an email address. In these cases, a User is created, but the account is never confirmed. If someone has been in this scenario for more than a month, we should remove the record in order to ensure the owner of the email is not contacted.