aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/reporting.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2022-12-19 15:04:24 +0100
committerAleksandr Nogikh <wp32pw@gmail.com>2022-12-19 15:20:29 +0100
commitc52b2efbf83e9d66fa9fa7b5416aa8eb4b839f20 (patch)
tree8be760309be54399e15b960e932a314cfbb7d88b /dashboard/app/reporting.go
parent05494336991504e3c6137b89eeddd492e17af6b6 (diff)
dashboard: adjust pollClosed behavior for decommissioned namespaces
Return bugs from decommissioned namespaces as closed to external reportings.
Diffstat (limited to 'dashboard/app/reporting.go')
-rw-r--r--dashboard/app/reporting.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/dashboard/app/reporting.go b/dashboard/app/reporting.go
index 53ecd0888..273ac3dec 100644
--- a/dashboard/app/reporting.go
+++ b/dashboard/app/reporting.go
@@ -734,7 +734,8 @@ func reportingPollClosed(c context.Context, ids []string) ([]string, error) {
log.Errorf(c, "%v", err)
break
}
- if bug.Status >= BugStatusFixed || !bugReporting.Closed.IsZero() {
+ if bug.Status >= BugStatusFixed || !bugReporting.Closed.IsZero() ||
+ config.Namespaces[bug.Namespace].Decommissioned {
closed = append(closed, bugReporting.ID)
}
break