From b918a5bb664463afdbebc5ffceabc1890143f088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Wed, 30 Aug 2017 10:46:28 +0100 Subject: [PATCH] fix(cp-frontend): don't require metrics for topology --- .../src/containers/services/topology.js | 2 +- .../src/graphql/ServicesTopology.gql | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 packages/cp-frontend/src/graphql/ServicesTopology.gql diff --git a/packages/cp-frontend/src/containers/services/topology.js b/packages/cp-frontend/src/containers/services/topology.js index abc3b87e..f5bc4e34 100644 --- a/packages/cp-frontend/src/containers/services/topology.js +++ b/packages/cp-frontend/src/containers/services/topology.js @@ -5,7 +5,7 @@ import styled from 'styled-components'; import forceArray from 'force-array'; import unitcalc from 'unitcalc'; -import ServicesQuery from '@graphql/Services.gql'; +import ServicesQuery from '@graphql/ServicesTopology.gql'; import { processServicesForTopology } from '@root/state/selectors'; import { toggleServicesQuickActions } from '@root/state/actions'; import { withNotFound, GqlPaths } from '@containers/navigation'; diff --git a/packages/cp-frontend/src/graphql/ServicesTopology.gql b/packages/cp-frontend/src/graphql/ServicesTopology.gql new file mode 100644 index 00000000..5bc7d44f --- /dev/null +++ b/packages/cp-frontend/src/graphql/ServicesTopology.gql @@ -0,0 +1,26 @@ +#import "./DeploymentGroupInfo.gql" +#import "./ServiceInfo.gql" + +query Services($deploymentGroupSlug: String!) { + deploymentGroup(slug: $deploymentGroupSlug) { + ...DeploymentGroupInfo + services { + ...ServiceInfo + branches { + name + slug + instances { + id + status + healthy + } + } + connections + instances { + id + status + healthy + } + } + } +}