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

ref: Migrate gazebo from isTrialPlan helper to GQL property #3608

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

ajay-sentry
Copy link
Contributor

Description

Part of milestone 2 for streamlining plan creation: codecov/engineering-team#2989

This PR just removes all the instances of isTrialPlan for the GQL property with the same name.

There are a few tests where I update the hard-coded string to use the const as well, but otherwise this PR is basically just "drop-in replacement" stuff

Closes codecov/engineering-team#3004

Link to Sample Entry

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.

@@ -72,18 +70,17 @@ const TrialBanner: React.FC = () => {
return null
}

// user is not on a free plan, trial is currently on going
Copy link
Contributor Author

Choose a reason for hiding this comment

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

comment was misleading, technically its checking for if the user is on the trial plan specifically, rather than just "not on a free plan"

Copy link

codecov bot commented Dec 23, 2024

Bundle Report

Changes will decrease total bundle size by 83 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 6.0MB 24 bytes (-0.0%) ⬇️
gazebo-production-system-esm 6.05MB 59 bytes (-0.0%) ⬇️

@codecov-staging
Copy link

codecov-staging bot commented Dec 23, 2024

Bundle Report

Changes will decrease total bundle size by 83 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-system-esm 6.05MB 59 bytes (-0.0%) ⬇️
gazebo-staging-system 6.0MB 24 bytes (-0.0%) ⬇️

Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.00%. Comparing base (9ed135c) to head (0044a3b).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3608      +/-   ##
==========================================
- Coverage   99.00%   99.00%   -0.01%     
==========================================
  Files         810      810              
  Lines       14548    14543       -5     
  Branches     4143     4149       +6     
==========================================
- Hits        14403    14398       -5     
  Misses        138      138              
  Partials        7        7              
Files with missing lines Coverage Δ
...rsPage/MembersActivation/Activation/Activation.jsx 100.00% <100.00%> (ø)
...embersPage/MembersActivation/MembersActivation.jsx 100.00% <100.00%> (ø)
...anPage/subRoutes/CancelPlanPage/CancelPlanPage.tsx 100.00% <100.00%> (ø)
...CurrentOrgPlan/CurrentPlanCard/CurrentPlanCard.tsx 100.00% <100.00%> (ø)
...Plan/CurrentPlanCard/FreePlanCard/FreePlanCard.jsx 100.00% <100.00%> (ø)
...d/FreePlanCard/PlanUpgradeTeam/PlanUpgradeTeam.jsx 100.00% <100.00%> (ø)
...eePlanCard/ProPlanSubheading/ProPlanSubheading.tsx 100.00% <100.00%> (ø)
...tPlanCard/shared/ActionsBilling/ActionsBilling.jsx 100.00% <100.00%> (ø)
src/services/account/usePlanData.ts 100.00% <ø> (ø)
...hared/GlobalTopBanners/TrialBanner/TrialBanner.tsx 100.00% <100.00%> (ø)
... and 2 more
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.73% <100.00%> (ø)
Services 99.36% <ø> (ø)
Shared 99.44% <100.00%> (-0.01%) ⬇️
UI 99.14% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9ed135c...0044a3b. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.00%. Comparing base (9ed135c) to head (0044a3b).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

@@            Coverage Diff             @@
##             main    #3608      +/-   ##
==========================================
- Coverage   99.00%   99.00%   -0.01%     
==========================================
  Files         810      810              
  Lines       14548    14543       -5     
  Branches     4143     4142       -1     
==========================================
- Hits        14403    14398       -5     
  Misses        138      138              
  Partials        7        7              
Files with missing lines Coverage Δ
...rsPage/MembersActivation/Activation/Activation.jsx 100.00% <100.00%> (ø)
...embersPage/MembersActivation/MembersActivation.jsx 100.00% <100.00%> (ø)
...anPage/subRoutes/CancelPlanPage/CancelPlanPage.tsx 100.00% <100.00%> (ø)
...CurrentOrgPlan/CurrentPlanCard/CurrentPlanCard.tsx 100.00% <100.00%> (ø)
...Plan/CurrentPlanCard/FreePlanCard/FreePlanCard.jsx 100.00% <100.00%> (ø)
...d/FreePlanCard/PlanUpgradeTeam/PlanUpgradeTeam.jsx 100.00% <100.00%> (ø)
...eePlanCard/ProPlanSubheading/ProPlanSubheading.tsx 100.00% <100.00%> (ø)
...tPlanCard/shared/ActionsBilling/ActionsBilling.jsx 100.00% <100.00%> (ø)
src/services/account/usePlanData.ts 100.00% <ø> (ø)
...hared/GlobalTopBanners/TrialBanner/TrialBanner.tsx 100.00% <100.00%> (ø)
... and 2 more
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.73% <100.00%> (ø)
Services 99.36% <ø> (ø)
Shared 99.44% <100.00%> (-0.01%) ⬇️
UI 99.14% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9ed135c...0044a3b. Read the comment docs.

