diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-02-16 18:36:17 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-02-17 12:00:36 +0100 |
| commit | 5fe5301b69de36dc64cf350d6924cb3e7b54b9ba (patch) | |
| tree | 95c459356142f496a0402f2693d5683069ee5506 /dashboard/app/handler.go | |
| parent | 3e7039f40cdc73052372e83bef288c26ed5256d8 (diff) | |
dashboard: cache per-subsystem stats
For each subsystem, collect the number of open, fixed and invalid bugs.
Diffstat (limited to 'dashboard/app/handler.go')
| -rw-r--r-- | dashboard/app/handler.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |
