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

Unified Diff: dashboard/dashboard/pinpoint/models/attempt.py

Issue 3001163002: Pinpoint - Surface info from executions for display in UI. (Closed)
Patch Set: Created 3 years, 4 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: dashboard/dashboard/pinpoint/models/attempt.py
diff --git a/dashboard/dashboard/pinpoint/models/attempt.py b/dashboard/dashboard/pinpoint/models/attempt.py
index f40f5d9713a65614a6233afd6089cc0edd4d72c7..6bae3295caaa3e3fdfa5eda9e57126847e1741f1 100644
--- a/dashboard/dashboard/pinpoint/models/attempt.py
+++ b/dashboard/dashboard/pinpoint/models/attempt.py
@@ -48,6 +48,10 @@ class Attempt(object):
return dict((quest, execution.result_values)
for quest, execution in zip(self._quests, self._executions))
+ def AsDictPerQuest(self):
dtu 2017/08/21 23:52:52 nit: put methods after properties
dtu 2017/08/21 23:52:52 It would be more consistent to provide an Attempt.
shatch 2017/08/22 01:23:55 Done.
shatch 2017/08/22 01:23:55 Done.
+ return dict((quest, execution.AsDict())
+ for quest, execution in zip(self._quests, self._executions))
+
@property
def _last_execution(self):
return self._executions[-1]
« no previous file with comments | « no previous file | dashboard/dashboard/pinpoint/models/job.py » ('j') | dashboard/dashboard/pinpoint/models/job.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698