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

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

Issue 3001163002: Pinpoint - Surface info from executions for display in UI. (Closed)
Patch Set: Addressed comments. 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..7def5a0d907e41c5c79cf990806187c7f8c575b2 100644
--- a/dashboard/dashboard/pinpoint/models/attempt.py
+++ b/dashboard/dashboard/pinpoint/models/attempt.py
@@ -52,6 +52,9 @@ class Attempt(object):
def _last_execution(self):
return self._executions[-1]
+ def AsDict(self):
+ return [e.AsDict() for e in self._executions]
dtu 2017/08/22 16:46:19 {'executions': [foo]}
shatch 2017/08/22 17:01:20 Done.
+
def ScheduleWork(self):
"""Run this Attempt and update its status."""
assert not self.completed
« no previous file with comments | « no previous file | dashboard/dashboard/pinpoint/models/job.py » ('j') | dashboard/dashboard/pinpoint/models/quest/execution.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698