diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-01-16 12:22:21 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-27 21:01:04 +0000 |
commit | b0b1acbe623c1c126af2abc1cc332d993dcaf15c (patch) | |
tree | 594c00eebae09944d4f52f23d6b36cbe09ff5640 /bitbake/lib/toaster/orm/models.py | |
parent | d27c7f26d39b66c41c1b09d6b5875e957045355d (diff) | |
download | poky-b0b1acbe623c1c126af2abc1cc332d993dcaf15c.tar.gz |
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 <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 3a4f2fb884..81dae48e10 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -43,6 +43,7 @@ class Build(models.Model): | |||
43 | distro_version = models.CharField(max_length=100) | 43 | distro_version = models.CharField(max_length=100) |
44 | started_on = models.DateTimeField() | 44 | started_on = models.DateTimeField() |
45 | completed_on = models.DateTimeField() | 45 | completed_on = models.DateTimeField() |
46 | timespent = models.IntegerField(default=0) | ||
46 | outcome = models.IntegerField(choices=BUILD_OUTCOME, default=IN_PROGRESS) | 47 | outcome = models.IntegerField(choices=BUILD_OUTCOME, default=IN_PROGRESS) |
47 | errors_no = models.IntegerField(default=0) | 48 | errors_no = models.IntegerField(default=0) |
48 | warnings_no = models.IntegerField(default=0) | 49 | warnings_no = models.IntegerField(default=0) |
@@ -231,7 +232,7 @@ class Layer_Version(models.Model): | |||
231 | 232 | ||
232 | class Variable(models.Model): | 233 | class Variable(models.Model): |
233 | search_allowed_fields = ['variable_name', 'variable_value', | 234 | search_allowed_fields = ['variable_name', 'variable_value', |
234 | 'variablehistory__file_name', "description"] | 235 | 'vhistory__file_name', "description"] |
235 | build = models.ForeignKey(Build, related_name='variable_build') | 236 | build = models.ForeignKey(Build, related_name='variable_build') |
236 | variable_name = models.CharField(max_length=100) | 237 | variable_name = models.CharField(max_length=100) |
237 | variable_value = models.TextField(blank=True) | 238 | variable_value = models.TextField(blank=True) |