Skip to content

Conversation

@landongrindheim
Copy link
Member

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.

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.
@landongrindheim landongrindheim changed the title Introduce maintenance task to unconfirmed users Introduce maintenance task to remove unconfirmed users Nov 4, 2025
@codecov
Copy link

codecov bot commented Nov 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.24%. Comparing base (77123a9) to head (5727053).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@landongrindheim landongrindheim marked this pull request as ready for review November 4, 2025 15:58
jenshenny
jenshenny previously approved these changes Nov 4, 2025
UNCONFIRMED_USER_RETENTION_DAYS = 30.days

def collection
User
Copy link
Member

@jenshenny jenshenny Nov 4, 2025

Choose a reason for hiding this comment

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

Actually could this happen?

  1. User creates account long ago that has gems
  2. User recently changes email within 30 days but never confirmed it
  3. We delete their account

@landongrindheim landongrindheim dismissed jenshenny’s stale review November 5, 2025 14:13

The query is too broad and would remove users with legitimate ownerships.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants