| 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="../lib/sugar.html"> | 7 <link rel="import" href="../lib/sugar.html"> |
| 8 <link rel="import" href="../model/cq-graph.html"> | 8 <link rel="import" href="../model/cq-graph.html"> |
| 9 <link rel="import" href="../model/cqstats-graph-data.html"> | 9 <link rel="import" href="../model/cqstats-graph-data.html"> |
| 10 <link rel="import" href="../model/cqstats-ratio-graph-data.html"> | 10 <link rel="import" href="../model/cqstats-ratio-graph-data.html"> |
| 11 <link rel="import" href="../model/json-graph-data.html"> | 11 <link rel="import" href="../model/json-graph-data.html"> |
| 12 <link rel="import" href="./tom-cq-graph.html"> | 12 <link rel="import" href="./tom-cq-graph.html"> |
| 13 | 13 |
| 14 <polymer-element name="tom-cq-graphs" attributes="project"> | 14 <polymer-element name="tom-cq-graphs" attributes="project"> |
| 15 <template> | 15 <template> |
| 16 <h1>Commit Queue Status</h1> | 16 <h1>Commit Queue Status</h1> |
| 17 Click on graph points for detailed information. |
| 17 <template repeat="{{ graph in graphList }}"> | 18 <template repeat="{{ graph in graphList }}"> |
| 18 <tom-cq-graph graph="{{ graph }}"></tom-cq-graph> | 19 <tom-cq-graph graph="{{ graph }}"></tom-cq-graph> |
| 19 </template> | 20 </template> |
| 20 </template> | 21 </template> |
| 21 <script> | 22 <script> |
| 22 Polymer({ | 23 Polymer({ |
| 23 ready: function() { | 24 ready: function() { |
| 24 this.graphList = [ | 25 this.graphList = [ |
| 25 this._falseRejectGraph(), | 26 this._falseRejectGraph(), |
| 26 this._timeGraphs(), | 27 this._timeGraphs(), |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 'percent', 'false rejects', data, alerts, itemAlertThreshold); | 68 'percent', 'false rejects', data, alerts, itemAlertThreshold); |
| 68 }, | 69 }, |
| 69 _queueLengthGraph: function() { | 70 _queueLengthGraph: function() { |
| 70 var url = '/project/' + this.project + '/cq-length'; | 71 var url = '/project/' + this.project + '/cq-length'; |
| 71 return new CQGraph('Commit Queue Length', 'count', '', | 72 return new CQGraph('Commit Queue Length', 'count', '', |
| 72 new JSONGraphData(url)); | 73 new JSONGraphData(url)); |
| 73 }, | 74 }, |
| 74 }); | 75 }); |
| 75 </script> | 76 </script> |
| 76 </polymer-element> | 77 </polymer-element> |
| OLD | NEW |