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

Clean up user's expired login sessions #1113

Merged
merged 4 commits into from
Jan 30, 2025
Merged

Clean up user's expired login sessions #1113

merged 4 commits into from
Jan 30, 2025

Conversation

JerrySentry
Copy link
Contributor

@JerrySentry JerrySentry commented Jan 29, 2025

The system currently does not auto delete expired login sessions leading to a ton of sessions being displayed on the user's settings page. This change cleans up those expired sessions by deleting those sessions during login into the app.

fixes codecov/engineering-team#2145

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@codecov-notifications
Copy link

codecov-notifications bot commented Jan 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@codecov-qa
Copy link

codecov-qa bot commented Jan 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.99%. Comparing base (d80087a) to head (552c5ad).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Copy link
Contributor

✅ All tests successful. No failed tests were found.

📣 Thoughts on this report? Let Codecov know! | Powered by Codecov

@JerrySentry JerrySentry marked this pull request as ready for review January 29, 2025 20:20
Copy link
Contributor

@ajay-sentry ajay-sentry left a comment

Choose a reason for hiding this comment

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

looks good!

@JerrySentry JerrySentry added this pull request to the merge queue Jan 30, 2025
Merged via the queue into main with commit 9c91ee2 Jan 30, 2025
17 checks passed
@JerrySentry JerrySentry deleted the jan_29_sessions branch January 30, 2025 14:51
Copy link

sentry-io bot commented Jan 31, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ Session.DoesNotExist: Session matching query does not exist. /login/github View Issue

Did you find this useful? React with a 👍 or 👎

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.

Investigate why sessions don't get cleaned up
2 participants