mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-11-04 01:25:06 +01:00 
			
		
		
		
	fix: analysis view top links fixed, add full name to topusers
This commit is contained in:
		@@ -70,6 +70,8 @@
 | 
			
		||||
    ...new Set([...metricsInHistograms, ...metricsInScatterplots.flat()]),
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  $: clusterName = cluster?.name ? cluster.name : cluster;
 | 
			
		||||
 | 
			
		||||
  const sortOptions = [
 | 
			
		||||
    { key: "totalWalltime", label: "Walltime" },
 | 
			
		||||
    { key: "totalNodeHours", label: "Node Hours" },
 | 
			
		||||
@@ -159,6 +161,7 @@
 | 
			
		||||
          groupBy: $groupBy
 | 
			
		||||
        ) {
 | 
			
		||||
          id
 | 
			
		||||
          name
 | 
			
		||||
          totalWalltime
 | 
			
		||||
          totalNodeHours
 | 
			
		||||
          totalCoreHours
 | 
			
		||||
@@ -423,14 +426,14 @@
 | 
			
		||||
                <td><Icon name="circle-fill" style="color: {colors[i]};" /></td>
 | 
			
		||||
                {#if groupSelection.key == "user"}
 | 
			
		||||
                  <th scope="col"
 | 
			
		||||
                    ><a href="/monitoring/user/{te.id}?cluster={cluster}"
 | 
			
		||||
                      >{te.id}</a
 | 
			
		||||
                    ><a href="/monitoring/user/{te.id}?cluster={clusterName}"
 | 
			
		||||
                      >{te.id} {te?.name ? `(${te.name})` : ''}</a
 | 
			
		||||
                    ></th
 | 
			
		||||
                  >
 | 
			
		||||
                {:else}
 | 
			
		||||
                  <th scope="col"
 | 
			
		||||
                    ><a
 | 
			
		||||
                      href="/monitoring/jobs/?cluster={cluster}&project={te.id}&projectMatch=eq"
 | 
			
		||||
                      href="/monitoring/jobs/?cluster={clusterName}&project={te.id}&projectMatch=eq"
 | 
			
		||||
                      >{te.id}</a
 | 
			
		||||
                    ></th
 | 
			
		||||
                  >
 | 
			
		||||
 
 | 
			
		||||
@@ -177,6 +177,7 @@
 | 
			
		||||
          groupBy: USER
 | 
			
		||||
        ) {
 | 
			
		||||
          id
 | 
			
		||||
          name
 | 
			
		||||
          totalJobs
 | 
			
		||||
          totalNodes
 | 
			
		||||
          totalCores
 | 
			
		||||
@@ -518,7 +519,7 @@
 | 
			
		||||
                <th scope="col"
 | 
			
		||||
                  ><a
 | 
			
		||||
                    href="/monitoring/user/{tu.id}?cluster={cluster}&state=running"
 | 
			
		||||
                    >{tu.id}</a
 | 
			
		||||
                    >{tu.id} {tu?.name ? `(${tu.name})` : ''}</a
 | 
			
		||||
                  ></th
 | 
			
		||||
                >
 | 
			
		||||
                <td>{tu[topUserSelection.key]}</td>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user