aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/dashboard/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'syz-cluster/dashboard/handler.go')
-rw-r--r--syz-cluster/dashboard/handler.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/syz-cluster/dashboard/handler.go b/syz-cluster/dashboard/handler.go
index 381efcfcd..e9d949f7c 100644
--- a/syz-cluster/dashboard/handler.go
+++ b/syz-cluster/dashboard/handler.go
@@ -172,6 +172,7 @@ func (h *dashboardHandler) seriesInfo(w http.ResponseWriter, r *http.Request) er
*db.Series
Patches []*db.Patch
Sessions []SessionData
+ Versions []*db.Series
TotalPatches int
}
var data SeriesData
@@ -188,6 +189,11 @@ func (h *dashboardHandler) seriesInfo(w http.ResponseWriter, r *http.Request) er
return fmt.Errorf("failed to query patches: %w", err)
}
data.TotalPatches = len(data.Patches)
+ // Note: There may be some false positives, but there's no straightforward way to filter them out.
+ data.Versions, err = h.seriesRepo.ListAllVersions(ctx, data.Series.Title)
+ if err != nil {
+ return fmt.Errorf("failed to query all series versions: %w", err)
+ }
sessions, err := h.sessionRepo.ListForSeries(ctx, data.Series)
if err != nil {
return fmt.Errorf("failed to query sessions: %w", err)