perf-o-matic should include unit in runs JSON responses
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Apr 2012 19:32:27 +0000 (19:32 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Apr 2012 19:32:27 +0000 (19:32 +0000)
commit949b513bc2ee1dd8c50bd43ad901ea05a1f9b4a0
tree446db54593a04a317b6344e703ee813fb64f5a5d
parentc1da4aec685cfc95aaa6bbcffe9ea85e45ed431a
perf-o-matic should include unit in runs JSON responses
https://bugs.webkit.org/show_bug.cgi?id=83294

Reviewed by Tony Chang.

This is a follow up to r112829. Report the unit in /api/test/runs so that the frontend can show it.
Fixed a bug in Test.update_or_insert that it didn't store the unit when it first created the Test object.

Also increment perf-o-matic's version to 18.

* Websites/webkit-perf.appspot.com/app.yaml: Incremented the version.
* Websites/webkit-perf.appspot.com/models.py:
(Test.update_or_insert.execute): Store unit when creating a test.
(Runs.to_json): Include unit.
* Websites/webkit-perf.appspot.com/models_unittest.py: Added tests.
(TestModelTests.test_update_or_insert_with_unit):
(RunsTest.test_to_json_without_results):
(RunsTest.test_to_json_with_results):
(RunsTest.test_to_json_with_unit):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@113356 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
Websites/webkit-perf.appspot.com/app.yaml
Websites/webkit-perf.appspot.com/models.py
Websites/webkit-perf.appspot.com/models_unittest.py