/api/test/runs/chart expires on perf-o-matic
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Jul 2012 06:19:17 +0000 (06:19 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Jul 2012 06:19:17 +0000 (06:19 +0000)
https://bugs.webkit.org/show_bug.cgi?id=92714

Reviewed by Hajime Morita.

Don't update the entire JSON while generating the dashboard images.
This is a bug and not doing this will reduce the server load significantly.

* Websites/webkit-perf.appspot.com/controller.py:
(RunsChartHandler.post):

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

ChangeLog
Websites/webkit-perf.appspot.com/controller.py

index cbc669a..1cd4520 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2012-07-30  Ryosuke Niwa  <rniwa@webkit.org>
+
+        /api/test/runs/chart expires on perf-o-matic
+        https://bugs.webkit.org/show_bug.cgi?id=92714
+
+        Reviewed by Hajime Morita.
+
+        Don't update the entire JSON while generating the dashboard images.
+        This is a bug and not doing this will reduce the server load significantly.
+
+        * Websites/webkit-perf.appspot.com/controller.py:
+        (RunsChartHandler.post):
+
 2012-07-30  Dominik Röttsches  <dominik.rottsches@intel.com>
 
         Avoid Assertion Failure in HarfBuzzRun::characterIndexForXPosition
index 1d7e0d0..d3d3aa1 100644 (file)
@@ -144,7 +144,7 @@ class RunsChartHandler(webapp2.RequestHandler):
         assert branch
         assert platform
         assert test
-        params = Runs.update_or_insert(branch, platform, test).chart_params(display_days)
+        params = Runs.get_by_objects(branch, platform, test).chart_params(display_days)
         if not params:
             return
         dashboard_chart_file = urllib.urlopen('http://chart.googleapis.com/chart', urllib.urlencode(params))