Skip to content

Commit 59709f5

Browse files
committed
backend: Move status column first
* Move the status column to the first position of the trials table as it is in the other tables. Signed-off-by: Elena Zioga <[email protected]>
1 parent 6b55540 commit 59709f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/new-ui/v1beta1/hp.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (k *KatibUIHandler) FetchHPJobInfo(w http.ResponseWriter, r *http.Request)
4141
conn, c := k.connectManager()
4242
defer conn.Close()
4343

44-
resultText := "trialName,Status"
44+
resultText := "Status,trialName"
4545
experiment, err := k.katibClient.GetExperiment(experimentName, namespace)
4646
if err != nil {
4747
log.Printf("GetExperiment from HP job failed: %v", err)
@@ -129,7 +129,7 @@ func (k *KatibUIHandler) FetchHPJobInfo(w http.ResponseWriter, r *http.Request)
129129
for _, trialParam := range t.Spec.ParameterAssignments {
130130
trialResText[paramList[trialParam.Name]] = trialParam.Value
131131
}
132-
resultText += "\n" + t.Name + "," + lastTrialCondition + "," + strings.Join(trialResText, ",")
132+
resultText += "\n" + lastTrialCondition + "," + t.Name + "," + strings.Join(trialResText, ",")
133133
if foundPipelineUID {
134134
resultText += "," + runUid
135135
}

0 commit comments

Comments
 (0)