Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Unified Diff: dashboard/dashboard/speed_releasing_data.py

Issue 2588203002: Added in a revision picker with dummy data (Closed)
Patch Set: figuring out what is on this branch Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dashboard/dashboard/speed_releasing.py ('k') | dashboard/dashboard/static/autocomplete.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/speed_releasing_data.py
diff --git a/dashboard/dashboard/speed_releasing_data.py b/dashboard/dashboard/speed_releasing_data.py
new file mode 100644
index 0000000000000000000000000000000000000000..abdb419e6893c66bd826cea8390795c687d1d4a7
--- /dev/null
+++ b/dashboard/dashboard/speed_releasing_data.py
@@ -0,0 +1,29 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import json
+
+from google.appengine.ext import ndb
+from google.appengine.ext.ndb import model
+
+from dashboard.common import request_handler
+from dashboard.common import utils
+from dashboard.models import anomaly
+from dashboard.models import graph_data
+
+class SpeedReleasingDataHandler(request_handler.RequestHandler):
+
+ def post(self):
+ test_path = self.request.get('test_path')
+ print test_path
+ test = utils.OldStyleTestKey(utils.TestKey(test_path))
+ print test
+ query = graph_data.Row.query(graph_data.Row.parent_test==test)
+ query.filter(graph_data.Row.revision == '412460')
+ #rows = ndb.get_multi(test_keys)
+ rows = query.fetch(limit = 1)
+ print rows
+ self.response.out.write(json.dumps({
+ 'value': rows[0].value
+ }))
« no previous file with comments | « dashboard/dashboard/speed_releasing.py ('k') | dashboard/dashboard/static/autocomplete.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698