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: only long poll /checks endpoint when route is active #14472

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

ChaiWithJai
Copy link
Contributor

Closes 14471.

@@ -48,5 +48,5 @@ export default class AllocationRoute extends Route.extend(WithWatchers) {
@watchRecord('allocation') watch;
@watchNonStoreRecords('allocation') watchHealthChecks;

@collect('watch') watchers;
@collect('watch', 'watchHealthChecks') watchers;
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this work because watchers are subject to visibilityHandler() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does this work because watchers are subject to visibilityHandler() ?

No, that's not the reason. Checkout with-watchers and you'll notice a computed property called watchers. When we have multiple watchers in a controller, we need to set the watchers property by following this pattern.

cancellAllWatchers iterates over watchers and cancels each of them. Because we weren't adding watchHealthChecks to the collection we weren't canceling this request we weren't canceling it.

@github-actions
Copy link

github-actions bot commented Sep 6, 2022

Ember Asset Size action

As of 031c4e9

Files that got Bigger 🚨:

File raw gzip
nomad-ui.js +20 B +6 B

Files that stayed the same size 🤷‍:

File raw gzip
vendor.js 0 B 0 B
nomad-ui.css 0 B 0 B
vendor.css 0 B 0 B

@ChaiWithJai ChaiWithJai merged commit 8586a94 into f-ui/service-discovery Sep 6, 2022
@ChaiWithJai ChaiWithJai deleted the sd-long-poll-bug branch September 6, 2022 15:46
@github-actions
Copy link

github-actions bot commented Sep 6, 2022

Ember Test Audit comparison

f-ui/service-discovery 031c4e9 change
passes 1425 1425 0
failures 0 0 0
flaky 0 0 0
duration 9m 51s 430ms 11m 23s 318ms +1m 31s 888ms

philrenaud pushed a commit that referenced this pull request Sep 7, 2022
@github-actions
Copy link

github-actions bot commented Jan 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 Jan 5, 2023
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.

None yet

2 participants