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

Skip OwnerNotActivated error on unconfigured repos #516

Merged
merged 8 commits into from
May 2, 2024

Conversation

rohitvinnakota-codecov
Copy link
Contributor

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

This is a follow up to codecov/engineering-team#1253.

On the front end, we want to show an error inside a page instead of letting NetworkErrorBoundary overwrite the whole page. Furthermore, we need repository information to conditionally render Coverage and Bundle Analysis setup tabs regardless of the owner's activation status.

With this change, we do not throw an OwnerNotActivated error if the repo is not configured, enabling us to display onboarding tabs on the front end without throwing a page level error.

More information about the project here.

Please note that this must be merged before codecov/gazebo#2794.

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.

@codecov-qa
Copy link

codecov-qa bot commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.46%. Comparing base (252b887) to head (03ea2b5).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found ☺️

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #516   +/-   ##
=======================================
  Coverage   91.46%   91.46%           
=======================================
  Files         599      599           
  Lines       16247    16248    +1     
=======================================
+ Hits        14861    14862    +1     
  Misses       1386     1386           
Flag Coverage Δ
unit 91.46% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 91.46% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

codecov-public-qa bot commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.46%. Comparing base (252b887) to head (03ea2b5).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #516   +/-   ##
=======================================
  Coverage   91.46%   91.46%           
=======================================
  Files         599      599           
  Lines       16247    16248    +1     
=======================================
+ Hits        14861    14862    +1     
  Misses       1386     1386           
Flag Coverage Δ
unit 91.46% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 91.46% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
graphql_api/types/owner/owner.py 99.32% <100.00%> (+<0.01%) ⬆️

Impacted file tree graph

@rohitvinnakota-codecov rohitvinnakota-codecov changed the title [draft] Skip OwnerNotActivated error on unconfigured repos Skip OwnerNotActivated error on unconfigured repos Apr 19, 2024
@rohitvinnakota-codecov rohitvinnakota-codecov marked this pull request as ready for review April 19, 2024 20:40
@rohitvinnakota-codecov rohitvinnakota-codecov requested a review from a team as a code owner April 19, 2024 20:40
Copy link

codecov bot commented Apr 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.77%. Comparing base (252b887) to head (03ea2b5).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found ☺️

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #516   +/-   ##
=====================================
  Coverage   95.77   95.77           
=====================================
  Files        774     774           
  Lines      17103   17104    +1     
=====================================
+ Hits       16380   16381    +1     
  Misses       723     723           
Flag Coverage Δ
unit 91.46% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 91.46% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@RulaKhaled RulaKhaled left a comment

Choose a reason for hiding this comment

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

Let's gooo

@rohitvinnakota-codecov rohitvinnakota-codecov added this pull request to the merge queue May 2, 2024
Merged via the queue into main with commit e79b910 May 2, 2024
56 of 57 checks passed
@rohitvinnakota-codecov rohitvinnakota-codecov deleted the rvinnakota/skip-error-unconf-repos branch May 2, 2024 14:06
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.

2 participants