diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-04-11 17:29:13 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-04-12 20:25:53 +0200 |
| commit | fe81a6e2c90be34614d4cf7cba4733bda6a007c4 (patch) | |
| tree | 774d2e3a48993ce5f01403cb754b08d73deac88a | |
| parent | 6ecb91f6d1adf05bca5bf9c6acfbcc652642609f (diff) | |
dashboard: move discussions higher than similar bugs
| -rw-r--r-- | dashboard/app/main.go | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/dashboard/app/main.go b/dashboard/app/main.go index 732ef8362..193d4d69c 100644 --- a/dashboard/app/main.go +++ b/dashboard/app/main.go @@ -720,6 +720,18 @@ func handleBug(c context.Context, w http.ResponseWriter, r *http.Request) error Value: dups, }) } + discussions, err := getBugDiscussionsUI(c, bug) + if err != nil { + return err + } + if len(discussions) > 0 { + sections = append(sections, &uiCollapsible{ + Title: fmt.Sprintf("Discussions (%d)", len(discussions)), + Show: true, + Type: sectionDiscussionList, + Value: discussions, + }) + } similar, err := loadSimilarBugsUI(c, r, bug, state) if err != nil { return err @@ -746,18 +758,6 @@ func handleBug(c context.Context, w http.ResponseWriter, r *http.Request) error return err } } - discussions, err := getBugDiscussionsUI(c, bug) - if err != nil { - return err - } - if len(discussions) > 0 { - sections = append(sections, &uiCollapsible{ - Title: fmt.Sprintf("Discussions (%d)", len(discussions)), - Show: true, - Type: sectionDiscussionList, - Value: discussions, - }) - } testPatchJobs, err := loadTestPatchJobs(c, bug) if err != nil { return err |
