From e6b95f320e195f8f4ddab87c7442dae4b7ac4c8e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 1 Feb 2021 11:07:36 +0100 Subject: dashboard/app: show crash titles Show crash title for each crash, since they can be different now. More fancy solutions are possible, but let's start with just exposing it. Remove Maintainers instead, I am not sure who/how uses them. Nobody uses them now to the best of my knowledge, but they take lots of page space. Update #1575 --- dashboard/app/main.go | 13 ++++--------- dashboard/app/templates.html | 10 +++------- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/dashboard/app/main.go b/dashboard/app/main.go index 8c3e27042..723873f02 100644 --- a/dashboard/app/main.go +++ b/dashboard/app/main.go @@ -166,6 +166,7 @@ type uiBug struct { } type uiCrash struct { + Title string Manager string Time time.Time Maintainers string @@ -178,9 +179,8 @@ type uiCrash struct { } type uiCrashTable struct { - Crashes []*uiCrash - Caption string - HasMaintainers bool + Crashes []*uiCrash + Caption string } type uiJob struct { @@ -370,12 +370,6 @@ func handleBug(c context.Context, w http.ResponseWriter, r *http.Request) error Crashes: crashes, Caption: fmt.Sprintf("Crashes (%d)", bug.NumCrashes), } - for _, crash := range crashesTable.Crashes { - if crash.Maintainers != "" { - crashesTable.HasMaintainers = true - break - } - } dups, err := loadDupsForBug(c, r, bug, state, managers) if err != nil { return err @@ -932,6 +926,7 @@ func loadFixBisectionsForBug(c context.Context, bug *Bug) ([]*uiCrash, error) { func makeUICrash(crash *Crash, build *Build) *uiCrash { ui := &uiCrash{ + Title: crash.Title, Manager: crash.Manager, Time: crash.Time, Maintainers: strings.Join(crash.Maintainers, ", "), diff --git a/dashboard/app/templates.html b/dashboard/app/templates.html index 0fc52bd66..e0009223a 100644 --- a/dashboard/app/templates.html +++ b/dashboard/app/templates.html @@ -317,10 +317,8 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the Report Syz repro C repro - VM info - {{if .HasMaintainers}} - Maintainers - {{end}} + VM info + Title @@ -338,9 +336,7 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the {{if $b.ReproSyzLink}}syz{{end}} {{if $b.ReproCLink}}C{{end}} {{if $b.MachineInfoLink}}info{{end}} - {{if $.HasMaintainers}} - {{$b.Maintainers}} - {{end}} + {{$b.Title}} {{end}} -- cgit mrf-deployment