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

Side by Side Diff: appengine/findit/handlers/flake/check_flake.py

Issue 2480593002: [Predator] Move time_util from common/ to lib/, split code review related part to code_review_util (Closed)
Patch Set: Rebase and fix nits. 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 google.appengine.api import users 5 from google.appengine.api import users
6 6
7 from common import auth_util 7 from common import auth_util
8 from common import time_util
9 from common.base_handler import BaseHandler 8 from common.base_handler import BaseHandler
10 from common.base_handler import Permission 9 from common.base_handler import Permission
10 from lib import time_util
11 from model import analysis_status 11 from model import analysis_status
12 from model import triage_status 12 from model import triage_status
13 from model.flake.flake_analysis_request import FlakeAnalysisRequest 13 from model.flake.flake_analysis_request import FlakeAnalysisRequest
14 from model.flake.master_flake_analysis import MasterFlakeAnalysis 14 from model.flake.master_flake_analysis import MasterFlakeAnalysis
15 from waterfall.flake import flake_analysis_service 15 from waterfall.flake import flake_analysis_service
16 from waterfall.flake import triggering_sources 16 from waterfall.flake import triggering_sources
17 17
18 18
19 def _GetSuspectedFlakeAnalysisAndTriageResult(analysis): 19 def _GetSuspectedFlakeAnalysisAndTriageResult(analysis):
20 if analysis.suspected_flake_build_number is not None: 20 if analysis.suspected_flake_build_number is not None:
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 coordinates.append([data_point.build_number, data_point.pass_rate]) 166 coordinates.append([data_point.build_number, data_point.pass_rate])
167 167
168 # Order by build number from earliest to latest. 168 # Order by build number from earliest to latest.
169 coordinates.sort(key=lambda x: x[0]) 169 coordinates.sort(key=lambda x: x[0])
170 170
171 data['pass_rates'] = coordinates 171 data['pass_rates'] = coordinates
172 return { 172 return {
173 'template': 'flake/result.html', 173 'template': 'flake/result.html',
174 'data': data 174 'data': data
175 } 175 }
OLDNEW
« no previous file with comments | « appengine/findit/handlers/crash/triage_fracas_analysis.py ('k') | appengine/findit/handlers/flake/list_flakes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698