From d9381135675fbad30ded99c88b61ac76c3ffc110 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Thu, 9 Jan 2025 11:54:09 +0100 Subject: [PATCH] dashboard/app: coverage page allows to specify analysis duration (columns) --- dashboard/app/static/coverage.js | 5 ++++- pkg/cover/templates/heatmap.html | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/dashboard/app/static/coverage.js b/dashboard/app/static/coverage.js index 5a17ad0a9e5b..92fccc0914e8 100644 --- a/dashboard/app/static/coverage.js +++ b/dashboard/app/static/coverage.js @@ -1,7 +1,7 @@ // Copyright 2024 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. -$(document).ready(initTogglers()); +$(document).ready(initTogglers); $(document).ready(initUpdateForm); // Initializes the file tree onClick collapse logic. @@ -15,6 +15,9 @@ function initTogglers(){ function initUpdateForm(){ var curUrlParams = new URLSearchParams(window.location.search); $('#target-period').val(curUrlParams.get('period')); + if (curUrlParams.get('period_count') != null) { + $('#target-period-count').val(curUrlParams.get('period_count')); + } $('#target-subsystem').val(curUrlParams.get('subsystem')); $('#target-manager').val(curUrlParams.get('manager')); $("#only-unique").prop("checked", curUrlParams.get('subsystem') == "1"); diff --git a/pkg/cover/templates/heatmap.html b/pkg/cover/templates/heatmap.html index 5dd951afe7b0..c3fcd5db7268 100644 --- a/pkg/cover/templates/heatmap.html +++ b/pkg/cover/templates/heatmap.html @@ -107,7 +107,9 @@
- + +
+

@@ -121,6 +123,8 @@
+ +