mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 13:29:05 +01:00
fix: deselected metrics were marked as missing on new jobview load
This commit is contained in:
parent
b48d1b8ad6
commit
061c9f0979
@ -165,10 +165,11 @@
|
|||||||
.find((c) => c.name == job.cluster)
|
.find((c) => c.name == job.cluster)
|
||||||
.metricConfig.map((mc) => mc.name);
|
.metricConfig.map((mc) => mc.name);
|
||||||
|
|
||||||
// Metric not found in JobMetrics && Metric not explicitly disabled: Was expected, but is Missing
|
// Metric not found in JobMetrics && Metric not explicitly disabled in config or deselected: Was expected, but is Missing
|
||||||
missingMetrics = metricNames.filter(
|
missingMetrics = metricNames.filter(
|
||||||
(metric) =>
|
(metric) =>
|
||||||
!metrics.some((jm) => jm.name == metric) &&
|
!metrics.some((jm) => jm.name == metric) &&
|
||||||
|
selectedMetrics.includes(metric) &&
|
||||||
!checkMetricDisabled(
|
!checkMetricDisabled(
|
||||||
metric,
|
metric,
|
||||||
$initq.data.job.cluster,
|
$initq.data.job.cluster,
|
||||||
|
Loading…
Reference in New Issue
Block a user