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

UI: Retry stats requests #4195

Merged
merged 3 commits into from
Apr 24, 2018
Merged

UI: Retry stats requests #4195

merged 3 commits into from
Apr 24, 2018

Conversation

DingoEatingFuzz
Copy link
Contributor

Before: If the alloc stats poller encountered an error, it gave up
After: The alloc stats poller will show the warning signs when encountering errors, but will continue to poll.

JSON.stringify({ ResourceUsage: generateResources() }),
JSON.stringify({ ResourceUsage: generateResources() }),
null,
'<Not>Valid JSON</Not>',
Copy link
Contributor

Choose a reason for hiding this comment

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

lol

Copy link
Contributor

@meirish meirish left a comment

Choose a reason for hiding this comment

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

Nicely done - great job with the tests too, I know the polling stuff can be gnarly.

Copy link
Member

@alisdair alisdair left a comment

Choose a reason for hiding this comment

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

Seconding the congrats on tests for this component, nice stuff.


// Disable polling to stop the EC task in the component
if (currentFrame >= frames.length) {
component.set('enablePolling', false);
Copy link
Member

Choose a reason for hiding this comment

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

I haven't seen this idea before, pretty neat. Did you consider using cancelTimers and prefer this instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I ran through a lot of combinations, but not the cancelTimers from the pretender handler combination.

Sounds like it would work, but since I already have this enablePolling hook to disable polling in acceptance tests, I'm not sure what the benefit would be.

@DingoEatingFuzz DingoEatingFuzz merged commit 8cba531 into master Apr 24, 2018
@DingoEatingFuzz DingoEatingFuzz deleted the b-ui-retry-stats-requests branch April 24, 2018 21:13
@github-actions
Copy link

github-actions bot commented Mar 5, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants