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

Issue 2810113002: Milo buildbot builder page: Add pagnation with cursors. (Closed)

Created:
3 years, 8 months ago by Ryan Tseng
Modified:
3 years, 8 months ago
Reviewers:
nodir, hinoka
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

Milo buildbot builder page: Add pagnation with cursors. In the UI, backward pages are implemented via memcache, just like luci scheduler In the API, backward pages are not supported Note that for the most part we operate around pointers to cursors, to store the state that "the cursor does not exist", ie the end of the query has been reached. BUG=679931, 700263 Review-Url: https://codereview.chromium.org/2810113002 Committed: https://github.com/luci/luci-go/commit/9fb9880d65325cef1fd8ff4099a1de27b4bf684e

Patch Set 1 #

Patch Set 2 : ]\ #

Patch Set 3 : Touchups #

Total comments: 12

Patch Set 4 : Reviews, add title link #

Patch Set 5 : train #

Unified diffs Side-by-side diffs Delta from patch set Stats (+925 lines, -740 lines) Patch
M milo/api/proto/buildbot.proto View 1 chunk +5 lines, -0 lines 0 comments Download
M milo/api/proto/buildbot.pb.go View 4 chunks +48 lines, -28 lines 0 comments Download
M milo/api/proto/pb.discovery.go View 1 chunk +675 lines, -663 lines 0 comments Download
M milo/api/resp/builder.go View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M milo/appengine/buildbot/builder.go View 1 2 3 6 chunks +75 lines, -12 lines 0 comments Download
M milo/appengine/buildbot/console.go View 1 chunk +2 lines, -3 lines 0 comments Download
M milo/appengine/buildbot/datastore.go View 1 2 chunks +29 lines, -5 lines 0 comments Download
M milo/appengine/buildbot/grpc.go View 1 2 7 chunks +21 lines, -10 lines 0 comments Download
M milo/appengine/buildbot/html.go View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M milo/appengine/common/funcs.go View 1 2 3 3 chunks +38 lines, -0 lines 0 comments Download
M milo/appengine/common/middleware.go View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M milo/appengine/frontend/expectations/buildbot.builder-Basic_Test_no_builds.html View 1 2 3 4 2 chunks +8 lines, -6 lines 0 comments Download
M milo/appengine/frontend/expectations/buildbot.builder-Basic_Test_with_builds.html View 1 2 3 4 2 chunks +8 lines, -6 lines 0 comments Download
M milo/appengine/frontend/templates/pages/builder.html View 1 2 3 2 chunks +8 lines, -6 lines 0 comments Download

Messages

Total messages: 33 (27 generated)
hinoka
ptal! Demo: https://1680-8fa48d3-tainted-hinoka-dot-luci-milo-dev.appspot.com/buildbot/chromium.webrtc.fyi/Mac%20Builder/ This uses memcache to do backwards traversal, just like luci scheduler
3 years, 8 months ago (2017-04-18 19:59:25 UTC) #15
nodir
https://codereview.chromium.org/2810113002/diff/40001/milo/api/resp/builder.go File milo/api/resp/builder.go (right): https://codereview.chromium.org/2810113002/diff/40001/milo/api/resp/builder.go#newcode68 milo/api/resp/builder.go:68: PrevCursor string `json:",omitempty"` https://codereview.chromium.org/2810113002/diff/40001/milo/api/resp/builder.go#newcode70 milo/api/resp/builder.go:70: NextCursor string `json:",omitempty"` https://codereview.chromium.org/2810113002/diff/40001/milo/appengine/buildbot/builder.go ...
3 years, 8 months ago (2017-04-18 20:27:49 UTC) #18
hinoka
New demo: https://1683-ab1ded8-tainted-hinoka-cursor-dot-luci-milo-dev.appspot.com/buildbot/chromium.android/Android%20N5X%20Swarm%20Builder/ https://codereview.chromium.org/2810113002/diff/40001/milo/api/resp/builder.go File milo/api/resp/builder.go (right): https://codereview.chromium.org/2810113002/diff/40001/milo/api/resp/builder.go#newcode68 milo/api/resp/builder.go:68: PrevCursor string On 2017/04/18 20:27:49, nodir ...
3 years, 8 months ago (2017-04-20 21:37:08 UTC) #21
nodir
lgtm
3 years, 8 months ago (2017-04-20 21:41:59 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2810113002/80001
3 years, 8 months ago (2017-04-20 22:09:36 UTC) #30
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 22:17:32 UTC) #33
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://github.com/luci/luci-go/commit/9fb9880d65325cef1fd8ff4099a1de27b4bf684e

Powered by Google App Engine
This is Rietveld 408576698