@codecov-notifications
Copy link

codecov-notifications bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

@@            Coverage Diff             @@
##             main    #3608      +/-   ##
==========================================
- Coverage   99.00%   99.00%   -0.01%     
==========================================
  Files         810      810              
  Lines       14548    14543       -5     
  Branches     4150     4142       -8     
==========================================
- Hits        14403    14398       -5     
  Misses        138      138              
  Partials        7        7              
Files with missing lines Coverage Δ
...rsPage/MembersActivation/Activation/Activation.jsx 100.00% <100.00%> (ø)
...embersPage/MembersActivation/MembersActivation.jsx 100.00% <100.00%> (ø)
...anPage/subRoutes/CancelPlanPage/CancelPlanPage.tsx 100.00% <100.00%> (ø)
...CurrentOrgPlan/CurrentPlanCard/CurrentPlanCard.tsx 100.00% <100.00%> (ø)
...Plan/CurrentPlanCard/FreePlanCard/FreePlanCard.jsx 100.00% <100.00%> (ø)
...d/FreePlanCard/PlanUpgradeTeam/PlanUpgradeTeam.jsx 100.00% <100.00%> (ø)
...eePlanCard/ProPlanSubheading/ProPlanSubheading.tsx 100.00% <100.00%> (ø)
...tPlanCard/shared/ActionsBilling/ActionsBilling.jsx 100.00% <100.00%> (ø)
src/services/account/usePlanData.ts 100.00% <ø> (ø)
...hared/GlobalTopBanners/TrialBanner/TrialBanner.tsx 100.00% <100.00%> (ø)
... and 2 more
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.73% <100.00%> (ø)
Services 99.36% <ø> (ø)
Shared 99.44% <100.00%> (-0.01%) ⬇️
UI 99.14% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9ed135c...0044a3b. Read the comment docs.

Copy link

codecov-public-qa bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.00%. Comparing base (9ed135c) to head (0044a3b).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

@@            Coverage Diff             @@
##             main    #3608      +/-   ##
==========================================
- Coverage   99.00%   99.00%   -0.01%     
==========================================
  Files         810      810              
  Lines       14548    14543       -5     
  Branches     4143     4149       +6     
==========================================
- Hits        14403    14398       -5     
  Misses        138      138              
  Partials        7        7              
Files with missing lines Coverage Δ
...rsPage/MembersActivation/Activation/Activation.jsx 100.00% <100.00%> (ø)
...embersPage/MembersActivation/MembersActivation.jsx 100.00% <100.00%> (ø)
...anPage/subRoutes/CancelPlanPage/CancelPlanPage.tsx 100.00% <100.00%> (ø)
...CurrentOrgPlan/CurrentPlanCard/CurrentPlanCard.tsx 100.00% <100.00%> (ø)
...Plan/CurrentPlanCard/FreePlanCard/FreePlanCard.jsx 100.00% <100.00%> (ø)
...d/FreePlanCard/PlanUpgradeTeam/PlanUpgradeTeam.jsx 100.00% <100.00%> (ø)
...eePlanCard/ProPlanSubheading/ProPlanSubheading.tsx 100.00% <100.00%> (ø)
...tPlanCard/shared/ActionsBilling/ActionsBilling.jsx 100.00% <100.00%> (ø)
src/services/account/usePlanData.ts 100.00% <ø> (ø)
...hared/GlobalTopBanners/TrialBanner/TrialBanner.tsx 100.00% <100.00%> (ø)
... and 2 more
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.73% <100.00%> (ø)
Services 99.36% <ø> (ø)
Shared 99.44% <100.00%> (-0.01%) ⬇️
UI 99.14% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9ed135c...0044a3b. Read the comment docs.

@codecov-releaser
Copy link
Contributor

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
0044a3b Mon, 23 Dec 2024 19:38:15 GMT Cloud Enterprise

@@ -42,14 +42,6 @@ export function isSentryPlan(plan?: PlanName | null) {
return false
}

export function isTrialPlan(plan?: PlanName | null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

o7

Copy link
Contributor Author

Choose a reason for hiding this comment

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

o7

Copy link
Contributor

@spalmurray-codecov spalmurray-codecov left a comment

Choose a reason for hiding this comment

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

this is NICE 🤠

@ajay-sentry ajay-sentry added this pull request to the merge queue Dec 23, 2024
Merged via the queue into main with commit c87e433 Dec 23, 2024
62 checks passed
@ajay-sentry ajay-sentry deleted the Ajay/3004-migrate-is-trial-plan branch December 23, 2024 19:53
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.

Migrate isTrialPlan in Gazebo to use isTrialPlan GQL property
3 participants