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

feat: add resolver to expose private repos #317

Merged
merged 2 commits into from
Dec 21, 2023

Conversation

adrian-codecov
Copy link
Contributor

Purpose/Motivation

We're adding a resolver to surface whether a repo has any private repos.

Links to relevant tickets

codecov/engineering-team#939

What does this PR do?

  • Adds a resolver for an owner to surface if it has any private repos
  • Adds a property to the owner model

Notes to Reviewer

Anything to note to the team? Any tips on how to review, or where to start?

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-staging
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@codecov-qa
Copy link

codecov-qa bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (90bec21) 96.00% compared to head (f86d714) 96.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #317   +/-   ##
=======================================
  Coverage   96.00%   96.00%           
=======================================
  Files         613      613           
  Lines       15877    15884    +7     
=======================================
+ Hits        15242    15249    +7     
  Misses        635      635           
Flag Coverage Δ
unit 96.00% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 96.00% <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 Dec 21, 2023

Codecov Report

Merging #317 (f86d714) into main (90bec21) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #317   +/-   ##
=======================================
  Coverage   96.00%   96.00%           
=======================================
  Files         613      613           
  Lines       15877    15884    +7     
=======================================
+ Hits        15242    15249    +7     
  Misses        635      635           
Flag Coverage Δ
unit 96.00% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 96.00% <100.00%> (+<0.01%) ⬆️

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

Files Coverage Δ
codecov_auth/models.py 98.87% <100.00%> (+<0.01%) ⬆️
graphql_api/types/owner/owner.py 92.48% <100.00%> (+0.23%) ⬆️

Impacted file tree graph

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (90bec21) 95.62% compared to head (be9f95d) 95.62%.

❗ Current head be9f95d differs from pull request most recent head f86d714. Consider uploading reports for the commit f86d714 to get more accurate results

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #317   +/-   ##
=====================================
  Coverage   95.62   95.62           
=====================================
  Files        728     728           
  Lines      16386   16393    +7     
=====================================
+ Hits       15668   15675    +7     
  Misses       718     718           
Flag Coverage Δ
unit 96.00% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 96.00% <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.

@@ -569,3 +569,21 @@ def test_owner_query_with_no_service(self):

assert res["errors"][0]["message"] == MissingService.message
assert res["data"]["owner"] is None

def test_owner_query_with_private_repos(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

might be worth it to test if owner doesn't have any private repos

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!

@adrian-codecov adrian-codecov merged commit aabaeae into main Dec 21, 2023
18 of 19 checks passed
@adrian-codecov adrian-codecov deleted the 939-resolver-for-private-repos branch December 21, 2023 18:17
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

2 participants