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

Show --- as count if rate limited #397

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

rkent
Copy link

@rkent rkent commented Jun 20, 2024

This resolves #393 but perhaps a followup should be created to reduce the frequency of github API calls.

The promise chain is partially moved into a function so that the response variable is available. When an error occurs, the counts are replaced with "---". Not sure what the best thing to show here is, perhaps 'ERR" instead? I don't like 'ERR' because it is not really an error, just limits. I don't think it is worth a more prominent error display, as for the vast majority of displays of the repo, people don't really care about the HELP WANTED type counts. But the display of ">99" as at present is confusing and incorrect.

Copy link
Member

@tfoote tfoote left a comment

Choose a reason for hiding this comment

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

Avoiding incorrect and just showing the dashes is a definite improvement. Lets take that win for now.

@tfoote tfoote merged commit 97c7787 into ros-infrastructure:ros2 Aug 19, 2024
1 check passed
@rkent rkent deleted the show-api-ratelimit-err branch September 2, 2024 17:51
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.

Contribution counts show >99 when github rate limits exceeded
2 participants