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

Unified Diff: appengine/findit/crash/findit_for_chromecrash.py

Issue 2400283003: [Findit] Add skeleton code for delta test script. (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 side-by-side diff with in-line comments
Download patch
Index: appengine/findit/crash/findit_for_chromecrash.py
diff --git a/appengine/findit/crash/findit_for_chromecrash.py b/appengine/findit/crash/findit_for_chromecrash.py
index f375bafd35fc8b5dc3a38a2baf86d9e3df3c7197..329845e0f5139205d59e23336aa1bcb4d5ef613a 100644
--- a/appengine/findit/crash/findit_for_chromecrash.py
+++ b/appengine/findit/crash/findit_for_chromecrash.py
@@ -24,6 +24,10 @@ _DEFAULT_TOP_N = 7
class Culprit(namedtuple('Culprit',
['project', 'components', 'cls', 'regression_range'])):
+ @property
+ def fields(self):
wrengr 2016/10/11 22:57:43 What's the purpose of this? Since _fields is a pri
Sharu Jiang 2016/10/12 01:18:20 This is used in delta test, and later may used to
wrengr 2016/10/12 20:15:17 I still don't understand. Why can't delta use _fie
Sharu Jiang 2016/10/12 22:58:27 shouldn't _fields supposed to be private and not u
wrengr 2016/10/24 18:09:06 (FWIW, whenever I talk about "client code" or "cli
stgao 2016/10/24 18:17:26 +1 for Wren's suggestion here
Sharu Jiang 2016/10/24 18:50:20 I agree on what you said about the serializing cul
wrengr 2016/10/24 21:22:56 Things with a single underscore are generally "pro
+ return self._fields
+
# TODO(wrengr): better name for this method.
def ToDicts(self):
"""Convert this object to a pair of anonymous dicts for JSON.

Powered by Google App Engine
This is Rietveld 408576698