From c52b2efbf83e9d66fa9fa7b5416aa8eb4b839f20 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Mon, 19 Dec 2022 15:04:24 +0100 Subject: dashboard: adjust pollClosed behavior for decommissioned namespaces Return bugs from decommissioned namespaces as closed to external reportings. --- dashboard/app/reporting.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dashboard/app/reporting.go') 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 -- cgit mrf-deployment