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

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

Issue 3001163002: Pinpoint - Surface info from executions for display in UI. (Closed)
Patch Set: Rebase again. 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
« no previous file with comments | « no previous file | dashboard/dashboard/pinpoint/models/job.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a8aeaad33b849e985282ff2aeea3dd0614be72de 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 {'executions': [e.AsDict() for e in self._executions]}
+
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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698