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

Unified Diff: milo/appengine/buildbot/console.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/builder.go ('k') | milo/appengine/buildbot/master.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/buildbot/console.go
diff --git a/milo/appengine/buildbot/console.go b/milo/appengine/buildbot/console.go
index a6d9a0ee5006399e25edef254a57f0e6152fba98..068c861db4847568fddd27081fc4f1f3b05d891b 100644
--- a/milo/appengine/buildbot/console.go
+++ b/milo/appengine/buildbot/console.go
@@ -13,6 +13,7 @@ import (
log "github.com/luci/luci-go/common/logging"
"github.com/luci/luci-go/common/sync/parallel"
"github.com/luci/luci-go/milo/api/resp"
+ "github.com/luci/luci-go/milo/appengine/common/model"
"golang.org/x/net/context"
)
@@ -66,16 +67,15 @@ func GetConsoleBuilds(
return err
}
t2 := clock.Now(c)
- var currentStatus *resp.Status
+ var currentStatus *model.Status
for j, commit := range commits {
for _, build := range builds {
if build.Sourcestamp.Revision == commit {
results[j][i] = &resp.ConsoleBuild{
- Link: &resp.Link{
- Label: strings.Join(build.Text, " "),
- URL: fmt.Sprintf(
- "/buildbot/%s/%s/%d", master, builderName, build.Number),
- },
+ Link: resp.NewLink(
+ strings.Join(build.Text, " "),
+ fmt.Sprintf("/buildbot/%s/%s/%d", master, builderName, build.Number),
+ ),
Status: build.toStatus(),
}
currentStatus = &results[j][i].Status
« no previous file with comments | « milo/appengine/buildbot/builder.go ('k') | milo/appengine/buildbot/master.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698