| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |