From 35f1274a1f484280ec9b59ff66b24b2c0960957c Mon Sep 17 00:00:00 2001 From: John Cowen Date: Thu, 19 Nov 2020 16:05:46 +0000 Subject: [PATCH] ui: Sort lists with health by unhealthy/healthy by default (#9234) * ui: Update lists with Health to sort by unhealthy/healthy by default * Fix up tests for new sorting * Make specific services page-navigation test --- .../app/templates/dc/nodes/index.hbs | 2 +- .../app/templates/dc/services/index.hbs | 2 +- .../templates/dc/services/show/instances.hbs | 2 +- .../templates/dc/services/show/upstreams.hbs | 2 +- .../acceptance/dc/nodes/empty-ids.feature | 12 +++++- .../tests/acceptance/dc/nodes/index.feature | 8 +++- .../acceptance/dc/services/index.feature | 42 +++++++++++++++++++ .../acceptance/dc/services/navigation.feature | 16 +++++++ .../tests/acceptance/dc/services/show.feature | 10 +++-- .../tests/acceptance/page-navigation.feature | 1 - .../steps/dc/services/navigation-steps.js | 10 +++++ 11 files changed, 96 insertions(+), 11 deletions(-) create mode 100644 ui/packages/consul-ui/tests/acceptance/dc/services/navigation.feature create mode 100644 ui/packages/consul-ui/tests/acceptance/steps/dc/services/navigation-steps.js diff --git a/ui/packages/consul-ui/app/templates/dc/nodes/index.hbs b/ui/packages/consul-ui/app/templates/dc/nodes/index.hbs index b68347a816..a4ea688914 100644 --- a/ui/packages/consul-ui/app/templates/dc/nodes/index.hbs +++ b/ui/packages/consul-ui/app/templates/dc/nodes/index.hbs @@ -4,7 +4,7 @@ {{#let (hash statuses=(if status (split status ',') undefined) ) as |filters|}} -{{#let (or sortBy "Node:asc") as |sort|}} +{{#let (or sortBy "Status:asc") as |sort|}}

diff --git a/ui/packages/consul-ui/app/templates/dc/services/index.hbs b/ui/packages/consul-ui/app/templates/dc/services/index.hbs index b2ebf4f23d..b9101e336e 100644 --- a/ui/packages/consul-ui/app/templates/dc/services/index.hbs +++ b/ui/packages/consul-ui/app/templates/dc/services/index.hbs @@ -5,7 +5,7 @@ kinds=(if kind (split kind ',') undefined) sources=(if source (split source ',') undefined) ) as |filters|}} - {{#let (or sortBy "Name:asc") as |sort|}} + {{#let (or sortBy "Status:asc") as |sort|}}