Chromium Code Reviews| OLD | NEW |
|---|---|
| 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"> | |
| 9 <link rel="import" href="../model/ct-commit-log.html"> | 8 <link rel="import" href="../model/ct-commit-log.html"> |
| 10 <link rel="import" href="ct-failing-builders.html"> | 9 <link rel="import" href="ct-failing-builders.html"> |
| 11 <link rel="import" href="ct-failure-analyzer.html"> | 10 <link rel="import" href="ct-failure-analyzer.html"> |
| 12 <link rel="import" href="ct-failure-grouper.html"> | 11 <link rel="import" href="ct-failure-grouper.html"> |
| 13 <link rel="import" href="ct-failure-stream.html"> | 12 <link rel="import" href="ct-failure-stream.html"> |
| 14 <link rel="import" href="ct-tree-status.html"> | 13 <link rel="import" href="ct-tree-status.html"> |
| 15 | 14 |
| 16 <polymer-element name="ct-unexpected-failures"> | 15 <polymer-element name="ct-unexpected-failures"> |
| 17 <template> | 16 <template> |
| 18 <style> | 17 <style> |
| 19 paper-toast { | |
| 20 bottom: 40px; | |
| 21 left: 10px; | |
| 22 } | |
| 23 | |
| 24 ct-tree-status, ct-failing-builders { | 18 ct-tree-status, ct-failing-builders { |
| 25 margin: 5px; | 19 margin: 5px; |
| 26 } | 20 } |
| 27 </style> | 21 </style> |
| 28 <ct-failure-analyzer id="analyzer" status="{{ analyzerStatus }}" failures="{ { failures }}" builderLatestRevisions="{{ builderLatestRevisions }}"></ct-failur e-analyzer> | 22 <ct-failure-analyzer id="analyzer" failures="{{ failures }}" builderLatestRe visions="{{ builderLatestRevisions }}"></ct-failure-analyzer> |
| 29 <ct-failure-grouper failures="{{ failures.unexpected }}" groups="{{ failureG roups }}"></ct-failure-grouper> | |
|
ojan
2014/07/21 00:44:57
The grouping happens on the backend now, so no nee
abarth-chromium
2014/07/21 06:44:18
Neat
| |
| 30 <ct-tree-status project="chromium"></ct-tree-status> | 23 <ct-tree-status project="chromium"></ct-tree-status> |
| 31 <ct-tree-status project="blink"></ct-tree-status> | 24 <ct-tree-status project="blink"></ct-tree-status> |
| 32 <ct-failing-builders builders="{{ failures.builders }}"></ct-failing-builder s> | 25 <ct-failing-builders builders="{{ failures.builders }}"></ct-failing-builder s> |
| 33 <ct-failure-stream groups="{{ failureGroups }}" builderLatestRevisions="{{ b uilderLatestRevisions }}" commits="{{revisionLog.commits}}"></ct-failure-stream> | 26 <ct-failure-stream groups="{{ failures.unexpected }}" builderLatestRevisions ="{{ builderLatestRevisions }}" commits="{{revisionLog.commits}}"></ct-failure-s tream> |
| 34 <paper-toast id="toast" text="{{ analyzerStatus }}"></paper-toast> | |
|
ojan
2014/07/21 00:44:57
No more need for a toast anymore since we load so
| |
| 35 </template> | 27 </template> |
| 36 <script> | 28 <script> |
| 37 Polymer({ | 29 Polymer({ |
| 38 revisionLog: new CTCommitLog(), | 30 revisionLog: new CTCommitLog(), |
| 39 | 31 |
| 40 attached: function() { | 32 attached: function() { |
| 41 this.update(); | 33 this.update(); |
| 42 setInterval(this.update.bind(this), config.kUpdateFrequency); | 34 setInterval(this.update.bind(this), config.kUpdateFrequency); |
| 43 }, | 35 }, |
| 44 | 36 |
| 45 update: function() { | 37 update: function() { |
| 46 // FIXME: These shouldn't update if there's already an update in progres s. | 38 // FIXME: These shouldn't update if there's already an update in progres s. |
| 47 this.revisionLog.update(); | 39 this.revisionLog.update(); |
| 48 this.$.analyzer.update(); | 40 this.$.analyzer.update(); |
| 49 var treeStatuses = this.shadowRoot.querySelectorAll("ct-tree-status"); | 41 var treeStatuses = this.shadowRoot.querySelectorAll("ct-tree-status"); |
| 50 for (var i = 0; i < treeStatuses.length; i++) | 42 for (var i = 0; i < treeStatuses.length; i++) |
| 51 treeStatuses[i].update(); | 43 treeStatuses[i].update(); |
| 52 }, | 44 }, |
| 53 | |
| 54 analyzerStatusChanged: function() { | |
| 55 this.$.toast.show(); | |
| 56 }, | |
| 57 }); | 45 }); |
| 58 </script> | 46 </script> |
| 59 </polymer-element> | 47 </polymer-element> |
| OLD | NEW |