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

login
register
mail settings
Submitter Alexandru DAMIAN
Date March 24, 2014, 6:37 p.m.
Message ID <3d69f5cdf154df83e7a487e1b609bb8f7b5b6df2.1395686148.git.alexandru.damian@intel.com>
Download mbox | patch
Permalink /patch/69081/
State New
Headers show

Comments

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

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):
                 {
                     'name':'Size',
                     '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):
             {
                 'name':'Size',
                 '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,
             },