[bitbake-devel,15/19] toaster: Fix Recipe sorting in tasks table

Submitted by Alexandru DAMIAN on March 14, 2014, 5:58 p.m. | Patch ID: 68663


Message ID b60a473aeca1e18c49ef6db074d3bdafa4104c3d.1394819783.git.alexandru.damian@intel.com
State New
Headers show

Commit Message

Alexandru DAMIAN March 14, 2014, 5:58 p.m.
From: Belen Barros Pena <belen.barros.pena@intel.com>

In the tasks table and the other tables derived from it
(Time, CPU usage and Disk I/O) sorting by Recipe was not
working correctly. This change fixes the problem by
specifying use of the recipe name to sort.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
 lib/toaster/toastergui/views.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py
index bf7f2c8..ddeb992 100644
--- a/lib/toaster/toastergui/views.py
+++ b/lib/toaster/toastergui/views.py
@@ -518,8 +518,8 @@  def tasks_common(request, build_id, variant):
         'qhelp':'The name of the recipe to which each task applies',
-        'orderfield': _get_toggle_order(request, "recipe"),
-        'ordericon':_get_toggle_order_icon(request, "recipe"),
+        'orderfield': _get_toggle_order(request, "recipe__name"),
+        'ordericon':_get_toggle_order_icon(request, "recipe__name"),
         'name':'Recipe version',