aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/reporting.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-04-24 19:52:41 +0200
committerAleksandr Nogikh <wp32pw@gmail.com>2023-04-27 11:42:09 +0200
commit703f643f91e8becd2495f1f102346a0b7fa63867 (patch)
treec304e8d97b58127b6c539096f7d283d8582d12c8 /dashboard/app/reporting.go
parentcef7cc0993422a96dff2c22d1afc9f87502bb289 (diff)
dashboard: support bug labels
Let bug labels come in three flavours: 1) Bug labels with multiple values (e.g. `subsystems`). 2) Bug labels with only one value (e.g. `prio`). 3) Flags. Let users configure bug labels via email by issuing the following commands: #syz set subsystems: abc, def #syz set no-reminders #syz unset no-reminders Also let users set tags for invididual bugs in reported bug lists: #syz set <1> some-tag
Diffstat (limited to 'dashboard/app/reporting.go')
-rw-r--r--dashboard/app/reporting.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/dashboard/app/reporting.go b/dashboard/app/reporting.go
index 63ae6d3a7..252a44cb8 100644
--- a/dashboard/app/reporting.go
+++ b/dashboard/app/reporting.go
@@ -556,14 +556,14 @@ func fillBugReport(c context.Context, rep *dashapi.BugReport, bug *Bug, bugRepor
rep.KernelConfigLink = externalLink(c, textKernelConfig, build.KernelConfig)
rep.SyzkallerCommit = build.SyzkallerCommit
rep.NoRepro = build.Type == BuildFailed
- for _, item := range bug.Tags.Subsystems {
+ for _, item := range bug.LabelValues(SubsystemLabel) {
rep.Subsystems = append(rep.Subsystems, dashapi.BugSubsystem{
- Name: item.Name,
+ Name: item.Value,
SetBy: item.SetBy,
- Link: fmt.Sprintf("%v/%s/s/%s", appURL(c), bug.Namespace, item.Name),
+ Link: fmt.Sprintf("%v/%s/s/%s", appURL(c), bug.Namespace, item.Value),
})
rep.Maintainers = email.MergeEmailLists(rep.Maintainers,
- subsystemMaintainers(c, rep.Namespace, item.Name))
+ subsystemMaintainers(c, rep.Namespace, item.Value))
}
for _, addr := range bug.UNCC {
rep.CC = email.RemoveFromEmailList(rep.CC, addr)