From f10792b12616db8be4800398ef8eff0c6c1ffa2b Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Mon, 17 Jul 2023 18:07:54 +0200 Subject: dashboard: rename createPatchTestingJobs() to jobFromBugSample() This will let us use the same code for sampling-based generation of bisection jobs as well. --- dashboard/dashapi/dashapi.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dashboard/dashapi') diff --git a/dashboard/dashapi/dashapi.go b/dashboard/dashapi/dashapi.go index 21ba8df1a..00d7a9182 100644 --- a/dashboard/dashapi/dashapi.go +++ b/dashboard/dashapi/dashapi.go @@ -171,6 +171,10 @@ type ManagerJobs struct { BisectFix bool } +func (m ManagerJobs) Any() bool { + return m.TestPatches || m.BisectCause || m.BisectFix +} + type JobPollResp struct { ID string Type JobType -- cgit mrf-deployment