From 59709f5d34946ffe73d578d776e7e02027f60386 Mon Sep 17 00:00:00 2001 From: Elena Zioga Date: Thu, 23 Jun 2022 16:16:20 +0300 Subject: [PATCH] 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 --- pkg/new-ui/v1beta1/hp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/new-ui/v1beta1/hp.go b/pkg/new-ui/v1beta1/hp.go index 79b800d15c6..b4ccd44aa20 100644 --- a/pkg/new-ui/v1beta1/hp.go +++ b/pkg/new-ui/v1beta1/hp.go @@ -41,7 +41,7 @@ func (k *KatibUIHandler) FetchHPJobInfo(w http.ResponseWriter, r *http.Request) conn, c := k.connectManager() defer conn.Close() - resultText := "trialName,Status" + resultText := "Status,trialName" experiment, err := k.katibClient.GetExperiment(experimentName, namespace) if err != nil { log.Printf("GetExperiment from HP job failed: %v", err) @@ -129,7 +129,7 @@ func (k *KatibUIHandler) FetchHPJobInfo(w http.ResponseWriter, r *http.Request) for _, trialParam := range t.Spec.ParameterAssignments { trialResText[paramList[trialParam.Name]] = trialParam.Value } - resultText += "\n" + t.Name + "," + lastTrialCondition + "," + strings.Join(trialResText, ",") + resultText += "\n" + lastTrialCondition + "," + t.Name + "," + strings.Join(trialResText, ",") if foundPipelineUID { resultText += "," + runUid }