From e2081b38d56cdc44bda4e6a1c3c60ac11fd9aa9e Mon Sep 17 00:00:00 2001 From: CD Cabrera Date: Mon, 28 Nov 2022 13:04:18 -0500 Subject: [PATCH] fix(config): sw-707 openshift-metrics graph x-axis (#1009) * config, set isStacked, render as on-demand ticks --- .../router/__tests__/__snapshots__/redirect.test.js.snap | 1 + .../__snapshots__/product.openshiftMetrics.test.js.snap | 2 +- src/config/product.openshiftMetrics.js | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/router/__tests__/__snapshots__/redirect.test.js.snap b/src/components/router/__tests__/__snapshots__/redirect.test.js.snap index c9893532b..150bb7d91 100644 --- a/src/components/router/__tests__/__snapshots__/redirect.test.js.snap +++ b/src/components/router/__tests__/__snapshots__/redirect.test.js.snap @@ -192,6 +192,7 @@ exports[`Redirect Component should handle existing routes: existing route 1`] = { "color": "#06c", "fill": "#8bc1f7", + "isStacked": false, "metric": "Cores", "stroke": "#06c", }, diff --git a/src/config/__tests__/__snapshots__/product.openshiftMetrics.test.js.snap b/src/config/__tests__/__snapshots__/product.openshiftMetrics.test.js.snap index fa954236b..c4b195c6c 100644 --- a/src/config/__tests__/__snapshots__/product.openshiftMetrics.test.js.snap +++ b/src/config/__tests__/__snapshots__/product.openshiftMetrics.test.js.snap @@ -13,7 +13,7 @@ exports[`Product OpenShift Metrics config should apply graph configuration: filt "fill": "#8bc1f7", "id": "Cores", "isCapacity": false, - "isStacked": true, + "isStacked": false, "isStandalone": false, "isThreshold": false, "metric": "Cores", diff --git a/src/config/product.openshiftMetrics.js b/src/config/product.openshiftMetrics.js index 4a0a67620..754a39cbe 100644 --- a/src/config/product.openshiftMetrics.js +++ b/src/config/product.openshiftMetrics.js @@ -50,7 +50,8 @@ const config = { metric: RHSM_API_PATH_METRIC_TYPES.CORES, fill: chartColorBlueLight.value, stroke: chartColorBlueDark.value, - color: chartColorBlueDark.value + color: chartColorBlueDark.value, + isStacked: false } ], initialGraphSettings: {