Update ChartPane per change r231087.
authordewei_zhu@apple.com <dewei_zhu@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 May 2018 01:18:17 +0000 (01:18 +0000)
committerdewei_zhu@apple.com <dewei_zhu@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 May 2018 01:18:17 +0000 (01:18 +0000)
https://bugs.webkit.org/show_bug.cgi?id=185570

Reviewed by Ryosuke Niwa.

On r231087 we change the return type of AnalysisTask.create, ChartPane needs to adapt
this change.

* public/v3/pages/chart-pane.js: Adapted the change that AnalysisTask.create now returns
an AnalysisTask object.
(ChartPane.prototype.async._analyzeRange):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232141 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Websites/perf.webkit.org/ChangeLog
Websites/perf.webkit.org/public/v3/pages/chart-pane.js

index bd5b024..16ca58a 100644 (file)
@@ -1,3 +1,17 @@
+2018-05-11  Dewei Zhu  <dewei_zhu@apple.com>
+
+        Update ChartPane per change r231087.
+        https://bugs.webkit.org/show_bug.cgi?id=185570
+
+        Reviewed by Ryosuke Niwa.
+
+        On r231087 we change the return type of AnalysisTask.create, ChartPane needs to adapt
+        this change.
+
+        * public/v3/pages/chart-pane.js: Adapted the change that AnalysisTask.create now returns
+        an AnalysisTask object.
+        (ChartPane.prototype.async._analyzeRange):
+
 2018-05-10  Dewei Zhu  <dewei_zhu@apple.com>
 
         CommitLogViewer._preceedingCommit should not always be null
index 5fc172f..8cd7aa0 100644 (file)
@@ -239,9 +239,9 @@ class ChartPane extends ChartPaneBase {
         const repetitionCount = this.content('confirm-repetition').value;
 
         try {
-            const data = await (createWithTestGroup ?
+            const analysisTask = await (createWithTestGroup ?
                 AnalysisTask.create(name, startPoint, endPoint, 'Confirm', repetitionCount) : AnalysisTask.create(name, startPoint, endPoint));
-            newWindow.location.href = router.url('analysis/task/' + data['taskId']);
+            newWindow.location.href = router.url('analysis/task/' + analysisTask.id());
             this.fetchAnalysisTasks(true);
         } catch(error) {
             newWindow.location.href = router.url('analysis/task/create', {error: error});