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

fix: Fix deactivated enterprise user when no plan activated users #1088

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

Conversation

suejung-sentry
Copy link
Contributor

@suejung-sentry suejung-sentry commented Jan 9, 2025

Follows up to #910 which added restrictions to Enterprise "guest_access: off" behavior.

This PR adds in a fix to account for when a user owner does not have any plan_activated_users. From what I could tell from our current data model this is not possible, but I think historic data ends up with this case which caused the reported issue by customer, so fixed with this PR.

Copy link
Contributor

github-actions bot commented Jan 9, 2025

✅ All tests successful. No failed tests were found.

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

Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.02%. Comparing base (8660eab) to head (79341b5).

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1088   +/-   ##
=======================================
  Coverage   96.02%   96.02%           
=======================================
  Files         828      828           
  Lines       19485    19486    +1     
=======================================
+ Hits        18710    18711    +1     
  Misses        775      775           
Flag Coverage Δ
unit 92.31% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 92.31% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codecov-notifications
Copy link

codecov-notifications bot commented Jan 9, 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!

@suejung-sentry suejung-sentry marked this pull request as ready for review January 9, 2025 22:39
@suejung-sentry suejung-sentry requested a review from a team as a code owner January 9, 2025 22:39
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.

2 participants