Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(799)

Unified Diff: milo/api/resp/builder.go

Issue 2987953002: Milo: Show accurate pending build numbers for builder view. (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | milo/buildsource/buildbot/builder.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/api/resp/builder.go
diff --git a/milo/api/resp/builder.go b/milo/api/resp/builder.go
index a88ac3897ae834009d5c82bd0d13bdff802b238c..9dd67d0091e7dd71e161493b5c6ca0fb748eb2c5 100644
--- a/milo/api/resp/builder.go
+++ b/milo/api/resp/builder.go
@@ -61,9 +61,12 @@ type Builder struct {
// Warning text, if any.
Warning string
- CurrentBuilds []*BuildSummary
- PendingBuilds []*BuildSummary
- FinishedBuilds []*BuildSummary
+ CurrentBuilds []*BuildSummary
+ PendingBuilds []*BuildSummary
+ // PendingBuildNum is the number of pending builds, since the slice above
+ // may be a snapshot instead of the full set.
+ PendingBuildNum int
+ FinishedBuilds []*BuildSummary
// MachinePool is primarily used by buildbot builders to list the set of
// machines that can run in a builder. It has no meaning in buildbucket or dm
« no previous file with comments | « no previous file | milo/buildsource/buildbot/builder.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698