aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/dashapi
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-07-17 18:07:54 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-07-25 08:23:29 +0000
commitf10792b12616db8be4800398ef8eff0c6c1ffa2b (patch)
treeeb02eec7322bb903b7b984538f1fc44ffe66d41d /dashboard/dashapi
parent4699b1c1f3bfd64495d66ce3f89797ff9e14eb43 (diff)
dashboard: rename createPatchTestingJobs() to jobFromBugSample()
This will let us use the same code for sampling-based generation of bisection jobs as well.
Diffstat (limited to 'dashboard/dashapi')
-rw-r--r--dashboard/dashapi/dashapi.go4
1 files changed, 4 insertions, 0 deletions
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