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

Unified Diff: dashboard/dashboard/pinpoint/models/job.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
Index: dashboard/dashboard/pinpoint/models/job.py
diff --git a/dashboard/dashboard/pinpoint/models/job.py b/dashboard/dashboard/pinpoint/models/job.py
index 69ca196c442fff73a21cddb34a52937f91fcfd73..d7055a2d5e80b543587b3f69da9d81b15c871136 100644
--- a/dashboard/dashboard/pinpoint/models/job.py
+++ b/dashboard/dashboard/pinpoint/models/job.py
@@ -270,11 +270,16 @@ class _JobState(object):
result_values.append(change_result_values)
+ attempts = []
+ for c in self._changes:
+ attempts.append([a.AsDict() for a in self._attempts[c]])
+
return {
'quests': map(str, self._quests),
'changes': [change.AsDict() for change in self._changes],
'comparisons': comparisons,
'result_values': result_values,
+ 'attempts': attempts,
}
def _Compare(self, change_a, change_b):
« no previous file with comments | « dashboard/dashboard/pinpoint/models/attempt.py ('k') | dashboard/dashboard/pinpoint/models/quest/execution.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698