Build fix after r198234.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Mar 2016 03:33:11 +0000 (03:33 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Mar 2016 03:33:11 +0000 (03:33 +0000)
* public/api/commits.php:
(main): Typo: fetch_latest_reported -> fetch_last_reported.
* public/include/commit-log-fetcher.php:
(CommitLogFetcher::format_single_commit): commits should be an array.

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

Websites/perf.webkit.org/ChangeLog
Websites/perf.webkit.org/public/api/commits.php
Websites/perf.webkit.org/public/include/commit-log-fetcher.php

index ec0e234..504a687 100644 (file)
@@ -1,5 +1,14 @@
 2016-03-18  Ryosuke Niwa  <rniwa@webkit.org>
 
+        Build fix after r198234.
+
+        * public/api/commits.php:
+        (main): Typo: fetch_latest_reported -> fetch_last_reported.
+        * public/include/commit-log-fetcher.php:
+        (CommitLogFetcher::format_single_commit): commits should be an array.
+
+2016-03-18  Ryosuke Niwa  <rniwa@webkit.org>
+
         Perf Dashboard v3 confuses better and worse on A/B task page
         https://bugs.webkit.org/show_bug.cgi?id=155675
         <rdar://problem/25208723>
index 72e0492..d5da8d4 100644 (file)
@@ -32,7 +32,7 @@ function main($paths) {
     } else if ($filter == 'latest') {
         $commits = $fetcher->fetch_latest($repository_id);
     } else if ($filter == 'last-reported') {
-        $commits = $fetcher->fetch_latest_reported($repository_id);
+        $commits = $fetcher->fetch_last_reported($repository_id);
     } else if (ctype_alnum($filter)) {
         $commits = $fetcher->fetch_revision($repository_id, $filter);
     } else {
index 4ec6e1c..3046acc 100644 (file)
@@ -112,7 +112,7 @@ class CommitLogFetcher {
 
     private function format_single_commit($commit_row) {
         $committer = $this->db->select_first_row('committers', 'committer', array('id' => $commit_row['commit_committer']));
-        return $this->format_commit($commit_row, $committer);
+        return array($this->format_commit($commit_row, $committer));
     }
 
     private function format_commit($commit_row, $committer_row) {