Skip to content

Commit

Permalink
backend: Move status column first
Browse files Browse the repository at this point in the history
* Move the status column to the first position of the trials table as
  it is in the other tables.

Signed-off-by: Elena Zioga <elena@arrikto.com>
  • Loading branch information
elenzio9 committed Oct 24, 2022
1 parent 8cbaf85 commit 8f8c40a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/new-ui/v1beta1/hp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 8f8c40a

Please sign in to comment.