From c8068f45eb05d7058ed2a26c96b2d1f0726e1ee1 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Mon, 19 Jun 2023 16:11:16 +0200 Subject: [PATCH] Rework disabled metrics, fix systems - Unify warning card texts - Broader use of checkMetricDisabled function --- web/frontend/src/Analysis.root.svelte | 3 +- web/frontend/src/Job.root.svelte | 7 ++- web/frontend/src/Node.root.svelte | 22 +++++-- web/frontend/src/PlotTable.svelte | 11 +++- web/frontend/src/Systems.root.svelte | 32 +++++------ web/frontend/src/joblist/Row.svelte | 73 ++++++------------------ web/frontend/src/plots/MetricPlot.svelte | 2 +- 7 files changed, 62 insertions(+), 88 deletions(-) diff --git a/web/frontend/src/Analysis.root.svelte b/web/frontend/src/Analysis.root.svelte index 42100cf..2e6f5b5 100644 --- a/web/frontend/src/Analysis.root.svelte +++ b/web/frontend/src/Analysis.root.svelte @@ -227,12 +227,13 @@ ({ metric, ...binsFromFootprint( $footprintsQuery.data.footprints.nodehours, $footprintsQuery.data.footprints.metrics.find(f => f.metric == metric).data, numBins) }))} itemsPerRow={ccconfig.plot_view_plotsPerRow}> -

Average Distribution of '{item.metric}'

+

Average Distribution of '{item.metric}'

group[0].name == metric ), - disabled: checkMetricDisabled(metric, $initq.data.job.cluster, $initq.data.job.subCluster) + disabled: checkMetricDisabled(metric, $initq.data.job.cluster, $initq.data.job.subCluster) })) @@ -140,7 +140,7 @@ width={polarPlotSize} height={polarPlotSize} metrics={ccconfig[`job_view_polarPlotMetrics:${$initq.data.job.cluster}`] || ccconfig[`job_view_polarPlotMetrics`]} cluster={$initq.data.job.cluster} - jobMetrics={$jobMetrics.data.jobMetrics} /> + jobMetrics={$jobMetrics.data.jobMetrics}/> {#if item.data} @@ -203,7 +204,7 @@ width={width} isShared={($initq.data.job.exclusive != 1)}/> {:else} - No data for {item.metric} + No dataset returned for {item.metric} {/if}
{/if} diff --git a/web/frontend/src/Node.root.svelte b/web/frontend/src/Node.root.svelte index a805e67..ef4a00c 100644 --- a/web/frontend/src/Node.root.svelte +++ b/web/frontend/src/Node.root.svelte @@ -1,5 +1,5 @@ diff --git a/web/frontend/src/Systems.root.svelte b/web/frontend/src/Systems.root.svelte index 899fb4b..fcca95e 100644 --- a/web/frontend/src/Systems.root.svelte +++ b/web/frontend/src/Systems.root.svelte @@ -1,5 +1,5 @@ @@ -163,7 +124,7 @@ {#each sortAndSelectScope($metricsQuery.data.jobMetrics) as metric, i (metric || i)} - {#if metric.removed == false && metric.data != null} + {#if metric.disabled == false && metric.data} - {:else if metric.removed == true && metric.data == null} - Metric disabled for subcluster '{job.subCluster}' + {:else if metric.disabled == true && metric.data} + Metric disabled for subcluster {metric.data.name}:{job.subCluster} {:else} - Missing Full Dataset + No dataset returned {/if} {/each} diff --git a/web/frontend/src/plots/MetricPlot.svelte b/web/frontend/src/plots/MetricPlot.svelte index f559859..d6f3ffe 100644 --- a/web/frontend/src/plots/MetricPlot.svelte +++ b/web/frontend/src/plots/MetricPlot.svelte @@ -320,7 +320,7 @@ {#if series[0].data.length > 0}
{:else} - Cannot render plot: No series data found for {metric} + Cannot render plot: No series data returned for {metric} {/if}