fix: analysis view top links fixed, add full name to topusers

This commit is contained in:
Christoph Kluge 2025-02-28 13:37:59 +01:00
parent 42135fd26c
commit d5394c9e92
2 changed files with 8 additions and 4 deletions

View File

@ -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
>

View File

@ -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>