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

[v2 seat allocation iter 1] Allow onboarding for private repos to be viewed for inactive users #2794

Merged
merged 11 commits into from
May 2, 2024

Conversation

rohitvinnakota-codecov
Copy link
Contributor

@rohitvinnakota-codecov rohitvinnakota-codecov commented Apr 22, 2024

This PR addresses follow-ups to codecov/engineering-team#1253

Please note that changes here are reliant on this API PR.

With this change, we should be able to

  • See Unauthorized errors + a breadcrumb view so users can navigate away on the repo page
  • If coverage or bundle analysis is un-configured, and the repo is private, the user should be able to see onboarding information for that page regardless of their activation status.

See iteration 1 here for more information.

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.

Copy link

codecov bot commented Apr 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.48%. Comparing base (dce5490) to head (520347d).

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #2794     +/-   ##
=======================================
+ Coverage   98.47   98.48   +0.01     
=======================================
  Files        868     868             
  Lines      12713   12723     +10     
  Branches    3342    3413     +71     
=======================================
+ Hits       12519   12529     +10     
  Misses       190     190             
  Partials       4       4             
Files Coverage Δ
src/pages/RepoPage/RepoPage.tsx 100.00% <100.00%> (ø)
src/pages/RepoPage/RepoPageTabs.tsx 100.00% <100.00%> (ø)
.../pages/RepoPage/shared/UnauthorizedRepoDisplay.tsx 100.00% <ø> (ø)
src/services/repo/useRepo.tsx 94.44% <100.00%> (ø)
src/services/repo/useRepoOverview.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 55.88% <ø> (ø)
Layouts 97.25% <ø> (ø)
Pages 99.27% <100.00%> (+<0.01%) ⬆️
Services 99.53% <100.00%> (ø)
Shared 99.84% <ø> (ø)
UI 94.40% <ø> (ø)

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 dce5490...520347d. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Apr 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.47%. Comparing base (dce5490) to head (520347d).

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2794   +/-   ##
=======================================
  Coverage   98.47%   98.47%           
=======================================
  Files         868      868           
  Lines       12713    12723   +10     
  Branches     3400     3418   +18     
=======================================
+ Hits        12519    12529   +10     
  Misses        190      190           
  Partials        4        4           
Files Coverage Δ
src/pages/RepoPage/RepoPage.tsx 100.00% <100.00%> (ø)
src/pages/RepoPage/RepoPageTabs.tsx 100.00% <100.00%> (ø)
.../pages/RepoPage/shared/UnauthorizedRepoDisplay.tsx 100.00% <ø> (ø)
src/services/repo/useRepo.tsx 94.44% <100.00%> (ø)
src/services/repo/useRepoOverview.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 55.88% <ø> (ø)
Layouts 97.25% <ø> (ø)
Pages 99.27% <100.00%> (+<0.01%) ⬆️
Services 99.53% <100.00%> (ø)
Shared 99.84% <ø> (ø)
UI 94.40% <ø> (ø)

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 dce5490...520347d. Read the comment docs.

Copy link

codecov-public-qa bot commented Apr 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.47%. Comparing base (dce5490) to head (520347d).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2794   +/-   ##
=======================================
  Coverage   98.47%   98.47%           
=======================================
  Files         868      868           
  Lines       12713    12723   +10     
  Branches     3400     3413   +13     
=======================================
+ Hits        12519    12529   +10     
  Misses        190      190           
  Partials        4        4           
Files Coverage Δ
src/pages/RepoPage/RepoPage.tsx 100.00% <100.00%> (ø)
src/pages/RepoPage/RepoPageTabs.tsx 100.00% <100.00%> (ø)
.../pages/RepoPage/shared/UnauthorizedRepoDisplay.tsx 100.00% <ø> (ø)
src/services/repo/useRepo.tsx 94.44% <100.00%> (ø)
src/services/repo/useRepoOverview.tsx 100.00% <100.00%> (ø)
Components Coverage Δ
Assets 55.88% <ø> (ø)
Layouts 97.25% <ø> (ø)
Pages 99.27% <100.00%> (+<0.01%) ⬆️
Services 99.53% <100.00%> (ø)
Shared 99.84% <ø> (ø)
UI 94.40% <ø> (ø)

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 dce5490...520347d. Read the comment docs.

