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

Issue 530613002: Fix partytime. (Closed)

Created:
6 years, 3 months ago by ojan
Modified:
6 years, 3 months ago
CC:
blink-reviews, cbiesinger, dsinclair, jochen (gone - plz use gerrit), leviw_travelin_and_unemployed, michaelpg, szager1, teravest
Project:
blink
Visibility:
Public.

Description

Fix partytime. My last change to it made it not work if there were no failures for a tree because failures[tree] would be undefined. Make it less brittle, add tests for this code and while here add an explanatory message that this page means there are no failures. BUG=407496 NOTRY=true R=jyasskin@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181599

Patch Set 1 #

Total comments: 11

Patch Set 2 : address review comments. wip #

Patch Set 3 : merge to ToT #

Patch Set 4 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -31 lines) Patch
M Tools/GardeningServer/model/ct-failures.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Tools/GardeningServer/model/test/ct-failures-tests.html View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Tools/GardeningServer/test/unit-tests.html View 1 1 chunk +1 line, -0 lines 0 comments Download
M Tools/GardeningServer/ui/ct-party-time.html View 1 1 chunk +12 lines, -12 lines 0 comments Download
M Tools/GardeningServer/ui/ct-unexpected-failures.html View 1 2 3 1 chunk +6 lines, -4 lines 0 comments Download
M Tools/GardeningServer/ui/test/ct-party-time-tests.html View 1 2 3 2 chunks +0 lines, -14 lines 0 comments Download
M Tools/GardeningServer/ui/test/ct-results-panel-tests.html View 1 1 chunk +4 lines, -0 lines 0 comments Download
A Tools/GardeningServer/ui/test/ct-unexpected-failures-tests.html View 1 2 3 1 chunk +71 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
ojan
6 years, 3 months ago (2014-09-01 00:29:31 UTC) #2
ojan
https://codereview.chromium.org/530613002/diff/1/Tools/GardeningServer/model/test/ct-failures-tests.html File Tools/GardeningServer/model/test/ct-failures-tests.html (right): https://codereview.chromium.org/530613002/diff/1/Tools/GardeningServer/model/test/ct-failures-tests.html#newcode9 Tools/GardeningServer/model/test/ct-failures-tests.html:9: <link rel="import" href="../ct-commit-list.html"> This import was missing. Didn't break ...
6 years, 3 months ago (2014-09-01 00:31:15 UTC) #3
Jeffrey Yasskin
lgtm https://codereview.chromium.org/530613002/diff/1/Tools/GardeningServer/ui/ct-unexpected-failures.html File Tools/GardeningServer/ui/ct-unexpected-failures.html (right): https://codereview.chromium.org/530613002/diff/1/Tools/GardeningServer/ui/ct-unexpected-failures.html#newcode44 Tools/GardeningServer/ui/ct-unexpected-failures.html:44: <ct-party-time partytime="{{ !failures || !failures.failures[tree] || failures.failures[tree].length == ...
6 years, 3 months ago (2014-09-02 18:34:53 UTC) #4
michaelpg
https://codereview.chromium.org/530613002/diff/1/Tools/GardeningServer/ui/ct-unexpected-failures.html File Tools/GardeningServer/ui/ct-unexpected-failures.html (right): https://codereview.chromium.org/530613002/diff/1/Tools/GardeningServer/ui/ct-unexpected-failures.html#newcode44 Tools/GardeningServer/ui/ct-unexpected-failures.html:44: <ct-party-time partytime="{{ !failures || !failures.failures[tree] || failures.failures[tree].length == 0 ...
6 years, 3 months ago (2014-09-02 21:57:34 UTC) #5
ojan
Committed patchset #4 (id:60001) manually as 181599 (presubmit successful).
6 years, 3 months ago (2014-09-09 03:26:40 UTC) #6
ojan
6 years, 3 months ago (2014-09-11 03:04:48 UTC) #7
Message was sent while issue was closed.
Hmmm...my drafts never sent. :(

https://codereview.chromium.org/530613002/diff/1/Tools/GardeningServer/ui/ct-...
File Tools/GardeningServer/ui/ct-unexpected-failures.html (right):

https://codereview.chromium.org/530613002/diff/1/Tools/GardeningServer/ui/ct-...
Tools/GardeningServer/ui/ct-unexpected-failures.html:44: <ct-party-time
partytime="{{ !failures || !failures.failures[tree] ||
failures.failures[tree].length == 0 }}"></ct-party-time>
On 2014/09/02 21:57:33, michaelpg wrote:
> I feel like this would be better as a conditional template instead of giving
> ct-party-time the partytime parameter...

Yeah, that's much better. Done.

https://codereview.chromium.org/530613002/diff/1/Tools/GardeningServer/ui/tes...
File Tools/GardeningServer/ui/test/ct-results-panel-tests.html (right):

https://codereview.chromium.org/530613002/diff/1/Tools/GardeningServer/ui/tes...
Tools/GardeningServer/ui/test/ct-results-panel-tests.html:102: // also means
that we actually fetch requests. This results in some console
On 2014/09/02 18:34:53, Jeffrey Yasskin wrote:
> "fetch requests"? Maybe "fetch the alerts page"?

Clarified which request we actually fetch.

https://codereview.chromium.org/530613002/diff/1/Tools/GardeningServer/ui/tes...
File Tools/GardeningServer/ui/test/ct-unexpected-failures-tests.html (right):

https://codereview.chromium.org/530613002/diff/1/Tools/GardeningServer/ui/tes...
Tools/GardeningServer/ui/test/ct-unexpected-failures-tests.html:37:
failures.failures.failures = {
On 2014/09/02 18:34:53, Jeffrey Yasskin wrote:
> Hmmm. Can you avoid having the same name 3 deep?

Changed the first one to hasFailures. I find I keep doing this sort of thing
with our model classes. Need to come up with a better naming scheme.

https://codereview.chromium.org/530613002/diff/1/Tools/GardeningServer/ui/tes...
Tools/GardeningServer/ui/test/ct-unexpected-failures-tests.html:43:
assert.ok(noFailures.shadowRoot.querySelector('ct-party-time').partytime);
On 2014/09/02 18:34:53, Jeffrey Yasskin wrote:
> Style-wise, I'd probably split this into 4 different tests. I certainly won't
> insist, and I see that it's more syntactic overhead to do that, but I think
> it'll be a bit easier to read.

Done.

Powered by Google App Engine
This is Rietveld 408576698