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

Side by Side Diff: Tools/GardeningServer/ui/ct-unexpected-failures.html

Issue 404463003: Move commit list and builder latest revisions up to ct-unexpected-failures (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address review comments Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Tools/GardeningServer/ui/ct-failure-stream.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 Copyright 2014 The Chromium Authors. All rights reserved. 2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. 4 found in the LICENSE file.
5 --> 5 -->
6 6
7 <link rel="import" href="../bower_components/paper-button/paper-button.html"> 7 <link rel="import" href="../bower_components/paper-button/paper-button.html">
8 <link rel="import" href="../bower_components/paper-toast/paper-toast.html"> 8 <link rel="import" href="../bower_components/paper-toast/paper-toast.html">
9 <link rel="import" href="../model/ct-commit-log.html">
9 <link rel="import" href="ct-failing-builders.html"> 10 <link rel="import" href="ct-failing-builders.html">
10 <link rel="import" href="ct-failure-analyzer.html"> 11 <link rel="import" href="ct-failure-analyzer.html">
11 <link rel="import" href="ct-failure-grouper.html"> 12 <link rel="import" href="ct-failure-grouper.html">
12 <link rel="import" href="ct-failure-stream.html"> 13 <link rel="import" href="ct-failure-stream.html">
13 <link rel="import" href="ct-tree-status.html"> 14 <link rel="import" href="ct-tree-status.html">
14 15
15 <polymer-element name="ct-unexpected-failures"> 16 <polymer-element name="ct-unexpected-failures">
16 <template> 17 <template>
17 <style> 18 <style>
18 paper-toast { 19 paper-toast {
(...skipping 11 matching lines...) Expand all
30 text-overflow: ellipsis; 31 text-overflow: ellipsis;
31 margin: 5px; 32 margin: 5px;
32 padding: 3px; 33 padding: 3px;
33 } 34 }
34 35
35 ct-tree-status[status=open] { 36 ct-tree-status[status=open] {
36 margin: 0; 37 margin: 0;
37 padding: 0; 38 padding: 0;
38 } 39 }
39 </style> 40 </style>
40 <ct-failure-analyzer id="analyzer" status="{{ analyzerStatus }}" failures="{ { failures }}"></ct-failure-analyzer> 41 <ct-failure-analyzer id="analyzer" status="{{ analyzerStatus }}" failures="{ { failures }}" builderLatestRevisions="{{ builderLatestRevisions }}"></ct-failur e-analyzer>
41 <ct-failure-grouper failures="{{ failures.unexpected }}" groups="{{ failureG roups }}"></ct-failure-grouper> 42 <ct-failure-grouper failures="{{ failures.unexpected }}" groups="{{ failureG roups }}"></ct-failure-grouper>
42 <ct-tree-status project="chromium"></ct-tree-status> 43 <ct-tree-status project="chromium"></ct-tree-status>
43 <ct-tree-status project="blink"></ct-tree-status> 44 <ct-tree-status project="blink"></ct-tree-status>
44 <ct-failing-builders builders="{{ failures.builders }}"></ct-failing-builder s> 45 <ct-failing-builders builders="{{ failures.builders }}"></ct-failing-builder s>
45 <ct-failure-stream groups="{{ failureGroups }}"></ct-failure-stream> 46 <ct-failure-stream groups="{{ failureGroups }}" builderLatestRevisions="{{ b uilderLatestRevisions }}" commits="{{ revisionLog.commits }}"></ct-failure-strea m>
46 <paper-toast id="toast" text="{{ analyzerStatus }}"></paper-toast> 47 <paper-toast id="toast" text="{{ analyzerStatus }}"></paper-toast>
47 </template> 48 </template>
48 <script> 49 <script>
49 Polymer({ 50 Polymer({
51 revisionLog: new CTCommitLog(),
52
50 attached: function() { 53 attached: function() {
51 this.update(); 54 this.update();
52 setInterval(this.update.bind(this), config.kUpdateFrequency); 55 setInterval(this.update.bind(this), config.kUpdateFrequency);
53 }, 56 },
54 57
55 update: function() { 58 update: function() {
59 // FIXME: These shouldn't update if there's already an update in progres s.
60 this.revisionLog.update();
56 this.$.analyzer.update(); 61 this.$.analyzer.update();
57 var treeStatuses = this.shadowRoot.querySelectorAll("ct-tree-status"); 62 var treeStatuses = this.shadowRoot.querySelectorAll("ct-tree-status");
58 for (var i = 0; i < treeStatuses.length; i++) 63 for (var i = 0; i < treeStatuses.length; i++)
59 treeStatuses[i].update(); 64 treeStatuses[i].update();
60 }, 65 },
61 66
62 analyzerStatusChanged: function() { 67 analyzerStatusChanged: function() {
63 this.$.toast.show(); 68 this.$.toast.show();
64 }, 69 },
65 }); 70 });
66 </script> 71 </script>
67 </polymer-element> 72 </polymer-element>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/ui/ct-failure-stream.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698