| 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
|
| + }))
|
|
|