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

Side by Side Diff: appengine/trooper_o_matic/model/cqstats-graph-data.html

Issue 845963005: trooper-o-matic: Add patch attempt timeline view to CQ graphs (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@+addAlternateBuildViews
Patch Set: Review changes Created 5 years, 11 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
« no previous file with comments | « no previous file | appengine/trooper_o_matic/model/cqstats-ratio-graph-data.html » ('j') | 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="../lib/log.html"> 7 <link rel="import" href="../lib/log.html">
8 <link rel="import" href="../lib/net.html"> 8 <link rel="import" href="../lib/net.html">
9 <link rel="import" href="../lib/cqstats-util.html"> 9 <link rel="import" href="../lib/cqstats-util.html">
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 CQStatsGraphData.prototype.rowItems = function(index) { 57 CQStatsGraphData.prototype.rowItems = function(index) {
58 var name = this._name; 58 var name = this._name;
59 return this._cqStatsListPromise.then(function(cqStatsList) { 59 return this._cqStatsListPromise.then(function(cqStatsList) {
60 var cqStats = cqStatsList[index]; 60 var cqStats = cqStatsList[index];
61 return cqStatsUtil.loadStatItems(name, cqStats.key).then(function(items) { 61 return cqStatsUtil.loadStatItems(name, cqStats.key).then(function(items) {
62 // Convert seconds to minutes. 62 // Convert seconds to minutes.
63 items.forEach(function(item) { item[0] /= 60; }); 63 items.forEach(function(item) { item[0] /= 60; });
64 return { 64 return {
65 items: items, 65 items: items,
66 begin: new Date(cqStats.begin * 1000), 66 begin: cqStats.begin,
67 end: new Date(cqStats.end * 1000), 67 end: cqStats.end,
68 }; 68 };
69 }); 69 });
70 }) 70 })
71 }; 71 };
72 </script> 72 </script>
OLDNEW
« no previous file with comments | « no previous file | appengine/trooper_o_matic/model/cqstats-ratio-graph-data.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698