From 5fe5301b69de36dc64cf350d6924cb3e7b54b9ba Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 16 Feb 2023 18:36:17 +0100 Subject: dashboard: cache per-subsystem stats For each subsystem, collect the number of open, fixed and invalid bugs. --- dashboard/app/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dashboard/app/handler.go') diff --git a/dashboard/app/handler.go b/dashboard/app/handler.go index 7c6e9a23e..cb998a516 100644 --- a/dashboard/app/handler.go +++ b/dashboard/app/handler.go @@ -127,7 +127,7 @@ type uiHeader struct { AnalyticsTrackingID string Subpage string Namespace string - Cached *Cached + BugCounts *CachedBugStats Namespaces []uiNamespace } @@ -209,7 +209,7 @@ func commonHeader(c context.Context, r *http.Request, w http.ResponseWriter, ns if err != nil { return nil, err } - h.Cached = cached + h.BugCounts = &cached.Total } return h, nil } -- cgit mrf-deployment