+2016-03-21 Ryosuke Niwa <rniwa@webkit.org>
+
+ V3 Perf Dashboard should automatically select initial range when creating a new task
+ https://bugs.webkit.org/show_bug.cgi?id=155677
+
+ Reviewed by Joseph Pecoraro.
+
+ Select the entire range of points for which the analysis task is created by default so that creating
+ a test group to confirm the regression / progression is easy.
+
+ * public/v3/pages/analysis-task-page.js:
+ (AnalysisTaskPage): Added a boolean flag which indicates the user had modified main chart's selection.
+ * public/v3/pages/analysis-task-page.js:
+ (AnalysisTaskPage.prototype.render): Set the main chart's selection to the entire range of points in
+ the analysis task if the user had never modified selection.
+ (AnalysisTaskPage.prototype._chartSelectionDidChange): This callback is invoked only when the user had
+ modified the selection so set _selectionWasModifiedByUser true here unconditionally.
+
2016-03-19 Ryosuke Niwa <rniwa@webkit.org>
Associated commits don't immediately show up on an analysis task page
this._currentTestGroup = null;
this._filteredTestGroups = null;
this._showHiddenTestGroups = false;
+ this._selectionWasModifiedByUser = false;
this._chartPane = this.content().querySelector('analysis-task-chart-pane').component();
this._chartPane.setPage(this);
this._renderTestGroupList();
this._renderTestGroupDetails();
+ if (!this._renderedCurrentTestGroup && !this._selectionWasModifiedByUser && this._startPoint && this._endPoint)
+ this._chartPane.setMainSelection([this._startPoint.time, this._endPoint.time]);
+
var points = this._chartPane.selectedPoints();
this._newTestGroupFormForChart.setRootSetMap(points && points.length >= 2 ?
{'A': points[0].rootSet(), 'B': points[points.length - 1].rootSet()} : null);
_chartSelectionDidChange()
{
+ this._selectionWasModifiedByUser = true;
this.render();
}