From ed991de11a94eda342f23c6f9b6f11d750a314f4 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Tue, 8 Oct 2024 17:54:12 +0200 Subject: [PATCH] fix: ad dmissing resampleConfig handling to scope select --- web/frontend/src/job/Metric.svelte | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/frontend/src/job/Metric.svelte b/web/frontend/src/job/Metric.svelte index 0ff8125..adbb44a 100644 --- a/web/frontend/src/job/Metric.svelte +++ b/web/frontend/src/job/Metric.svelte @@ -110,8 +110,9 @@ const selectedMetrics = [metricName] $: if (selectedScope || pendingResolution) { - if (!selectedResolution) { - // Skips reactive data load on init + + if (resampleConfig && !selectedResolution) { + // Skips reactive data load on init || Only if resampling is enabled selectedResolution = Number(pendingResolution) } else { @@ -119,14 +120,14 @@ selectedScopes = [...scopes, "socket", "core", "accelerator"] } - if (pendingResolution) { + if (resampleConfig && pendingResolution) { selectedResolution = Number(pendingResolution) } metricData = queryStore({ client: client, query: subQuery, - variables: { dbid, selectedMetrics, selectedScopes, selectedResolution }, + variables: { dbid, selectedMetrics, selectedScopes, selectedResolution: (resampleConfig ? selectedResolution : 0) }, // Never user network-only: causes reactive load-loop! });