[bitbake-devel,05/18] toaster: fix package size 1st sort order

Submitted by Alexandru DAMIAN on March 24, 2014, 6:37 p.m. | Patch ID: 69081


Message ID 3d69f5cdf154df83e7a487e1b609bb8f7b5b6df2.1395686148.git.alexandru.damian@intel.com
State New
Headers show

Commit Message

Alexandru DAMIAN March 24, 2014, 6:37 p.m.
From: Dave Lerner <dave.lerner@windriver.com>

[YOCTO #5914]

On the pages with tables listing packages with a size column, change the
first click sort order on the size column so that packages are sorted in
decreasing order instead of increasing order.  It is more likely that
the user sorts this page data by size because the user is interested in
those packages consuming the most disk space.

Signed-off-by: Dave Lerner <dave.lerner@windriver.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 a4bd9d6..3f6b93e 100644
--- a/lib/toaster/toastergui/views.py
+++ b/lib/toaster/toastergui/views.py
@@ -448,7 +448,7 @@  def target(request, build_id, target_id):
                     'qhelp':'The size of the package',
-                    'orderfield': _get_toggle_order(request, "size"),
+                    'orderfield': _get_toggle_order(request, "size", True),
                     'ordericon':_get_toggle_order_icon(request, "size"),
                     'clclass': 'package_size',
                     'hidden' : 0,
@@ -1128,7 +1128,7 @@  def bpackage(request, build_id):
                 'qhelp':'The size of the package',
-                'orderfield': _get_toggle_order(request, "size"),
+                'orderfield': _get_toggle_order(request, "size", True),
                 'ordericon':_get_toggle_order_icon(request, "size"),
                 'clclass': 'size', 'hidden': 0,