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

Issue 16159003: Show progress on upload and resolve. (Closed)

Created:
7 years, 6 months ago by Bob Nystrom
Modified:
7 years, 6 months ago
Reviewers:
nweiz
CC:
reviews_dartlang.org, keertip
Visibility:
Public.

Description

Show progress on upload and resolve. BUG=https://code.google.com/p/dart/issues/detail?id=7397 R=nweiz@google.com Committed: https://code.google.com/p/dart/source/detail?r=23306

Patch Set 1 #

Patch Set 2 : Remove TODO. #

Total comments: 7

Patch Set 3 : Revise. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -31 lines) Patch
M sdk/lib/_internal/pub/lib/src/command_lish.dart View 1 chunk +30 lines, -28 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/log.dart View 1 2 3 chunks +43 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/solver/version_solver.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M sdk/lib/_internal/pub/test/lish/archives_and_uploads_a_package_test.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/oauth2/with_a_server_rejected_refresh_token_authenticates_again_test.dart View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Bob Nystrom
7 years, 6 months ago (2013-05-28 17:26:43 UTC) #1
nweiz
A couple nits, otherwise LGTM. https://codereview.chromium.org/16159003/diff/2001/sdk/lib/_internal/pub/lib/src/log.dart File sdk/lib/_internal/pub/lib/src/log.dart (right): https://codereview.chromium.org/16159003/diff/2001/sdk/lib/_internal/pub/lib/src/log.dart#newcode192 sdk/lib/_internal/pub/lib/src/log.dart:192: if (_progressTimer != null) ...
7 years, 6 months ago (2013-05-28 18:46:41 UTC) #2
Bob Nystrom
Thanks! https://codereview.chromium.org/16159003/diff/2001/sdk/lib/_internal/pub/lib/src/log.dart File sdk/lib/_internal/pub/lib/src/log.dart (right): https://codereview.chromium.org/16159003/diff/2001/sdk/lib/_internal/pub/lib/src/log.dart#newcode192 sdk/lib/_internal/pub/lib/src/log.dart:192: if (_progressTimer != null) throw new StateError("Already in ...
7 years, 6 months ago (2013-05-28 19:55:12 UTC) #3
Bob Nystrom
Committed patchset #3 manually as r23306 (presubmit successful).
7 years, 6 months ago (2013-05-28 19:55:46 UTC) #4
nweiz
7 years, 6 months ago (2013-05-28 20:04:39 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/16159003/diff/2001/sdk/lib/_internal/pub/lib/...
File sdk/lib/_internal/pub/lib/src/log.dart (right):

https://codereview.chromium.org/16159003/diff/2001/sdk/lib/_internal/pub/lib/...
sdk/lib/_internal/pub/lib/src/log.dart:192: if (_progressTimer != null) throw
new StateError("Already in progress.");
On 2013/05/28 19:55:12, Bob Nystrom wrote:
> On 2013/05/28 18:46:41, nweiz wrote:
> > It seems weird that most of the time when a different log call happens, the
> old
> > progress indicator stops, but when [progress] in particular is called, it
> throws
> > an error.
> 
> At least right now, the progress indicator isn't designed to nest or be
> pre-empted by itself. This just asserts that.
> 
> Note that the API for using this is explicitly scoped, so you couldn't hit
this
> error when you're trying to have one progress indicator *followed* by another.
> It only happens if you try to nest them.

It just seems weird that in this block of code there could be some functions
you're not allowed to call because of their logging behavior.

Powered by Google App Engine
This is Rietveld 408576698