mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-03-04 05:55:56 +01:00
fix: use job_view_selectedMetrics config instead of iterating globalMetrics
- Caveat: Minimal Defaultset needs to be generally available on all clusters
This commit is contained in:
parent
c25b076ca9
commit
998ef8d834
@ -446,7 +446,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"job_view_selectedMetrics": {
|
"job_view_selectedMetrics": {
|
||||||
"description": "",
|
"description": "Initial metrics shown as plots in single job view",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -151,12 +151,7 @@ const roofQuery = gql`
|
|||||||
|
|
||||||
const pendingMetrics = [
|
const pendingMetrics = [
|
||||||
...(ccconfig[`job_view_selectedMetrics:${job.cluster}`] ||
|
...(ccconfig[`job_view_selectedMetrics:${job.cluster}`] ||
|
||||||
$initq.data.globalMetrics.reduce((names, gm) => {
|
ccconfig[`job_view_selectedMetrics`]
|
||||||
if (gm.availability.find((av) => av.cluster === job.cluster)) {
|
|
||||||
names.push(gm.name);
|
|
||||||
}
|
|
||||||
return names;
|
|
||||||
}, [])
|
|
||||||
),
|
),
|
||||||
...(ccconfig[`job_view_nodestats_selectedMetrics:${job.cluster}`] ||
|
...(ccconfig[`job_view_nodestats_selectedMetrics:${job.cluster}`] ||
|
||||||
ccconfig[`job_view_nodestats_selectedMetrics`]
|
ccconfig[`job_view_nodestats_selectedMetrics`]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user