mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-11-04 01:25:06 +01:00 
			
		
		
		
	revert back to using globalMetrics in jobView metric default select
This commit is contained in:
		@@ -129,7 +129,12 @@
 | 
			
		||||
 | 
			
		||||
    const pendingMetrics = [
 | 
			
		||||
      ...(ccconfig[`job_view_selectedMetrics:${job.cluster}`] ||
 | 
			
		||||
        ccconfig[`job_view_selectedMetrics`]
 | 
			
		||||
      $initq.data.globalMetrics.reduce((names, gm) => {
 | 
			
		||||
          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`]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user