Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Conversation

@grokys
Copy link
Contributor

@grokys grokys commented Jul 11, 2018

This PR improves the error handling of the new PR list. It's still not perfect, but better than before. Before, the list continued forever to make requests to the server if a request failed (!).

Also added some unit tests.

Testing

The best way to test this is to install Fiddler https://www.telerik.com/download/fiddler and use its Autoresponder to return error codes from https://api.github.com. Then toggle the autoresponder on/off at various times in the loading of the PR list.

The main thing that should not happen is that the PR list shouldn't repeatedly send the same failing request over and over. The second thing that should happen is that an error message should be displayed; disabling the autoresponder and clicking Refresh should load the list.

There is one place where refreshing the list fails, and you're stuck with the error - if the error occurs early enough in the load. This will require a bit more work, so I will address in another PR to keep things in reviewable-pieces.

Depends on #1773

Copy link
Collaborator

@jcansdale jcansdale left a comment

Choose a reason for hiding this comment

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

This looks good and works well. Tested with fiddler. Thanks for the tip.

@grokys grokys merged commit 55d5ca0 into master Jul 12, 2018
@grokys grokys deleted the fixes/pr-list-errors-2 branch July 12, 2018 08:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants