-
Notifications
You must be signed in to change notification settings - Fork 24
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 rate limit messaging on repo list page #3025
[feat] Add rate limit messaging on repo list page #3025
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #3025 +/- ##
=======================================
Coverage 98.28% 98.28%
=======================================
Files 928 929 +1
Lines 13937 13957 +20
Branches 3778 3807 +29
=======================================
+ Hits 13698 13718 +20
Misses 235 235
Partials 4 4
Continue to review full report in Codecov by Sentry.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #3025 +/- ##
=======================================
Coverage 98.28% 98.28%
=======================================
Files 928 929 +1
Lines 13937 13957 +20
Branches 3778 3807 +29
=======================================
+ Hits 13698 13718 +20
Misses 235 235
Partials 4 4
Continue to review full report in Codecov by Sentry.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #3025 +/- ##
=======================================
Coverage 98.28% 98.28%
=======================================
Files 928 929 +1
Lines 13937 13957 +20
Branches 3802 3783 -19
=======================================
+ Hits 13698 13718 +20
Misses 235 235
Partials 4 4
Continue to review full report in Codecov by Sentry.
|
Bundle ReportChanges will increase total bundle size by 1.27kB ⬆️
|
Bundle ReportChanges will increase total bundle size by 1.27kB ⬆️
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #3025 +/- ##
===========================================
Coverage 98.28000 98.28000
===========================================
Files 928 929 +1
Lines 13937 13957 +20
Branches 3802 3807 +5
===========================================
+ Hits 13698 13718 +20
Misses 235 235
Partials 4 4
Continue to review full report in Codecov by Sentry.
|
✅ Deploy preview for gazebo ready!Previews expire after 1 month automatically.
|
…/github.com/codecov/gazebo into rvinnakota/update-resync-message-rate-limit
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.
Couple of comments to peak at
.nullish(), | ||
}) | ||
.nullish() |
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.
m
: We want to move these to be nullable()
instead of nullish()
as GQL cannot return undefined
fields, so that's adding some extra burden on our end to handle cases that cannot occur.
const data = parsedData.data | ||
|
||
return { | ||
isGithubRateLimited: data?.owner?.isGithubRateLimited, |
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.
l
: Thoughts on assigning this a default value data?.owner?.isGithubRateLimited ?? true | false
just to be a bit more explicit on the return type?
return Promise.reject({ | ||
status: 404, | ||
data: {}, | ||
}) |
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.
l
: Can you add in something along these lines so that we have better debugging messages in case this is thrown.
@rohitvinnakota-codecov suggestion is we cut the syncing action/copy in this circumstance and clarify the rate limit issue:
Unless this is confirmed below, then perhaps we keep?
|
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.
LGTM
…/github.com/codecov/gazebo into rvinnakota/update-resync-message-rate-limit
Description
The resync job may not fetch latest repo data if the logged in owner is rate limited by github. We show some messaging in that case to give users an explanation as to why.
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.