From fd3bba535d0200374dad3bd872650a4ceb075cf2 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 30 Jun 2020 20:01:01 +0200 Subject: dashboard/app: cache per-namespace bug stats We used to show number of fixed bugs at the top of the main page. However, now with the button nagivation, "fixed" is shown on every page. Fetching and processing all bugs on every page would be unwise. Cache these stats in memcache. It will be useful to show more stats in future. --- dashboard/app/templates.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'dashboard/app/templates.html') diff --git a/dashboard/app/templates.html b/dashboard/app/templates.html index 15f3f3d53..5743368a1 100644 --- a/dashboard/app/templates.html +++ b/dashboard/app/templates.html @@ -58,11 +58,11 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the - 🐞 Open + 🐞 Open [{{$.Cached.Open}}] - 🐞 Fixed + 🐞 Fixed [{{$.Cached.Fixed}}] - 🐞 Invalid + 🐞 Invalid [{{$.Cached.Invalid}}] @@ -76,14 +76,16 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the {{if .}} {{if .Bugs}} - {{if $.Fragment}} - {{end}} - {{$.Caption}} ({{len $.Bugs}}): - {{if $.Fragment}}{{end}} - {{if $.ShowNamespace}} -- cgit mrf-deployment
- {{else}} - + {{if $.Caption}} + {{if $.Fragment}} + + {{else}} + + {{end}} + {{$.Caption}} ({{len $.Bugs}}): + {{if $.Fragment}}{{end}} +