| OLD | NEW |
| (Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 |
| 6 def ScheduleAnalysisForFlake( |
| 7 _request, _user_email, _is_admin): # pragma: no cover. |
| 8 """Schedules an analysis on the flake in the given request if needed. |
| 9 |
| 10 Args: |
| 11 request (FlakeAnalysisRequest): The request to analyze a flake. |
| 12 user_email (str): The email of the requester. |
| 13 is_admin (bool): Whether the requester is an admin. |
| 14 |
| 15 Returns: |
| 16 An instance of MasterFlakeAnalysis if an analysis was scheduled; otherwise |
| 17 None if no analysis was scheduled before and the user has no permission to. |
| 18 """ |
| 19 # TODO (stgao): hook up with analysis. |
| 20 return False |
| OLD | NEW |