Skip to content

Commit

Permalink
dashboard/app: coverage page allows to specify analysis duration (col…
Browse files Browse the repository at this point in the history
…umns)
  • Loading branch information
tarasmadan committed Jan 9, 2025
1 parent 907f92a commit 829d76c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions dashboard/app/static/coverage.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// 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(initUpdateForm);
initTogglers();
initUpdateForm();

// Initializes the file tree onClick collapse logic.
function initTogglers(){
Expand All @@ -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");
Expand Down
6 changes: 5 additions & 1 deletion pkg/cover/templates/heatmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@
<div style="display:inline-block">
<form method="get">
<div style="display:inline-block; vertical-align: top">
<label for="target-period">Periods:</label>
<label for="target-period">Period type:</label>
<br>
<label for="target-period-count">Period count:</label>
<br>
<label for="target-subsystem">Subsystem:</label>
<br>
Expand All @@ -121,6 +123,8 @@
<option value="day">Day</option>
</select>
<br>
<input id="target-period-count" name="period_count" type="number" min="1" max="12" value="4"/>
<br>
<select id="target-subsystem" name="subsystem">
<option value="">*</option>
{{ range $ss := .Subsystems }}
Expand Down

0 comments on commit 829d76c

Please sign in to comment.