From: Elliot Smith Date: Thu, 15 Oct 2015 12:45:14 +0000 (+0300) Subject: toaster: Remove Toaster exceptions section of build dashboard X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59197320bdcefddf06084e871f1b5b21b21cbb63;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py index 6ca45e0997d..a784b1bf7aa 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 fc6cae6f29a..75ca8bc2c0f 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 %} -