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

Unified Diff: milo/appengine/buildbot/master.go

Issue 2944633003: [milo] Add BuildSummary and common models. (Closed)
Patch Set: add comments Created 3 years, 6 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 | « milo/appengine/buildbot/console.go ('k') | milo/appengine/buildbot/structs.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/buildbot/master.go
diff --git a/milo/appengine/buildbot/master.go b/milo/appengine/buildbot/master.go
index 878db75911eafd4a5710808fce663eebf36dfd7c..dd48bc2f0bbcdbd3088f8da31d0ab1e215f61a09 100644
--- a/milo/appengine/buildbot/master.go
+++ b/milo/appengine/buildbot/master.go
@@ -140,12 +140,10 @@ func GetAllBuilders(c context.Context) (*resp.CIService, error) {
}
sort.Strings(sb)
for _, bn := range sb {
- ml.Builders = append(ml.Builders, resp.Link{
- Label: bn,
- // Go templates escapes this for us, and also
- // slashes are not allowed in builder names.
- URL: fmt.Sprintf("/buildbot/%s/%s", entry.Name, bn),
- })
+ // Go templates escapes this for us, and also
+ // slashes are not allowed in builder names.
+ ml.Builders = append(ml.Builders, *resp.NewLink(
+ bn, fmt.Sprintf("/buildbot/%s/%s", entry.Name, bn)))
}
result.BuilderGroups = append(result.BuilderGroups, ml)
}
« no previous file with comments | « milo/appengine/buildbot/console.go ('k') | milo/appengine/buildbot/structs.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698