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

Avoid retries for pushedDate loading #154

Merged
merged 1 commit into from
Feb 7, 2020
Merged

Conversation

bluekeyes
Copy link
Member

Previously, this fallback API was only used for pull requests from forks
and we would retry the primary API call for other pull requests. But in
practice, we had to retry for up to 15 seconds before success and even
then saw occasional failures. Using the fallback method (the commit
history API) should be faster and more correct in all cases (the ideal
case still being that we get accurate information on the first call.)

This also adds a new exit condition to the fallback loop to avoid
loading all commits in history under certain error cases.

Previously, this fallback API was only used for pull requests from forks
and we would retry the primary API call for other pull requests. But in
practice, we had to retry for up to 15 seconds before success and even
then saw occasional failures. Using the fallback method (the commit
history API) should be faster and more correct in all cases (the ideal
case still being that we get accurate information on the first call.)

This also adds a new exit condition to the fallback loop to avoid
loading all commits in history under certain error cases.
@bluekeyes bluekeyes merged commit 1d06dfa into develop Feb 7, 2020
@bluekeyes bluekeyes deleted the bkeyes/pushed-at-loading branch February 7, 2020 18: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