From b0b1acbe623c1c126af2abc1cc332d993dcaf15c Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Thu, 16 Jan 2014 12:22:21 +0000 Subject: bitbake: toaster: Toaster GUI Build and Dashboard pages fixes THis is a large set of fixes for the generic table, Build and Dashboard pages. Among the fixes: * the table remembers which columns to show across refreshes, based on saving the settings in a cookie * added column timespent for a build which is a denormalization of the completed_on - started_on information due to limits in computing datetime differences in the SQL engine * fixed formatting of the time differences * various sorting header links fixed * correct error and warning CSS classes applied to the respective rows * fixes multiple divide-by-zero error in displaying duration estimations (Bitbake rev: 61e3dee55ac577fce1c0ae0fe7e0d3cf644e8ae6) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/buildinfohelper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb') diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index b90e915a1a..3b4d7c9c10 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py @@ -75,6 +75,7 @@ class ORMWrapper(object): outcome = Build.FAILED build.completed_on = datetime.datetime.now() + build.timespent = int((build.completed_on - build.started_on).total_seconds()) build.errors_no = errors build.warnings_no = warnings build.outcome = outcome @@ -387,7 +388,7 @@ class BuildInfoHelper(object): for i in string.split(): if i not in ret: ret.append(i) - return " ".join(ret) + return " ".join(sorted(ret)) ################################ -- cgit v1.2.3-54-g00ecf