diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-04-24 19:52:41 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-04-27 11:42:09 +0200 |
| commit | 703f643f91e8becd2495f1f102346a0b7fa63867 (patch) | |
| tree | c304e8d97b58127b6c539096f7d283d8582d12c8 /dashboard/app/reporting.go | |
| parent | cef7cc0993422a96dff2c22d1afc9f87502bb289 (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.go | 8 |
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) |
