Chromium Code Reviews| 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 from google.appengine.ext import ndb | |
| 6 | |
| 7 from model.base_suspected_cl import BaseSuspectedCL | |
| 8 | |
| 9 | |
| 10 class FlakeSuspectedCL(BaseSuspectedCL): | |
| 11 """Represents information about a flake suspected cl.""" | |
|
stgao
2017/01/05 21:28:03
"a suspected CL for a flake"?
As we run try job t
lijeffrey
2017/01/06 05:18:16
Renamed FlakeCulprit etc.
| |
| 12 | |
| 13 # Triage status for whether the CL is correct or not. | |
| 14 status = ndb.IntegerProperty(indexed=True, default=None) | |
| 15 | |
| 16 # Url to the code review associated with this change. | |
| 17 code_review_url = ndb.StringProperty(indexed=False) | |
|
stgao
2017/01/05 21:28:03
Based on the code below, it seems not necessarily
lijeffrey
2017/01/06 05:18:16
Renamed 'url' to maintain flexibility depending wh
| |
| 18 | |
| 19 # Arguments number differs from overridden method - pylint: disable=W0221 | |
| 20 @classmethod | |
| 21 def Create(cls, repo_name, revision, commit_position, | |
| 22 code_review_url): # pragma: no cover | |
| 23 instance = super(FlakeSuspectedCL, cls).Create( | |
| 24 repo_name, revision, commit_position) | |
| 25 instance.code_review_url = code_review_url | |
| 26 return instance | |
| OLD | NEW |