diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-04-09 13:21:52 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-04-10 10:37:46 +0000 |
| commit | d3827d51bf4ac8ac9ae98149933f1f6b34d228aa (patch) | |
| tree | bcc2dd4ebaebf582b736d44030cfaef31c74c205 /syz-cluster/dashboard | |
| parent | f68248c3be1d60bb978ff7034234d9e32597ee1b (diff) | |
syz-cluster: filter by series with findings
Add a checkbox to only display the series for which there are findings.
Diffstat (limited to 'syz-cluster/dashboard')
| -rw-r--r-- | syz-cluster/dashboard/handler.go | 9 | ||||
| -rw-r--r-- | syz-cluster/dashboard/templates/index.html | 7 |
2 files changed, 12 insertions, 4 deletions
diff --git a/syz-cluster/dashboard/handler.go b/syz-cluster/dashboard/handler.go index 318705e7f..fe9129373 100644 --- a/syz-cluster/dashboard/handler.go +++ b/syz-cluster/dashboard/handler.go @@ -100,10 +100,11 @@ func (h *dashboardHandler) seriesList(w http.ResponseWriter, r *http.Request) er baseURL := r.URL.RequestURI() data := MainPageData{ Filter: db.SeriesFilter{ - Cc: r.FormValue("cc"), - Status: db.SessionStatus(r.FormValue("status")), - Limit: perPage, - Offset: offset, + Cc: r.FormValue("cc"), + Status: db.SessionStatus(r.FormValue("status")), + WithFindings: r.FormValue("with_findings") != "", + Limit: perPage, + Offset: offset, }, // If the filters are changed, the old offset value is irrelevant. FilterFormURL: urlutil.DropParam(baseURL, "offset", ""), diff --git a/syz-cluster/dashboard/templates/index.html b/syz-cluster/dashboard/templates/index.html index c87285b58..d5f5102b0 100644 --- a/syz-cluster/dashboard/templates/index.html +++ b/syz-cluster/dashboard/templates/index.html @@ -15,6 +15,13 @@ {{end}} </select> </div> + <div class="form-check col-auto"> + <input class="form-check-input" type="checkbox" name="with_findings" value="true" + id="onlyWithFindings"{{if .Filter.WithFindings}} checked=""{{end}}> + <label class="form-check-label" for="onlyWithFindings"> + Only with findings + </label> + </div> <div class="col-auto"> <button type="submit" class="btn btn-primary">Submit</button> </div> |
