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

This commit is contained in:
John Cowen 2022-04-13 10:33:31 +01:00 committed by GitHub
parent 032f64469c
commit 4c8c163a48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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