mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 00:49:33 +02:00
bitbake: toastergui: project page - consistent error display
We modify the project page to provide a consistent view of the build errors. The display is now similar with the managed_mrb_section and links point to the buildrequest detail view. [YOCTO #7188] (Bitbake rev: d37eaaa48a63a137ded25a14911c97a5ae861ff6) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
daaafb4b5b
commit
c8714ec0cd
@@ -66,7 +66,10 @@ def _project_recent_build_list(prj):
|
||||
"id": x.pk,
|
||||
"targets" : map(lambda y: {"target": y.target, "task": y.task }, x.brtarget_set.all()),
|
||||
"status": x.get_state_display(),
|
||||
"errors": map(lambda y: {"type": y.errtype, "msg": y.errmsg, "tb": y.traceback}, x.brerror_set.exclude(errmsg__contains="Command Failed")),
|
||||
"errors": map(lambda y: {"type": y.errtype, "msg": y.errmsg, "tb": y.traceback}, x.brerror_set.all()),
|
||||
"updated": x.updated.strftime('%s')+"000",
|
||||
"command_time": (x.updated - x.created).total_seconds(),
|
||||
"br_page_url": reverse('buildrequestdetails', args=(x.project.id, x.pk) ),
|
||||
"build" : map( lambda y: {"id": y.pk,
|
||||
"status": y.get_outcome_display(),
|
||||
"completed_on" : y.completed_on.strftime('%s')+"000",
|
||||
|
||||
Reference in New Issue
Block a user