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

Issue 2893783002: [logdog-stream-view] Fix loading loop. (Closed)

Created:
3 years, 7 months ago by dnj
Modified:
3 years, 7 months ago
Reviewers:
Ryan Tseng, 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

[logdog-stream-view] Fix loading loop. Fix the log loading loop construction for LogDog stream view. The current form included indefinite recursion and no clear terminal point. This is an artifact of the transition to async notation. Now, an operation is scoped to the lifecycle of its initiating request, regardless of how many fetches it is composed of. The fetch loop is clearly defined in a "for" loop that performs the fetch cycle repeatedly until a terminal condition is hit. The "been a while" timer is now fully scoped to a given fetch loop, avoiding a bug where old timers would trigger during later cycles, maintaining a near-perpetual state of "been a while" messaging regardless of log throughput. BUG=None TEST=local - Ran in local browser against development instance, works. Review-Url: https://codereview.chromium.org/2893783002 Committed: https://github.com/luci/luci-go/commit/3b355f68555a714a8d42b180785d16f9c67eb6d3

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -52 lines) Patch
M web/inc/logdog-stream-view/model.ts View 7 chunks +69 lines, -52 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
dnj
PTAL
3 years, 7 months ago (2017-05-18 01:19:47 UTC) #2
Ryan Tseng
lgtm i like the loop better than the tail call.
3 years, 7 months ago (2017-05-18 01:50:12 UTC) #4
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/2893783002/1
3 years, 7 months ago (2017-05-18 01:52:26 UTC) #6
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 02:00:01 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://github.com/luci/luci-go/commit/3b355f68555a714a8d42b180785d16f9c67eb6d3

Powered by Google App Engine
This is Rietveld 408576698