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

Unified Diff: appengine/findit/model/wf_analysis.py

Issue 1912483004: [Findit] Add failure type to dashboard. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: . Created 4 years, 8 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 | « appengine/findit/model/test/wf_analysis_test.py ('k') | appengine/findit/templates/list_analyses.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/model/wf_analysis.py
diff --git a/appengine/findit/model/wf_analysis.py b/appengine/findit/model/wf_analysis.py
index cce8b1714da12a39bb26a1bdc89674c397ce58c7..2838adea93c03ac67cdba4ecd42d05e4cdaf226f 100644
--- a/appengine/findit/model/wf_analysis.py
+++ b/appengine/findit/model/wf_analysis.py
@@ -111,6 +111,10 @@ class WfAnalysis(BaseBuildModel):
# for legacy data we just assume all of them are tests if not compile.
return failure_type.TEST
+ @property
+ def failure_type_str(self):
+ return failure_type.GetDescriptionForFailureType(self.failure_type)
+
# When the build cycle started.
build_start_time = ndb.DateTimeProperty(indexed=True)
# Whether the build cycle has completed.
« no previous file with comments | « appengine/findit/model/test/wf_analysis_test.py ('k') | appengine/findit/templates/list_analyses.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698