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

Side by Side Diff: appengine/findit/model/crash/crash_config.py

Issue 2488113005: [Findit] Re-org code. (Closed)
Patch Set: 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 """Findit for crash (ClusterFuzz & Fracas/Chromecrash) configuration.""" 5 """Findit for crash (ClusterFuzz & Fracas/Chromecrash) configuration."""
6 6
7 import re 7 import re
8 8
9 from google.appengine.ext import ndb 9 from google.appengine.ext import ndb
10 10
11 from crash.type_enums import CrashClient 11 from crash.type_enums import CrashClient
12 from model.versioned_config import VersionedConfig 12 from gae_libs.model.versioned_config import VersionedConfig
13 13
14 14
15 class CrashConfig(VersionedConfig): 15 class CrashConfig(VersionedConfig):
chanli 2016/11/10 23:04:04 This module should be moved to predator, right?
stgao 2016/11/14 23:30:51 We will move in separate CLs later.
16 """Global configuration of settings for processing Chrome crashes.""" 16 """Global configuration of settings for processing Chrome crashes."""
17 17
18 def __init__(self, *args, **kargs): 18 def __init__(self, *args, **kargs):
19 super(CrashConfig, self).__init__(*args, **kargs) 19 super(CrashConfig, self).__init__(*args, **kargs)
20 self.cached_component_classifier = None 20 self.cached_component_classifier = None
21 21
22 # An example of fracas-specific parameters: 22 # An example of fracas-specific parameters:
23 # { 23 # {
24 # "analysis_result_pubsub_topic": "projects/project-name/topics/name", 24 # "analysis_result_pubsub_topic": "projects/project-name/topics/name",
25 # "supported_platform_list_by_channel": { 25 # "supported_platform_list_by_channel": {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 """Gets client specific config using client_id.""" 131 """Gets client specific config using client_id."""
132 if client_id == CrashClient.FRACAS: 132 if client_id == CrashClient.FRACAS:
133 return self.fracas 133 return self.fracas
134 elif client_id == CrashClient.CRACAS: # pragma: no cover. 134 elif client_id == CrashClient.CRACAS: # pragma: no cover.
135 return self.cracas 135 return self.cracas
136 elif client_id == CrashClient.CLUSTERFUZZ: # pragma: no cover. 136 elif client_id == CrashClient.CLUSTERFUZZ: # pragma: no cover.
137 # TODO(katesonia): Add crash config of clusterfuzz. 137 # TODO(katesonia): Add crash config of clusterfuzz.
138 return None 138 return None
139 139
140 return None 140 return None
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698