From 70c4eb8d3acaad267ee943ebfba793f9cc1c5ee6 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Wed, 17 Jun 2015 17:30:34 +0100 Subject: bitbake: toaster: refactor build model We remove the "timespent", "errors_no" and "warnings_no" fields in favor of computing the needed values at runtime. This prevents inconsistencies in the UI. Also removeing all references to BuildRequests from the interface - all build details now display in the build dashboard. Minor fixes related to data logging. (Bitbake rev: 44f37394ed3e4ca02f940be172fe4395b0ee0f7d) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- .../toastergui/templates/projectbuilds.html | 29 +++++++++------------- 1 file changed, 12 insertions(+), 17 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/templates/projectbuilds.html') diff --git a/bitbake/lib/toaster/toastergui/templates/projectbuilds.html b/bitbake/lib/toaster/toastergui/templates/projectbuilds.html index 896c3b5af7..ac87d8c166 100644 --- a/bitbake/lib/toaster/toastergui/templates/projectbuilds.html +++ b/bitbake/lib/toaster/toastergui/templates/projectbuilds.html @@ -79,25 +79,20 @@ {% query build.task_build outcome=4 order__gt=0 as exectask%} {% if exectask.count == 1 %} {{exectask.0.recipe.name}}.{{exectask.0.task_name}} - {% if MANAGED and build.project %} - {% endif %} {% elif exectask.count > 1%} {{exectask.count}} task{{exectask.count|pluralize}} {%endif%} - - {% if build.errors_no %} - {{build.errors_no}} error{{build.errors_no|pluralize}} + + {% if build.errors.count %} + {{build.errors.count}} error{{build.errors.count|pluralize}} {%endif%} - {% if build.warnings_no %}{{build.warnings_no}} warning{{build.warnings_no|pluralize}}{%endif%} - {{build.timespent|sectohms}} - {% if not MANAGED or not build.project %} - {{build.cooker_log_path}} - {% endif %} + {% if build.warnings.count %}{{build.warnings.count}} warning{{build.warnings.count|pluralize}}{%endif%} + {{build.timespent_seconds|sectohms}} {% if build.outcome == build.SUCCEEDED %} {{fstypes|get_dict_value:build.id}} @@ -113,23 +108,23 @@ {% if br.state == br.REQ_FAILED %}{%else%}FIXME_build_request_state{%endif%} - 1%}title="Targets: {%for target in br.brtarget_set.all%}{{target.target}} {%endfor%}"{%endif%}>{{br.brtarget_set.all.0.target}} {%if br.brtarget_set.all.count > 1%}(+ {{br.brtarget_set.all.count|add:"-1"}}){%endif%} + 1%}title="Targets: {%for target in br.brtarget_set.all%}{{target.target}} {%endfor%}"{%endif%}>{{br.brtarget_set.all.0.target}} {%if br.brtarget_set.all.count > 1%}(+ {{br.brtarget_set.all.count|add:"-1"}}){%endif%} - {{br.machine}} + {{br.machine}} - {{br.created|date:"d/m/y H:i"}} + {{br.created|date:"d/m/y H:i"}} - {{br.updated|date:"d/m/y H:i"}} + {{br.updated|date:"d/m/y H:i"}} - - {{br.brerror_set.all.count}} error{{br.brerror_set.all.count|pluralize}} + + {{br.brerror_set.all.count}} error{{br.brerror_set.all.count|pluralize}} - + {{br.timespent.total_seconds|sectohms}} -- cgit v1.2.3-54-g00ecf