From 67f747a3bcbe7244a637bbb2bf2710c66a44e7b7 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Tue, 10 Sep 2024 09:31:37 +0200 Subject: dashboard/app: fix url routing bug No comments. It was an evening code I guess... --- dashboard/app/main.go | 7 +++---- dashboard/app/templates/templates.html | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/dashboard/app/main.go b/dashboard/app/main.go index 596b52924..5d11f9951 100644 --- a/dashboard/app/main.go +++ b/dashboard/app/main.go @@ -65,11 +65,10 @@ func initHTTPHandlers() { http.Handle("/"+ns+"/graph/crashes", handlerWrapper(handleGraphCrashes)) http.Handle("/"+ns+"/graph/found-bugs", handlerWrapper(handleFoundBugsGraph)) if nsConfig.Coverage != nil { - http.Handle("/"+ns+"/graph/coverage?period=quarter", handlerWrapper(handleCoverageGraph)) - http.Handle("/"+ns+"/graph/coverage_heatmap?period=month", handlerWrapper(handleCoverageHeatmap)) + http.Handle("/"+ns+"/graph/coverage", handlerWrapper(handleCoverageGraph)) + http.Handle("/"+ns+"/graph/coverage_heatmap", handlerWrapper(handleCoverageHeatmap)) if nsConfig.Subsystems.Service != nil { - http.Handle("/"+ns+"/graph/coverage_subsystems_heatmap?period=month", - handlerWrapper(handleSubsystemsCoverageHeatmap)) + http.Handle("/"+ns+"/graph/coverage_subsystems_heatmap", handlerWrapper(handleSubsystemsCoverageHeatmap)) } } http.Handle("/"+ns+"/repos", handlerWrapper(handleRepos)) diff --git a/dashboard/app/templates/templates.html b/dashboard/app/templates/templates.html index 37ea44d7a..b776f4bcd 100644 --- a/dashboard/app/templates/templates.html +++ b/dashboard/app/templates/templates.html @@ -108,12 +108,12 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the -- cgit mrf-deployment