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="../lib/ct-scheduled-updater.html"> | 8 <link rel="import" href="../lib/ct-scheduled-updater.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="../model/tree-status.html"> | 10 <link rel="import" href="../model/tree-status.html"> |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 33 | 33 |
| 34 .toolbar { | 34 .toolbar { |
| 35 display: flex; | 35 display: flex; |
| 36 justify-content: space-between; | 36 justify-content: space-between; |
| 37 align-items: baseline; | 37 align-items: baseline; |
| 38 padding: 0 5px; | 38 padding: 0 5px; |
| 39 } | 39 } |
| 40 </style> | 40 </style> |
| 41 <ct-failure-analyzer id="analyzer" failures="{{ failures }}" builderLatestRe visions="{{ builderLatestRevisions }}" lastUpdateDate="{{ lastUpdateDate }}"></c t-failure-analyzer> | 41 <ct-failure-analyzer id="analyzer" failures="{{ failures }}" builderLatestRe visions="{{ builderLatestRevisions }}" lastUpdateDate="{{ lastUpdateDate }}"></c t-failure-analyzer> |
| 42 <div class="toolbar"> | 42 <div class="toolbar"> |
| 43 <ct-revision-details id="revisionDetails" builderLatestRevisions="{{ build erLatestRevisions }}" revisionLog="{{ revisionLog }}" tree="{{ tree }}"></ct-rev ision-details> | 43 <ct-revision-details id="revisionDetails" builderLatestRevisions="{{ build erLatestRevisions }}" commitLog="{{ commitLog }}" tree="{{ tree }}"></ct-revisio n-details> |
| 44 <a href="https://code.google.com/p/chromium/wiki/UsefulURLs">Useful URLs</ a> | 44 <a href="https://code.google.com/p/chromium/wiki/UsefulURLs">Useful URLs</ a> |
| 45 </div> | 45 </div> |
| 46 <ct-tree-status status="{{ treeStatuses['chromium'] }}" state="{{ treeStatus es['chromium'].status }}"></ct-tree-status> | 46 <ct-tree-status status="{{ treeStatuses['chromium'] }}" state="{{ treeStatus es['chromium'].status }}"></ct-tree-status> |
| 47 <ct-tree-status status="{{ treeStatuses['blink'] }}" state="{{ treeStatuses[ 'blink'].status }}"></ct-tree-status> | 47 <ct-tree-status status="{{ treeStatuses['blink'] }}" state="{{ treeStatuses[ 'blink'].status }}"></ct-tree-status> |
| 48 <ct-party-time failures="{{ failures }}" tree="{{ tree }}"></ct-party-time> | 48 <ct-party-time failures="{{ failures }}" tree="{{ tree }}"></ct-party-time> |
| 49 <ct-failure-stream category="default" groups="{{ failures[tree] }}" commits= "{{ revisionLog }}" tree="{{ tree }}"></ct-failure-stream> | 49 <ct-failure-stream category="default" groups="{{ failures[tree] }}" commitLo g="{{ commitLog }}" tree="{{ tree }}"></ct-failure-stream> |
| 50 <ct-failure-stream category="snoozed" groups="{{ failures[tree] }}" commits= "{{ revisionLog }}" tree="{{ tree }}"></ct-failure-stream> | 50 <ct-failure-stream category="snoozed" groups="{{ failures[tree] }}" commitLo g="{{ commitLog }}" tree="{{ tree }}"></ct-failure-stream> |
| 51 </template> | 51 </template> |
| 52 <script> | 52 <script> |
| 53 (function() { | 53 (function() { |
| 54 var kUpdateFrequency = 1000 * 30; | 54 var kUpdateFrequency = 1000 * 30; |
| 55 | 55 |
| 56 Polymer({ | 56 Polymer({ |
| 57 tree: '', | 57 tree: '', |
| 58 | 58 |
| 59 created: function() { | 59 created: function() { |
| 60 this.revisionLog = new CTCommitLog(), | 60 window.console.log('created CTCommitLog'); |
|
ojan
2014/08/20 18:47:51
Leftover debugging code?
Mathieu
2014/08/21 14:08:21
Done.
| |
| 61 this.commitLog = new CTCommitLog(), | |
| 61 this._updater = new CTScheduledUpdater(this.update.bind(this), kUpdateFr equency); | 62 this._updater = new CTScheduledUpdater(this.update.bind(this), kUpdateFr equency); |
| 62 | 63 |
| 63 this.treeStatuses = {}; | 64 this.treeStatuses = {}; |
| 64 var projects = ['chromium', 'blink']; | 65 var projects = ['chromium', 'blink']; |
| 65 for (var i = 0; i < projects.length; i++) { | 66 for (var i = 0; i < projects.length; i++) { |
| 66 this.treeStatuses[projects[i]] = new TreeStatus(projects[i]); | 67 this.treeStatuses[projects[i]] = new TreeStatus(projects[i]); |
| 67 } | 68 } |
| 68 }, | 69 }, |
| 69 | 70 |
| 70 attached: function() { | 71 attached: function() { |
| 71 this.update(); | 72 this.update(); |
| 72 }, | 73 }, |
| 73 | 74 |
| 74 update: function() { | 75 update: function() { |
| 76 window.console.log('unexpected-failures: update'); | |
|
ojan
2014/08/20 18:47:51
Ditto
Mathieu
2014/08/21 14:08:21
Oops! Proof I'm human!
| |
| 75 // FIXME: These shouldn't update if there's already an update in progres s. | 77 // FIXME: These shouldn't update if there's already an update in progres s. |
| 76 this.revisionLog.update(); | 78 this.commitLog.update(); |
| 77 this.$.analyzer.update(); | 79 this.$.analyzer.update(); |
| 78 Object.keys(this.treeStatuses, function(tree, status) { | 80 Object.keys(this.treeStatuses, function(tree, status) { |
| 79 status.update(); | 81 status.update(); |
| 80 }); | 82 }); |
| 81 }, | 83 }, |
| 82 }); | 84 }); |
| 83 })(); | 85 })(); |
| 84 </script> | 86 </script> |
| 85 </polymer-element> | 87 </polymer-element> |
| OLD | NEW |