From 4c8c163a48ea572f31bee650308a1343709ade6c Mon Sep 17 00:00:00 2001 From: John Cowen Date: Wed, 13 Apr 2022 10:33:31 +0100 Subject: [PATCH] ui: Don't automatically move rz read-replicas out of the rz (#12740) --- ui/packages/consul-ui/app/services/repository/dc.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/ui/packages/consul-ui/app/services/repository/dc.js b/ui/packages/consul-ui/app/services/repository/dc.js index f47dfc683b..59887967e4 100644 --- a/ui/packages/consul-ui/app/services/repository/dc.js +++ b/ui/packages/consul-ui/app/services/repository/dc.js @@ -130,16 +130,9 @@ export default class DcService extends RepositoryService { // convert the string[] to Server[] Servers: value.Servers.reduce((prev, item) => { const server = body.Servers[item]; - // TODO: It is not currently clear whether we should be - // taking ReadReplicas out of the RedundancyZones when we - // encounter one in a Zone once this is cleared up either - // way we can either remove this comment or make any - // necessary amends here - if(!server.ReadReplica) { - // keep a record of things - grouped.push(server.ID); - prev.push(server); - } + // keep a record of things + grouped.push(server.ID); + prev.push(server); return prev; }, []), }