From adb42342dddda144a981f67bb633a8e61153e302 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 21 Mar 2023 18:14:44 +0100 Subject: dashboard: introduce per-subsystem reminders about open bugs Once in a month, collect for each subsystem the list of bugs that are still open on the syzbot dashboard and send an email to the corresponding mailing list. Support manual moderation of such reminders, we'll need that at least for the time being. --- dashboard/dashapi/dashapi.go | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'dashboard/dashapi/dashapi.go') diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go index deab0fe7c..7d9de3195 100644 --- a/dashboard/dashapi/dashapi.go +++ b/dashboard/dashapi/dashapi.go @@ -452,6 +452,48 @@ type BisectResult struct { Fix bool } +type BugListReport struct { + ID string + Config []byte + Bugs []BugListItem + TotalStats BugListReportStats + PeriodStats BugListReportStats + PeriodDays int + Link string + Subsystem string + Maintainers []string + Moderation bool +} + +type BugListReportStats struct { + Reported int + Fixed int +} + +// BugListItem represents a single bug from the BugListReport entity. +type BugListItem struct { + ID string + Title string + Link string + ReproLevel ReproLevel + Hits int64 +} + +type BugListUpdate struct { + ID string // copied from BugListReport + ExtID string + Link string + Command BugListUpdateCommand +} + +type BugListUpdateCommand string + +const ( + BugListSentCmd BugListUpdateCommand = "sent" + BugListUpdateCmd BugListUpdateCommand = "update" + BugListUpstreamCmd BugListUpdateCommand = "upstream" +) + type BugUpdate struct { ID string // copied from BugReport JobID string // copied from BugReport -- cgit mrf-deployment