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

Side by Side Diff: appengine/findit/handlers/swarming_task.py

Issue 2344443005: [Findit] Factoring the gitiles (etc) stuff out into its own directory (Closed)
Patch Set: reordering imports Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from common.base_handler import BaseHandler 5 from common.base_handler import BaseHandler, Permission
6 from common.base_handler import Permission
7 from handlers import handlers_util 6 from handlers import handlers_util
8 from waterfall import buildbot 7 from waterfall import buildbot
9 8
10 9
11 class SwarmingTask(BaseHandler): 10 class SwarmingTask(BaseHandler):
12 PERMISSION_LEVEL = Permission.ANYONE 11 PERMISSION_LEVEL = Permission.ANYONE
13 12
14 def HandleGet(self): 13 def HandleGet(self):
15 """Get the information about swarming tasks for failed steps.""" 14 """Get the information about swarming tasks for failed steps."""
16 url = self.request.get('url').strip() 15 url = self.request.get('url').strip()
17 build_keys = buildbot.ParseBuildUrl(url) 16 build_keys = buildbot.ParseBuildUrl(url)
18 17
19 if not build_keys: # pragma: no cover 18 if not build_keys: # pragma: no cover
20 return {'data': {}} 19 return {'data': {}}
21 20
22 data = handlers_util.GetSwarmingTaskInfo(*build_keys) 21 data = handlers_util.GetSwarmingTaskInfo(*build_keys)
23 return {'data': data} 22 return {'data': data}
24 23
25 def HandlePost(self): # pragma: no cover 24 def HandlePost(self): # pragma: no cover
26 return self.HandleGet() 25 return self.HandleGet()
OLDNEW
« no previous file with comments | « appengine/findit/handlers/process_failure_analysis_requests.py ('k') | appengine/findit/handlers/test/help_triage_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698