Migrate select components and adapt parents

This commit is contained in:
Christoph Kluge
2025-06-18 18:14:56 +02:00
parent 6a6dca3fce
commit 1e039cb1bf
9 changed files with 232 additions and 139 deletions

View File

@@ -388,24 +388,6 @@ export function findJobFootprintThresholds(job, stat, metricConfig) {
}
}
export function getSortItems() {
//console.time('sort')
const globalMetrics = getContext("globalMetrics")
const result = globalMetrics.map((gm) => {
if (gm?.footprint) {
return {
field: gm.name + '_' + gm.footprint,
type: 'foot',
text: gm.name + ' (' + gm.footprint + ')',
order: 'DESC'
}
}
return null
}).filter((r) => r != null)
//console.timeEnd('sort')
return [...result];
};
function getMetricConfigDeep(metric, cluster, subCluster) {
const clusters = getContext("clusters");
if (cluster != null) {