-
Notifications
You must be signed in to change notification settings - Fork 28
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
API Improvements: Fix typings for various files pt5 #1087
Conversation
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
📢 Thoughts on this report? Let us know! |
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
✅ All tests successful. No failed tests were found. 📣 Thoughts on this report? Let Codecov know! | Powered by Codecov |
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## main #1087 +/- ##
=======================================
Coverage 96.02% 96.02%
=======================================
Files 828 828
Lines 19485 19503 +18
=======================================
+ Hits 18710 18728 +18
Misses 775 775
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome!! Thank you for doing it!
Ideally we'd have fewer generic Any or Dict, but I know that gets messy, so this is a great step forward for now.
@@ -437,31 +449,28 @@ def determine_upload_commit_to_use(upload_params, repository): | |||
# Check if this is a merge commit and, if so, use the commitid of the commit being merged into per the merge commit message. | |||
# See https://docs.codecov.io/docs/merge-commits for more context. | |||
service = repository.author.service | |||
commitid = upload_params.get("commit", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our past default return was None
not empty string ""
- just making sure does anything downstream care about this distinction?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I can tell it shouldn't, if anything a None
would actually cause an error in some cases downstream or upstream.
if headers.get("X_Content_Type") in (None, "text/html") | ||
else headers.get("X_Content_Type") | ||
if headers.get("X_Content_Type", "") in (None, "text/html") | ||
else headers.get("X_Content_Type", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change means that where we used to default to X_Content_Type: text/plain
when the header is None, now we'd end up with X_Content_Type: ""
empty string. So I think that means we need to revert to the prior?
Either that or
if headers.get("X_Content_Type", "") in ("", "text/html")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good point!
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.