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 to isTeamPlan GQ field #3592

Merged
merged 8 commits into from
Dec 20, 2024
Merged

ref: Migrate to isTeamPlan GQ field #3592

merged 8 commits into from
Dec 20, 2024

Conversation

RulaKhaled
Copy link
Contributor

@RulaKhaled RulaKhaled commented Dec 18, 2024

Description

This PR aims to remove the isTeamPlan helper function in Gazebo in favor of the new GraphQL field for the same.

fyi we're gonna come back once available plans is refactored to pass down isTeamPlan instead of checking for plans enum for the selected plans, this is just a weird edge case.

Notable Changes

  • updated tests
  • removed helper
  • updated the plan

Screenshots

nothing visual changed

issue: #2998

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.

@RulaKhaled RulaKhaled marked this pull request as ready for review December 18, 2024 21:46
@codecov-staging
Copy link

codecov-staging bot commented Dec 18, 2024

Bundle Report

Changes will increase total bundle size by 1.27kB (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-system-esm 6.05MB 798 bytes (0.01%) ⬆️
gazebo-staging-system 6.0MB 475 bytes (0.01%) ⬆️

@codecov-notifications
Copy link

codecov-notifications bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main    #3592   +/-   ##
=======================================
  Coverage   99.00%   99.00%           
=======================================
  Files         810      810           
  Lines       14557    14569   +12     
  Branches     4146     4154    +8     
=======================================
+ Hits        14412    14424   +12     
  Misses        138      138           
  Partials        7        7           
Files with missing lines Coverage Δ
...Plan/CurrentPlanCard/PaidPlanCard/PaidPlanCard.tsx 100.00% <100.00%> (ø)
.../UpgradePlanPage/UpgradeDetails/UpgradeDetails.tsx 100.00% <100.00%> (ø)
...adePlanPage/UpgradeForm/Controllers/Controller.tsx 100.00% <100.00%> (ø)
...ge/UpgradeForm/PlanTypeOptions/PlanTypeOptions.tsx 100.00% <100.00%> (ø)
...dePlanPage/UpgradeForm/UpdateBlurb/UpdateBlurb.tsx 100.00% <100.00%> (ø)
...Routes/UpgradePlanPage/UpgradeForm/UpgradeForm.tsx 100.00% <100.00%> (ø)
...Page/subRoutes/UpgradePlanPage/UpgradePlanPage.jsx 100.00% <100.00%> (ø)
...ledTestsPage/FailedTestsTable/FailedTestsTable.tsx 97.00% <100.00%> (ø)
.../FailedTestsPage/MetricsSection/MetricsSection.tsx 91.76% <100.00%> (-0.10%) ⬇️
.../useInfiniteTestResults/useInfiniteTestResults.tsx 100.00% <100.00%> (ø)
... and 4 more

... and 2 files with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.75% <100.00%> (+<0.01%) ⬆️
Services 99.36% <ø> (ø)
Shared 99.32% <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 96d9efe...3bcf541. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.00%. Comparing base (96d9efe) to head (3bcf541).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main    #3592   +/-   ##
=======================================
  Coverage   99.00%   99.00%           
=======================================
  Files         810      810           
  Lines       14557    14569   +12     
  Branches     4139     4161   +22     
=======================================
+ Hits        14412    14424   +12     
  Misses        138      138           
  Partials        7        7           
Files with missing lines Coverage Δ
...Plan/CurrentPlanCard/PaidPlanCard/PaidPlanCard.tsx 100.00% <100.00%> (ø)
.../UpgradePlanPage/UpgradeDetails/UpgradeDetails.tsx 100.00% <100.00%> (ø)
...adePlanPage/UpgradeForm/Controllers/Controller.tsx 100.00% <100.00%> (ø)
...ge/UpgradeForm/PlanTypeOptions/PlanTypeOptions.tsx 100.00% <100.00%> (ø)
...dePlanPage/UpgradeForm/UpdateBlurb/UpdateBlurb.tsx 100.00% <100.00%> (ø)
...Routes/UpgradePlanPage/UpgradeForm/UpgradeForm.tsx 100.00% <100.00%> (ø)
...Page/subRoutes/UpgradePlanPage/UpgradePlanPage.jsx 100.00% <100.00%> (ø)
...ledTestsPage/FailedTestsTable/FailedTestsTable.tsx 97.00% <100.00%> (ø)
.../FailedTestsPage/MetricsSection/MetricsSection.tsx 91.76% <100.00%> (-0.10%) ⬇️
.../useInfiniteTestResults/useInfiniteTestResults.tsx 100.00% <100.00%> (ø)
... and 4 more

... and 2 files with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.75% <100.00%> (+<0.01%) ⬆️
Services 99.36% <ø> (ø)
Shared 99.32% <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 96d9efe...3bcf541. Read the comment docs.

Copy link

codecov-public-qa bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.00%. Comparing base (96d9efe) to head (3bcf541).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main    #3592   +/-   ##
=======================================
  Coverage   99.00%   99.00%           
=======================================
  Files         810      810           
  Lines       14557    14569   +12     
  Branches     4139     4154   +15     
=======================================
+ Hits        14412    14424   +12     
  Misses        138      138           
  Partials        7        7           
Files with missing lines Coverage Δ
...Plan/CurrentPlanCard/PaidPlanCard/PaidPlanCard.tsx 100.00% <100.00%> (ø)
.../UpgradePlanPage/UpgradeDetails/UpgradeDetails.tsx 100.00% <100.00%> (ø)
...adePlanPage/UpgradeForm/Controllers/Controller.tsx 100.00% <100.00%> (ø)
...ge/UpgradeForm/PlanTypeOptions/PlanTypeOptions.tsx 100.00% <100.00%> (ø)
...dePlanPage/UpgradeForm/UpdateBlurb/UpdateBlurb.tsx 100.00% <100.00%> (ø)
...Routes/UpgradePlanPage/UpgradeForm/UpgradeForm.tsx 100.00% <100.00%> (ø)
...Page/subRoutes/UpgradePlanPage/UpgradePlanPage.jsx 100.00% <100.00%> (ø)
...ledTestsPage/FailedTestsTable/FailedTestsTable.tsx 97.00% <100.00%> (ø)
.../FailedTestsPage/MetricsSection/MetricsSection.tsx 91.76% <100.00%> (-0.10%) ⬇️
.../useInfiniteTestResults/useInfiniteTestResults.tsx 100.00% <100.00%> (ø)
... and 4 more

... and 2 files with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.75% <100.00%> (+<0.01%) ⬆️
Services 99.36% <ø> (ø)
Shared 99.32% <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 96d9efe...3bcf541. Read the comment docs.

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Dec 18, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
dca781e Wed, 18 Dec 2024 21:52:53 GMT Expired Expired
6ddc688 Thu, 19 Dec 2024 19:57:05 GMT Expired Expired
8e7a1a4 Thu, 19 Dec 2024 22:20:56 GMT Expired Expired
9d6ea33 Fri, 20 Dec 2024 10:38:13 GMT Expired Expired
a3e6748 Fri, 20 Dec 2024 10:41:39 GMT Expired Expired
a3e6748 Fri, 20 Dec 2024 10:44:25 GMT Expired Expired
3bcf541 Fri, 20 Dec 2024 20:07:24 GMT Cloud Enterprise

Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.00%. Comparing base (96d9efe) to head (3bcf541).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3592   +/-   ##
=======================================
  Coverage   99.00%   99.00%           
=======================================
  Files         810      810           
  Lines       14557    14569   +12     
  Branches     4146     4161   +15     
=======================================
+ Hits        14412    14424   +12     
  Misses        138      138           
  Partials        7        7           
Files with missing lines Coverage Δ
...Plan/CurrentPlanCard/PaidPlanCard/PaidPlanCard.tsx 100.00% <100.00%> (ø)
.../UpgradePlanPage/UpgradeDetails/UpgradeDetails.tsx 100.00% <100.00%> (ø)
...adePlanPage/UpgradeForm/Controllers/Controller.tsx 100.00% <100.00%> (ø)
...ge/UpgradeForm/PlanTypeOptions/PlanTypeOptions.tsx 100.00% <100.00%> (ø)
...dePlanPage/UpgradeForm/UpdateBlurb/UpdateBlurb.tsx 100.00% <100.00%> (ø)
...Routes/UpgradePlanPage/UpgradeForm/UpgradeForm.tsx 100.00% <100.00%> (ø)
...Page/subRoutes/UpgradePlanPage/UpgradePlanPage.jsx 100.00% <100.00%> (ø)
...ledTestsPage/FailedTestsTable/FailedTestsTable.tsx 97.00% <100.00%> (ø)
.../FailedTestsPage/MetricsSection/MetricsSection.tsx 91.76% <100.00%> (-0.10%) ⬇️
.../useInfiniteTestResults/useInfiniteTestResults.tsx 100.00% <100.00%> (ø)
... and 4 more

... and 2 files with indirect coverage changes

Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.75% <100.00%> (+<0.01%) ⬆️
Services 99.36% <ø> (ø)
Shared 99.32% <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 96d9efe...3bcf541. Read the comment docs.

Copy link

codecov bot commented Dec 18, 2024

Bundle Report

Changes will increase total bundle size by 1.27kB (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 6.0MB 475 bytes (0.01%) ⬆️
gazebo-production-system-esm 6.05MB 798 bytes (0.01%) ⬆️

@@ -48,7 +49,7 @@ const UpdateBlurb = ({
{diffSeats && (
<li className="pl-2">{`You are changing seats from ${currentPlan?.planUserCount} to [${seats}]`}</li>
)}
{diffBillingType && (
{diffBillingType && !currentIsFree && (
Copy link
Contributor

Choose a reason for hiding this comment

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

weird this is showing up, I thought I had committed it already

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yah ikr?

@RulaKhaled RulaKhaled added this pull request to the merge queue Dec 20, 2024
Merged via the queue into main with commit fdd77d4 Dec 20, 2024
62 checks passed
@RulaKhaled RulaKhaled deleted the update-isTeamPlan branch December 20, 2024 20:11
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.

3 participants