mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-08-13 22:22:59 +02:00
add single update gql queries to metric wrapper
This commit is contained in:
@@ -122,14 +122,14 @@
|
||||
variables: { dbid, selectedMetrics, selectedScopes },
|
||||
});
|
||||
|
||||
function loadAllScopes() {
|
||||
selectedScopes = [...selectedScopes, "socket", "core"]
|
||||
jobMetrics = queryStore({
|
||||
client: client,
|
||||
query: query,
|
||||
variables: { dbid, selectedMetrics, selectedScopes},
|
||||
});
|
||||
}
|
||||
// function loadAllScopes() {
|
||||
// selectedScopes = [...selectedScopes, "socket", "core"]
|
||||
// jobMetrics = queryStore({
|
||||
// client: client,
|
||||
// query: query,
|
||||
// variables: { dbid, selectedMetrics, selectedScopes},
|
||||
// });
|
||||
// }
|
||||
|
||||
// Handle Job Query on Init -> is not executed anymore
|
||||
getContext("on-init")(() => {
|
||||
@@ -229,11 +229,6 @@
|
||||
$initq.data.job.subCluster,
|
||||
),
|
||||
}));
|
||||
|
||||
|
||||
const loadRes = ({ detail }) => {
|
||||
console.log(">>> UPPER RES REQUEST", detail)
|
||||
}
|
||||
</script>
|
||||
|
||||
<Row>
|
||||
@@ -362,8 +357,6 @@
|
||||
{#if item.data}
|
||||
<Metric
|
||||
bind:this={plots[item.metric]}
|
||||
on:load-all={loadAllScopes}
|
||||
on:new-res={loadRes}
|
||||
job={$initq.data.job}
|
||||
metricName={item.metric}
|
||||
metricUnit={$initq.data.globalMetrics.find((gm) => gm.name == item.metric)?.unit}
|
||||
|
Reference in New Issue
Block a user