diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-03-21 18:14:44 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-03-24 14:00:26 +0100 |
| commit | adb42342dddda144a981f67bb633a8e61153e302 (patch) | |
| tree | 49a3dc35d6cc31ee16120df55d7fc5438859bcda /dashboard/dashapi/dashapi.go | |
| parent | f94b4a29b579b3de9aab3b41915e3663e6f7094e (diff) | |
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.
Diffstat (limited to 'dashboard/dashapi/dashapi.go')
| -rw-r--r-- | dashboard/dashapi/dashapi.go | 42 |
1 files changed, 42 insertions, 0 deletions
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 |
