From c1c4e08eec88c59b506b9e8a4b04324f7eb7d889 Mon Sep 17 00:00:00 2001 From: "rniwa@webkit.org" Date: Mon, 11 Aug 2014 21:16:27 +0000 Subject: [PATCH] Report run id's in api/runs.php for the new dashboard UI https://bugs.webkit.org/show_bug.cgi?id=135813 Reviewed by Andreas Kling. Include run_id in the generated JSON. * public/api/runs.php: (fetch_runs_for_config): Don't sort results by time since that has been done in the front end for ages now. (format_run): git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172411 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- Websites/perf.webkit.org/ChangeLog | 13 +++++++++++++ Websites/perf.webkit.org/public/api/runs.php | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Websites/perf.webkit.org/ChangeLog b/Websites/perf.webkit.org/ChangeLog index eaaaa84..8daef64 100644 --- a/Websites/perf.webkit.org/ChangeLog +++ b/Websites/perf.webkit.org/ChangeLog @@ -1,5 +1,18 @@ 2014-08-11 Ryosuke Niwa + Report run id's in api/runs.php for the new dashboard UI + https://bugs.webkit.org/show_bug.cgi?id=135813 + + Reviewed by Andreas Kling. + + Include run_id in the generated JSON. + + * public/api/runs.php: + (fetch_runs_for_config): Don't sort results by time since that has been done in the front end for ages now. + (format_run): + +2014-08-11 Ryosuke Niwa + Merging platforms mixes baselines and targets into reported data https://bugs.webkit.org/show_bug.cgi?id=135260 diff --git a/Websites/perf.webkit.org/public/api/runs.php b/Websites/perf.webkit.org/public/api/runs.php index 76223c4..7494dc4 100644 --- a/Websites/perf.webkit.org/public/api/runs.php +++ b/Websites/perf.webkit.org/public/api/runs.php @@ -35,8 +35,7 @@ function fetch_runs_for_config($db, $config) { WHERE run_build = build_id AND run_config = $1 GROUP BY build_id, build_builder, build_number, build_time, build_latest_revision, run_id, run_config, run_build, run_iteration_count_cache, - run_mean_cache, run_sum_cache, run_square_sum_cache - ORDER BY build_latest_revision, build_time', array($config['config_id'])); + run_mean_cache, run_sum_cache, run_square_sum_cache', array($config['config_id'])); $formatted_runs = array(); if (!$raw_runs) @@ -67,6 +66,7 @@ function parse_revisions_array($postgres_array) { function format_run($run) { return array( + 'id' => intval($run['run_id']), 'mean' => floatval($run['run_mean_cache']), 'iterationCount' => intval($run['run_iteration_count_cache']), 'sum' => floatval($run['run_sum_cache']), -- 1.8.3.1