Fix missing model.Aggregate entry, fix status queries and refresh

This commit is contained in:
Christoph Kluge
2025-10-14 18:43:00 +02:00
parent 0a3a664653
commit 6a43dfb0d7
4 changed files with 31 additions and 24 deletions

View File

@@ -43,8 +43,6 @@
let cluster = $state(presetCluster);
// Histogram
let isHistogramSelectionOpen = $state(false);
let from = $state(new Date(Date.now() - (30 * 24 * 60 * 60 * 1000))); // Simple way to retrigger GQL: Jobs Started last Month
let to = $state(new Date(Date.now()));
/* Derived */
let selectedHistograms = $derived(cluster
@@ -74,11 +72,11 @@
}
`,
variables: {
filter: [{ state: ["running"] }, { cluster: { eq: cluster}}, {startTime: { from, to }}],
selectedHistograms: selectedHistograms,
filter: [{ state: ["running"] }, { cluster: { eq: cluster} }],
selectedHistograms: selectedHistograms
},
requestPolicy: "network-only"
}));
</script>
<!-- Loading indicators & Metric Sleect -->
@@ -96,8 +94,7 @@
<Refresher
initially={120}
onRefresh={() => {
from = new Date(Date.now() - (30 * 24 * 60 * 60 * 1000)); // Triggers GQL
to = new Date(Date.now());
selectedHistograms = [...$state.snapshot(selectedHistograms)]
}}
/>
</Col>