From 59197320bdcefddf06084e871f1b5b21b21cbb63 Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Thu, 15 Oct 2015 15:45:14 +0300 Subject: toaster: Remove Toaster exceptions section of build dashboard Fatal build errors were displayed as exceptions, and highlighted with less severity than they deserved. Roll back to treating Toaster exceptions as errors by removing the toaster_exceptions member on Build objects and displaying EXCEPTION events in the errors section on the dashboard. [YOCTO #8320] Signed-off-by: Elliot Smith Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- lib/toaster/orm/models.py | 4 -- .../toastergui/templates/builddashboard.html | 45 ++-------------------- 2 files changed, 4 insertions(+), 45 deletions(-) diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py index 6ca45e099..a784b1bf7 100644 --- a/lib/toaster/orm/models.py +++ b/lib/toaster/orm/models.py @@ -347,10 +347,6 @@ class Build(models.Model): def get_outcome_text(self): return Build.BUILD_OUTCOME[int(self.outcome)][1] - @property - def toaster_exceptions(self): - return self.logmessage_set.filter(level=LogMessage.EXCEPTION) - @property def errors(self): return (self.logmessage_set.filter(level=LogMessage.ERROR) | diff --git a/lib/toaster/toastergui/templates/builddashboard.html b/lib/toaster/toastergui/templates/builddashboard.html index fc6cae6f2..75ca8bc2c 100644 --- a/lib/toaster/toastergui/templates/builddashboard.html +++ b/lib/toaster/toastergui/templates/builddashboard.html @@ -44,14 +44,6 @@ {%endif%} - {% if build.toaster_exceptions.count > 0 %} - - {% endif %} @@ -69,12 +61,10 @@
- {% for error in logmessages %} - {% if error.level == 2 or error.level == 3 %} -
-
{{error.message}}
-
- {% endif %} + {% for error in build.errors %} +
+
{{error.message}}
+
{% endfor %}
@@ -271,33 +261,6 @@
{% endif %} - -{% if build.toaster_exceptions.count > 0 %} -
-
- -
-
-
- {% for exception in build.toaster_exceptions %} -
-
{{exception.message}}
-
- {% endfor %} -
-
-
-
-
-{% endif %} -