-
Notifications
You must be signed in to change notification settings - Fork 28
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
[WIP] Plan Milestone 3 Transitions #1099
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Changes have been made to critical files, which contain lines commonly executed in production. Learn more ❌ We are unable to process any of the uploaded JUnit XML files. Please ensure your files are in the right format.
Additional details and impacted files@@ Coverage Diff @@
## main #1099 +/- ##
==========================================
- Coverage 96.09% 86.83% -9.26%
==========================================
Files 829 829
Lines 19384 19381 -3
==========================================
- Hits 18627 16830 -1797
- Misses 757 2551 +1794
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
❌ 3041 Tests Failed:
View the top 3 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
❌ 3041 Tests Failed:
View the top 3 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
❌ 2277 Tests Failed:
View the top 3 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
❌ 3041 Tests Failed:
View the top 3 failed tests by shortest run time
📣 Thoughts on this report? Let Codecov know! | Powered by Codecov |
@@ -131,11 +130,6 @@ def validate_value(self, value: str) -> str: | |||
plan["value"] for plan in plan_service.available_plans(current_owner) | |||
] | |||
if value not in plan_values: | |||
if value in SENTRY_PAID_USER_PLAN_REPRESENTATIONS: |
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.
Removed this because it would now just be an extra DB call for a log lol
@@ -149,7 +142,9 @@ def validate(self, plan: Dict[str, Any]) -> Dict[str, Any]: | |||
) | |||
|
|||
# Validate quantity here because we need access to whole plan object | |||
if plan["value"] in PAID_PLANS: | |||
if plan["value"] in Plan.objects.filter( |
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.
Thoughts about calling all active plans in a single query and then filter as needed?
active_plans = list(
Plan.objects.filter(
paid_plan=True, is_active=True
).values_list("name", "tier")
)
active_plan_names = {name for name, _ in active_plans}
team_tier_plans = {name for name, tier in active_plans if tier == TierName.TEAM.value}
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.
ooo I like that
…updates
Purpose/Motivation
What is the feature? Why is this being done?
Links to relevant tickets
What does this PR do?
Include a brief description of the changes in this PR. Bullet points are your friend.
Notes to Reviewer
Anything to note to the team? Any tips on how to review, or where to start?
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.