Skip to content

Commit

Permalink
fix task relationship graph
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Sep 13, 2024
1 parent 07fac55 commit f2cb5bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/coordinator/web/handlers/test_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,16 @@ func (fh *FrontendHandler) getTestRunPageData(runID int64) (*TestRunPage, error)
taskData.GraphLevels[indentation-1] = 3

for i := idx - 1; i >= 0; i-- {
if len(pageData.Tasks[i].GraphLevels) < indentation {
continue
if pageData.Tasks[i].Index == taskData.ParentIndex {
break
}

if pageData.Tasks[i].ParentIndex == taskData.ParentIndex {
pageData.Tasks[i].GraphLevels[indentation-1] = 2
if len(pageData.Tasks[i].GraphLevels) < indentation {
break
}

if pageData.Tasks[i].Index == taskData.ParentIndex {
if pageData.Tasks[i].ParentIndex == taskData.ParentIndex {
pageData.Tasks[i].GraphLevels[indentation-1] = 2
break
}

Expand Down

0 comments on commit f2cb5bd

Please sign in to comment.