@hootener
Copy link

hootener commented Apr 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2794   +/-   ##
=======================================
  Coverage   98.43%   98.43%           
=======================================
  Files         873      873           
  Lines       12632    12633    +1     
  Branches     3314     3316    +2     
=======================================
+ Hits        12434    12435    +1     
  Misses        192      192           
  Partials        6        6           
Files Coverage Δ
src/pages/RepoPage/RepoPage.tsx 100.00% <100.00%> (ø)
src/services/repo/useRepo.tsx 94.44% <100.00%> (ø)
Components Coverage Δ
Assets 55.55% <ø> (ø)
Layouts 97.25% <ø> (ø)
Pages 99.23% <100.00%> (+<0.01%) ⬆️
Services 99.56% <100.00%> (ø)
Shared 99.84% <ø> (ø)
UI 94.18% <ø> (ø)

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 ac82a77...658b646. Read the comment docs.

@hootener
Copy link

hootener commented Apr 22, 2024

Bundle Report

Changes will increase total bundle size by 18 bytes ⬆️

Bundle name Size Change
gazebo-staging-array-push 6.52MB 18 bytes ⬆️

Copy link

codecov bot commented Apr 22, 2024

Bundle Report

Changes will increase total bundle size by 18 bytes ⬆️

Bundle name Size Change
gazebo-production-array-push 6.52MB 18 bytes ⬆️

@rohitvinnakota-codecov rohitvinnakota-codecov changed the title [v2] Allow onboarding for private repos to be viewed for inactive users [v2 seat allocation] Allow onboarding for private repos to be viewed for inactive users Apr 22, 2024
@rohitvinnakota-codecov rohitvinnakota-codecov marked this pull request as ready for review April 22, 2024 16:26
@codecov-releaser
Copy link
Contributor

codecov-releaser commented Apr 22, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Commit Created Cloud Enterprise
ef4b4c3 Mon, 22 Apr 2024 16:34:21 GMT Expired Expired
ef4b4c3 Mon, 22 Apr 2024 16:44:35 GMT Expired Expired
ef4b4c3 Mon, 22 Apr 2024 16:44:44 GMT Expired Expired
ef4b4c3 Mon, 22 Apr 2024 16:44:57 GMT Expired Expired
658b646 Mon, 29 Apr 2024 14:12:15 GMT Expired Expired
1a769f1 Mon, 29 Apr 2024 15:38:40 GMT Expired Expired
8dabac5 Mon, 29 Apr 2024 16:23:44 GMT Expired Expired
3816b33 Thu, 02 May 2024 13:50:41 GMT Expired Expired
adcfce9 Thu, 02 May 2024 14:04:05 GMT Expired Expired
adcfce9 Thu, 02 May 2024 14:11:47 GMT Expired Expired
520347d Thu, 02 May 2024 14:50:11 GMT Cloud Enterprise

@rohitvinnakota-codecov rohitvinnakota-codecov changed the title [v2 seat allocation] Allow onboarding for private repos to be viewed for inactive users [v2 seat allocation iter 1] Allow onboarding for private repos to be viewed for inactive users Apr 29, 2024
tabs.push({ pageName: 'componentsTab' })
}

if (repoOverview?.bundleAnalysisEnabled || repoOverview?.coverageEnabled) {
if (
repoOverview?.bundleAnalysisEnabled ||
Copy link
Contributor

Choose a reason for hiding this comment

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

we gotta check for the activation here as well

if (!refetchEnabled && !isRepoActivated) {
setRefetchEnabled(true)
}
if (!repoData?.repository) return <NotFound />
if (!repoData) 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.

why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could get a null repository response if the owner is not activated but we don't want to show a NotFound in that case.

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.

4 participants