From 65e8bde9f1e055e4d01dd13b72c9c88c6447dcdb Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Thu, 15 Oct 2015 15:45:14 +0300 Subject: bitbake: 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] (Bitbake rev: 59197320bdcefddf06084e871f1b5b21b21cbb63) Signed-off-by: Elliot Smith Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- bitbake/lib/toaster/orm/models.py | 4 -- .../toastergui/templates/builddashboard.html | 45 ++-------------------- 2 files changed, 4 insertions(+), 45 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 6ca45e0997..a784b1bf7a 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/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/bitbake/lib/toaster/toastergui/templates/builddashboard.html b/bitbake/lib/toaster/toastergui/templates/builddashboard.html index fc6cae6f29..75ca8bc2c0 100644 --- a/bitbake/lib/toaster/toastergui/templates/builddashboard.html +++ b/bitbake/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 %} -