diff options
author | Elliot Smith <elliot.smith@intel.com> | 2016-01-18 14:23:55 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-10 13:29:20 +0000 |
commit | efbffe3c298d57af34324639f2208e35735758a9 (patch) | |
tree | 211cb0601b9b1ed6fe6ad220cb03818080a3d725 /bitbake/lib/toaster/toastergui/views.py | |
parent | b51478582f17bc9c43a92232e41246aec3e89f36 (diff) | |
download | poky-efbffe3c298d57af34324639f2208e35735758a9.tar.gz |
bitbake: toaster: move recent builds query to model
The progress updater for the recent builds section makes a JSON
call to the project view URL to get progress for each build.
However, conversion of the builds pages to ToasterTable broke this,
as the JSON response no longer contained the data necessary to
populate the progress bars.
Move the recent builds query to the Build model, so that it is
accessible to the ToasterTables using it ("project builds" and
"all builds"), as well as to the "project" view.
Modify the code in the recent builds template to use the slightly
different objects returned by the recent builds query on Build.
(Bitbake rev: 5189252635ddc7b90c9a43aaed9f196c31e1dcad)
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 9ad2746881..da73d43c4f 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -2008,7 +2008,7 @@ if True: | |||
2008 | "completedbuilds": Build.objects.exclude(outcome = Build.IN_PROGRESS).filter(project_id = pid), | 2008 | "completedbuilds": Build.objects.exclude(outcome = Build.IN_PROGRESS).filter(project_id = pid), |
2009 | "prj" : {"name": prj.name, }, | 2009 | "prj" : {"name": prj.name, }, |
2010 | "buildrequests" : prj.build_set.filter(outcome=Build.IN_PROGRESS), | 2010 | "buildrequests" : prj.build_set.filter(outcome=Build.IN_PROGRESS), |
2011 | #"builds" : _project_recent_build_list(prj), | 2011 | "builds" : Build.get_recent(prj), |
2012 | "layers" : map(lambda x: { | 2012 | "layers" : map(lambda x: { |
2013 | "id": x.layercommit.pk, | 2013 | "id": x.layercommit.pk, |
2014 | "orderid": x.pk, | 2014 | "orderid": x.pk, |