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:
William Lachance 2015-11-03 12:52:12 -05:00
Родитель adedad55c8
Коммит 36e27df932
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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"),