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

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

Issue 410483002: Add the revision details widget to sheriff-o-matic (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
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="../model/ct-commit-log.html">
10 <link rel="import" href="ct-failing-builders.html"> 10 <link rel="import" href="ct-failing-builders.html">
11 <link rel="import" href="ct-failure-analyzer.html"> 11 <link rel="import" href="ct-failure-analyzer.html">
12 <link rel="import" href="ct-failure-grouper.html"> 12 <link rel="import" href="ct-failure-grouper.html">
13 <link rel="import" href="ct-failure-stream.html"> 13 <link rel="import" href="ct-failure-stream.html">
14 <link rel="import" href="ct-revision-details.html">
14 <link rel="import" href="ct-tree-status.html"> 15 <link rel="import" href="ct-tree-status.html">
15 16
16 <polymer-element name="ct-unexpected-failures"> 17 <polymer-element name="ct-unexpected-failures">
17 <template> 18 <template>
18 <style> 19 <style>
19 paper-toast { 20 paper-toast {
20 bottom: 40px; 21 bottom: 40px;
21 left: 10px; 22 left: 10px;
22 } 23 }
23 24
(...skipping 11 matching lines...) Expand all
35 36
36 ct-tree-status[status=open] { 37 ct-tree-status[status=open] {
37 margin: 0; 38 margin: 0;
38 padding: 0; 39 padding: 0;
39 } 40 }
40 </style> 41 </style>
41 <ct-failure-analyzer id="analyzer" status="{{ analyzerStatus }}" failures="{ { failures }}" builderLatestRevisions="{{ builderLatestRevisions }}"></ct-failur e-analyzer> 42 <ct-failure-analyzer id="analyzer" status="{{ analyzerStatus }}" failures="{ { failures }}" builderLatestRevisions="{{ builderLatestRevisions }}"></ct-failur e-analyzer>
42 <ct-failure-grouper failures="{{ failures.unexpected }}" groups="{{ failureG roups }}"></ct-failure-grouper> 43 <ct-failure-grouper failures="{{ failures.unexpected }}" groups="{{ failureG roups }}"></ct-failure-grouper>
43 <ct-tree-status project="chromium"></ct-tree-status> 44 <ct-tree-status project="chromium"></ct-tree-status>
44 <ct-tree-status project="blink"></ct-tree-status> 45 <ct-tree-status project="blink"></ct-tree-status>
46 <ct-revision-details id="revisionDetails"></ct-revision-details>
45 <ct-failing-builders builders="{{ failures.builders }}"></ct-failing-builder s> 47 <ct-failing-builders builders="{{ failures.builders }}"></ct-failing-builder s>
46 <ct-failure-stream groups="{{ failureGroups }}" builderLatestRevisions="{{ b uilderLatestRevisions }}" commits="{{ revisionLog.commits }}"></ct-failure-strea m> 48 <ct-failure-stream groups="{{ failureGroups }}" builderLatestRevisions="{{ b uilderLatestRevisions }}" commits="{{ revisionLog.commits }}"></ct-failure-strea m>
47 <paper-toast id="toast" text="{{ analyzerStatus }}"></paper-toast> 49 <paper-toast id="toast" text="{{ analyzerStatus }}"></paper-toast>
48 </template> 50 </template>
49 <script> 51 <script>
50 Polymer({ 52 Polymer({
51 revisionLog: new CTCommitLog(), 53 revisionLog: new CTCommitLog(),
52 54
53 attached: function() { 55 attached: function() {
54 this.update(); 56 this.update();
55 setInterval(this.update.bind(this), config.kUpdateFrequency); 57 setInterval(this.update.bind(this), config.kUpdateFrequency);
56 }, 58 },
57 59
58 update: function() { 60 update: function() {
59 // FIXME: These shouldn't update if there's already an update in progres s. 61 // FIXME: These shouldn't update if there's already an update in progres s.
60 this.revisionLog.update(); 62 this.revisionLog.update();
61 this.$.analyzer.update(); 63 this.$.analyzer.update();
62 var treeStatuses = this.shadowRoot.querySelectorAll("ct-tree-status"); 64 var treeStatuses = this.shadowRoot.querySelectorAll("ct-tree-status");
63 for (var i = 0; i < treeStatuses.length; i++) 65 for (var i = 0; i < treeStatuses.length; i++)
64 treeStatuses[i].update(); 66 treeStatuses[i].update();
67 this.$.revisionDetails.update();
65 }, 68 },
66 69
67 analyzerStatusChanged: function() { 70 analyzerStatusChanged: function() {
68 this.$.toast.show(); 71 this.$.toast.show();
69 }, 72 },
70 }); 73 });
71 </script> 74 </script>
72 </polymer-element> 75 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698