mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
ui: Show service and node checks as a merged list sorted by health (#8797)
This commit is contained in:
parent
6abc6a293c
commit
f0ee2055b7
@ -1,22 +1,17 @@
|
||||
<div id="health-checks" class="tab-section">
|
||||
<div class="tab-section">
|
||||
<div role="tabpanel">
|
||||
{{#if (gt item.ServiceChecks.length 0) }}
|
||||
<section data-test-service-checks>
|
||||
<HealthcheckList @items={{sort-by (comparator 'check' 'Status:asc') item.ServiceChecks}} @exposed={{proxy.ServiceProxy.Expose.Checks}} />
|
||||
{{#if (gt item.Checks.length 0) }}
|
||||
<section data-test-checks>
|
||||
<HealthcheckList @items={{sort-by (comparator 'check' 'Status:asc') item.Checks}} @exposed={{proxy.ServiceProxy.Expose.Checks}} />
|
||||
</section>
|
||||
{{else}}
|
||||
<EmptyState>
|
||||
<BlockSlot @name="body">
|
||||
<p>
|
||||
This instance has no service health checks.
|
||||
</p>
|
||||
{{/if}}
|
||||
{{#if (gt item.NodeChecks.length 0) }}
|
||||
<section data-test-node-checks>
|
||||
<HealthcheckList @items={{sort-by (comparator 'check' 'Status:asc') item.NodeChecks}} />
|
||||
</section>
|
||||
{{else}}
|
||||
<p>
|
||||
This instance has no node health checks.
|
||||
This instance has no health checks.
|
||||
</p>
|
||||
</BlockSlot>
|
||||
</EmptyState>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -65,8 +65,7 @@ Feature: dc / services / instances / show: Show Service Instance
|
||||
|
||||
And I don't see upstreams on the tabs
|
||||
And I see healthChecksIsSelected on the tabs
|
||||
And I see 3 of the serviceChecks object
|
||||
And I see 3 of the nodeChecks object
|
||||
And I see 6 of the checks object
|
||||
|
||||
When I click tags&Meta on the tabs
|
||||
And I see tags&MetaIsSelected on the tabs
|
||||
|
@ -5,8 +5,7 @@ export default function(visitable, attribute, collection, text, tabs) {
|
||||
scope: '.title',
|
||||
}),
|
||||
tabs: tabs('tab', ['health-checks', 'proxy-info', 'addresses', 'tags-&-meta']),
|
||||
serviceChecks: collection('[data-test-service-checks] li'),
|
||||
nodeChecks: collection('[data-test-node-checks] li'),
|
||||
checks: collection('[data-test-checks] li'),
|
||||
upstreams: collection('[data-test-proxy-upstreams] > li', {
|
||||
name: text('[data-test-destination-name]'),
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user