-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat: Only show auto-activate toggle for admins when on enterprise cloud plan #3690
feat: Only show auto-activate toggle for admins when on enterprise cloud plan #3690
Conversation
f40451e
to
43db784
Compare
Bundle ReportChanges will increase total bundle size by 223 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
|
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #3690 +/- ##
=======================================
Coverage 98.79% 98.79%
=======================================
Files 824 824
Lines 14811 14814 +3
Branches 4199 4208 +9
=======================================
+ Hits 14632 14635 +3
Misses 170 170
Partials 9 9
Continue to review full report in Codecov by Sentry.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #3690 +/- ##
=======================================
Coverage 98.79% 98.79%
=======================================
Files 824 824
Lines 14811 14814 +3
Branches 4199 4208 +9
=======================================
+ Hits 14632 14635 +3
Misses 170 170
Partials 9 9
Continue to review full report in Codecov by Sentry.
|
const showAutoActivate = | ||
!isUndefined(planAutoActivate) && | ||
!planData?.plan?.isTrialPlan && | ||
planData?.plan?.trialStatus !== TrialStatuses.ONGOING | ||
planData?.plan?.trialStatus !== TrialStatuses.ONGOING && | ||
!(planData?.plan?.isEnterprisePlan && !ownerData.isAdmin) // only show for admins on enterprise cloud plans |
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.
This is a monster of a conditional 😭
✅ Deploy preview for gazebo ready!Previews expire after 1 month automatically.
|
Title. Adds another data fetch hook call, but I think this is guaranteed to be a local cache hit as this same hook is used in a parent component.
Closes codecov/engineering-team#3201