From fe81a6e2c90be34614d4cf7cba4733bda6a007c4 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 11 Apr 2023 17:29:13 +0200 Subject: dashboard: move discussions higher than similar bugs --- dashboard/app/main.go | 24 ++++++++++++------------ 1 file 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 -- cgit mrf-deployment