diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2022-08-09 17:50:04 +0000 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2022-08-26 12:33:44 +0200 |
| commit | 256f7db0800ef141bb06578df61f4d21b8251eff (patch) | |
| tree | a91cec6a64280836809878d8d069a27a84e03384 /dashboard/dashapi/dashapi.go | |
| parent | b1bc4685d8a3c1d167b065a44c435264b99fa592 (diff) | |
dashboard: revoke no longer working reproducers
Reuse the existing patch testing mechanism to periodically re-check
existing reproducers. If a repro no longer works, mark it as such and
don't consider during bug obsoletion testing.
For obsoleted bugs, pass also a string argument specifying the reason
for the obsoletion. This will make email messages more user-friendly and
also let us later estimate the amount of no longer relevant bugs that we
had on the dashboard.
Diffstat (limited to 'dashboard/dashapi/dashapi.go')
| -rw-r--r-- | dashboard/dashapi/dashapi.go | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go index cdefb8080..d5ccc1e0f 100644 --- a/dashboard/dashapi/dashapi.go +++ b/dashboard/dashapi/dashapi.go @@ -433,6 +433,7 @@ type BugUpdate struct { ExtID string Link string Status BugStatus + StatusReason BugStatusReason ReproLevel ReproLevel DupOf string OnHold bool // If set for open bugs, don't upstream this bug. @@ -608,10 +609,11 @@ func (dash *Dashboard) LoadBug(id string) (*BugReport, error) { } type ( - BugStatus int - BugNotif int - ReproLevel int - ReportType int + BugStatus int + BugStatusReason string + BugNotif int + ReproLevel int + ReportType int ) const ( @@ -625,6 +627,11 @@ const ( ) const ( + InvalidatedByRevokedRepro = BugStatusReason("invalid_no_repro") + InvalidatedByNoActivity = BugStatusReason("invalid_no_activity") +) + +const ( // Upstream bug into next reporting. // If the action succeeds, reporting sends BugStatusUpstream update. BugNotifUpstream BugNotif = iota |
