mirror of https://github.com/status-im/consul.git
ui: Closes the proxy blocking query for the service instance on dereg (#5667)
If a service instance show page is being viewed and the service instance is deregistered, this closes the blocking query for the proxy as well as the instance (the instances query will be clsed on the error) Also adds skipped tests to nag in future
This commit is contained in:
parent
e5d59f1dd3
commit
21732d57a8
|
@ -22,6 +22,10 @@ export default Controller.extend(WithEventSource, {
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
action: 'update',
|
action: 'update',
|
||||||
});
|
});
|
||||||
|
const proxy = get(this, 'proxy');
|
||||||
|
if (proxy) {
|
||||||
|
proxy.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -82,4 +82,7 @@ Feature: dc / services / instances / show: Show Service Instance
|
||||||
Then the url should be /dc1/services/service-0/service-0-with-id
|
Then the url should be /dc1/services/service-0/service-0-with-id
|
||||||
And an external edit results in 0 instance models
|
And an external edit results in 0 instance models
|
||||||
And pause until I see the text "deregistered" in "[data-notification]"
|
And pause until I see the text "deregistered" in "[data-notification]"
|
||||||
|
@ignore
|
||||||
|
Scenario: A Service Instance's proxy blocking query is closed when the instance is deregistered
|
||||||
|
Then ok
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue