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: Add hard redirect to bundle onboarding #2595

Merged
merged 5 commits into from
Feb 16, 2024

Conversation

nicholas-codecov
Copy link
Contributor

Description

Small change to bundle onboarding to redirect the user if upload token is not present similar as to how the coverage onboarding currently works.

@codecov-qa
Copy link

codecov-qa bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ffc9a27) 98.34% compared to head (4e5b9a4) 98.34%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2595   +/-   ##
=======================================
  Coverage   98.34%   98.34%           
=======================================
  Files         831      831           
  Lines       11080    11086    +6     
  Branches     2815     2818    +3     
=======================================
+ Hits        10897    10903    +6     
  Misses        181      181           
  Partials        2        2           
Files Coverage Δ
...e/BundlesTab/BundleOnboarding/BundleOnboarding.tsx 100.00% <100.00%> (ø)
...c/pages/RepoPage/CoverageOnboarding/NewRepoTab.jsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 55.26% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.32% <100.00%> (+<0.01%) ⬆️
Services 99.56% <ø> (ø)
Shared 99.83% <ø> (ø)
UI 94.27% <ø> (ø)

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 ffc9a27...4e5b9a4. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2595   +/-   ##
=======================================
  Coverage   98.34%   98.34%           
=======================================
  Files         831      831           
  Lines       11080    11086    +6     
  Branches     2868     2869    +1     
=======================================
+ Hits        10897    10903    +6     
  Misses        181      181           
  Partials        2        2           
Files Coverage Δ
...e/BundlesTab/BundleOnboarding/BundleOnboarding.tsx 100.00% <100.00%> (ø)
...c/pages/RepoPage/CoverageOnboarding/NewRepoTab.jsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 55.26% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.32% <100.00%> (+<0.01%) ⬆️
Services 99.56% <ø> (ø)
Shared 99.83% <ø> (ø)
UI 94.27% <ø> (ø)

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 ffc9a27...4e5b9a4. Read the comment docs.

Copy link

codecov-public-qa bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ffc9a27) 98.34% compared to head (4e5b9a4) 98.34%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2595   +/-   ##
=======================================
  Coverage   98.34%   98.34%           
=======================================
  Files         831      831           
  Lines       11080    11086    +6     
  Branches     2860     2861    +1     
=======================================
+ Hits        10897    10903    +6     
  Misses        181      181           
  Partials        2        2           
Files Coverage Δ
...e/BundlesTab/BundleOnboarding/BundleOnboarding.tsx 100.00% <100.00%> (ø)
...c/pages/RepoPage/CoverageOnboarding/NewRepoTab.jsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 55.26% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.32% <100.00%> (+<0.01%) ⬆️
Services 99.56% <ø> (ø)
Shared 99.83% <ø> (ø)
UI 94.27% <ø> (ø)

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 ffc9a27...4e5b9a4. Read the comment docs.

Copy link

netlify bot commented Feb 15, 2024

Deploy Preview for gazebo-staging ready!

Name Link
🔨 Latest commit 4065e60
🔍 Latest deploy log https://app.netlify.com/sites/gazebo-staging/deploys/65ce6ed5b2cc710008c74e31
😎 Deploy Preview https://deploy-preview-2595--gazebo-staging.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ffc9a27) 98.35% compared to head (4e5b9a4) 98.35%.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2595   +/-   ##
=====================================
  Coverage   98.35   98.35           
=====================================
  Files        831     831           
  Lines      11080   11086    +6     
  Branches    2860    2861    +1     
=====================================
+ Hits       10897   10903    +6     
  Misses       181     181           
  Partials       2       2           
Files Coverage Δ
...e/BundlesTab/BundleOnboarding/BundleOnboarding.tsx 100.00% <100.00%> (ø)
...c/pages/RepoPage/CoverageOnboarding/NewRepoTab.jsx 100.00% <ø> (ø)
Components Coverage Δ
Assets 55.26% <ø> (ø)
Layouts 96.95% <ø> (ø)
Pages 99.32% <100.00%> (+<0.01%) ⬆️
Services 99.56% <ø> (ø)
Shared 99.83% <ø> (ø)
UI 94.27% <ø> (ø)

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 ffc9a27...4e5b9a4. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented Feb 15, 2024

Bundle Report

Changes will increase total bundle size by 560 bytes ⬆️

Bundle name Size Change
gazebo-staging-array-push 5.92MB 560 bytes ⬆️

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Feb 15, 2024

Visit https://preview-pr-2595.codecov.dev for your PR preview. Expires after 1 month automatically. Enterprise URL: https://preview-pr-2595-enterprise.codecov.dev

Copy link

netlify bot commented Feb 15, 2024

Deploy Preview for gazebo-staging ready!

Name Link
🔨 Latest commit 4e5b9a4
🔍 Latest deploy log https://app.netlify.com/sites/gazebo-staging/deploys/65cf7d6cfc3bfc0008470052
😎 Deploy Preview https://deploy-preview-2595--gazebo-staging.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

// if no upload token redirect
if (!data?.repository?.uploadToken) {
hardRedirect()
return <NotFound />
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this element will be rendered if we redirect away from the page? It is possible the test is passing since we are not waiting for hardRedirect() to finish executing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So for this, this is pretty much a direct copy over from the new repo page, as to why it has both, I'm not 100% certain, I assume it may be incase something doesn't happen fast enough it'll render the not found just incase.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see the commit history on there. Looks like there was inconsistent behaviour with the redirect. Prefer adding a comment explaining the possibly redundant component.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link

codecov bot commented Feb 16, 2024

Bundle Report

Changes will increase total bundle size by 560 bytes ⬆️

Bundle name Size Change
gazebo-production-array-push 5.92MB 560 bytes ⬆️

@nicholas-codecov nicholas-codecov merged commit ec4bef0 into main Feb 16, 2024
62 checks passed
@nicholas-codecov nicholas-codecov deleted the fix-add-hard-redirect-to-bundle-onboarding branch February 16, 2024 15:32
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.

None yet

3 participants