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

Side by Side Diff: appengine/findit/waterfall/flake/flake_analysis_service.py

Issue 2397603002: [Findit] Cloud Endpoints API to receive reports on flakes. (Closed)
Patch Set: Created 4 years, 2 months 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698