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

Unified Diff: appengine/trooper_o_matic/model/patch-summary.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: 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 side-by-side diff with in-line comments
Download patch
Index: appengine/trooper_o_matic/model/patch-summary.html
diff --git a/appengine/trooper_o_matic/model/patch-summary.html b/appengine/trooper_o_matic/model/patch-summary.html
index a49aa8a80cbac883ff55ceee5d24593d514b1776..bafa3cc501e68e9067af16868e9d59695689c887 100644
--- a/appengine/trooper_o_matic/model/patch-summary.html
+++ b/appengine/trooper_o_matic/model/patch-summary.html
@@ -19,22 +19,33 @@ this.PatchSummary = function PatchSummary(value, unit, issue, patchset, alertThr
this.issue = issue;
this.patchset = patchset;
this.alertThreshold = alertThreshold;
+ this.list = null;
var reviewHost = 'https://codereview.chromium.org';
this._patchURL = '{1}/{2}#ps{3}'.assign(reviewHost, this.issue, this.patchset);
this._issueTitle = null;
- this._summary = null;
+ var logHost = '//chromium-cq-status.appspot.com';
+ this._statusURL = '{1}/patch-status/{2}/{3}'.assign(
+ logHost, this.issue, this.patchset);
+ this._recentURL = '{1}/recent#issue={2},patchset={3}'.assign(
+ logHost, this.issue, this.patchset);
this._columnValues = [];
this._jobViewBuilderBuilds = {};
+ this._summaryPromise = cqStatsUtil.loadPatchSummary(issue, patchset);
+ this._summary = null;
var self = this;
var issueURL = '{1}/api/{2}'.assign(reviewHost, this.issue);
net.json({url: issueURL, cache: true}).then(function(json) {
self._issueTitle = json.subject;
}).catch(log);
- cqStatsUtil.loadPatchSummary(issue, patchset).then(function(summary) {
+ self._summaryPromise.then(function(summary) {
self._summary = summary;
+ summary.attempts.forEach(function(attempt, i) {
+ attempt.number = summary.attempts.length - i;
+ });
+
self._columnValues = PatchSummary.summaryColumns.map(function(column) {
return column.getter(summary);
});
@@ -46,6 +57,10 @@ this.PatchSummary = function PatchSummary(value, unit, issue, patchset, alertThr
}).catch(log);
};
+PatchSummary.prototype.getSummary = function() {
+ return this._summaryPromise;
+}
+
function getJobs(summary, jobView) {
switch (jobView) {
case 'flaky':

Powered by Google App Engine
This is Rietveld 408576698