From 2f0f5f6d638c8a24c1b8b04ebc9e303d330644cc Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 7 Feb 2023 16:20:16 +0100 Subject: dashboard/app: infer bug subsystems from crashes After each saved crash, invoke the new pkg/subsystem machinery to infer the subsystem list. Use 5 crashes with biggest priority to base the inference on. --- dashboard/app/reporting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dashboard/app/reporting.go') diff --git a/dashboard/app/reporting.go b/dashboard/app/reporting.go index 255296216..c96ee6216 100644 --- a/dashboard/app/reporting.go +++ b/dashboard/app/reporting.go @@ -559,7 +559,7 @@ func fillBugReport(c context.Context, rep *dashapi.BugReport, bug *Bug, bugRepor for _, item := range bug.Tags.Subsystems { rep.Subsystems = append(rep.Subsystems, dashapi.BugSubsystem{Name: item.Name}) rep.Maintainers = email.MergeEmailLists(rep.Maintainers, - subsystemMaintainers(rep.Namespace, item.Name)) + subsystemMaintainers(c, rep.Namespace, item.Name)) } for _, addr := range bug.UNCC { rep.CC = email.RemoveFromEmailList(rep.CC, addr) -- cgit mrf-deployment