Browse Source

ui: Don't automatically move rz read-replicas out of the rz (#12740)

pull/12772/head
John Cowen 3 years ago committed by GitHub
parent
commit
4c8c163a48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      ui/packages/consul-ui/app/services/repository/dc.js

13
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;
}, []),
}

Loading…
Cancel
Save