generic-poky/bitbake/lib/toaster/orm
Elliot Smith 3d11229aa1 bitbake: toaster: fix progress bar in MySQL environment
When using MySQL, the project builds info delivered by MySQL
differs from that delivered by SQLite: the former returns text
values from the enumeration for Build outcomes, while the latter
returns the integer value. This causes the progress bar JS to
break, as it is expecting outcome strings.

Modify the recent_build() method to include an outcomeText property
for each Build object, then use this in the conditionals in the
progress bar JS.

[YOCTO #9498]

(Bitbake rev: 7ac374adf1cc70173ff6cc492bc078bba1cf500b)

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-13 17:45:49 +01:00
..
management bitbake: toaster: update orm models for layerindex compatibility 2014-08-29 13:56:49 +01:00
migrations bitbake: toaster: models Add cancelled state to build outcome 2016-04-06 23:10:29 +01:00
__init__.py bitbake: toaster: add toaster code to bitbake 2013-10-18 11:13:49 +01:00
models.py bitbake: toaster: fix progress bar in MySQL environment 2016-05-13 17:45:49 +01:00
tests.py bitbake: toaster: test get_alldeps API 2015-10-12 14:38:56 +01:00