зеркало из https://github.com/mozilla/treeherder.git
Bug 1220680 - Fix handling of non-existent revisions in perfherder graphs
Specfically, handle the case where no resultset exists for a highlighted revision in a series when graphs are first loaded. Note that sometimes a revision might be valid in one series but not another.
This commit is contained in:
Родитель
adedad55c8
Коммит
36e27df932
|
@ -343,13 +343,15 @@ perf.controller('GraphsCtrl', [
|
|||
var resultSetId = resultSets[0].id;
|
||||
var j = series.flotSeries.resultSetData.indexOf(resultSetId);
|
||||
series.highlightedPoints.push(j);
|
||||
}, function(reason) {
|
||||
/* ignore cases where no result set exists
|
||||
for revision */
|
||||
});
|
||||
}
|
||||
return null;
|
||||
}));
|
||||
}
|
||||
});
|
||||
|
||||
$q.all(highlightPromises).then(function() {
|
||||
// plot the actual graph
|
||||
$scope.plot = $.plot($("#graph"),
|
||||
|
|
Загрузка…
Ссылка в новой задаче