Skip to contentSkip to conversation

bitbake: toaster: Fix the orderkey to match the column

PATCH In review Michael Wood 3 participants 4 messages Mar 11, 2015 – Mar 12, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake: toaster: Fix the orderkey to match the column

If the orderkey doesn't map to the current sort value then when hiding the column the sort doesn't get removed.

[YOCTO #7262]

---
 bitbake/lib/toaster/toastergui/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/views.py +1 -1
index 8034cfc..66a4b77 100755
@@ -1396,7 +1396,7 @@ def bpackage(request, build_id):
                 'qhelp':'The Git branch of the layer providing the recipe that builds the package',
                 'orderfield': _get_toggle_order(request, "recipe__layer_version__branch"),
                 'ordericon':_get_toggle_order_icon(request, "recipe__layer_version__branch"),
-                'orderkey' : 'recipe__layer_version__layer__branch',
+                'orderkey' : 'recipe__layer_version__branch',
                 'clclass': 'recipe__layer_version__branch', 'hidden': 1,
             },
             {
Signature · 1 line
2.1.0
#1 lore raw

Taken for submission,

Thank you,
Alex

Quoted 36 lines · Michael Wood

If the orderkey doesn't map to the current sort value then when hiding the column the sort doesn't get removed.

[YOCTO #7262]

---
 bitbake/lib/toaster/toastergui/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/views.py +1 -1
index 8034cfc..66a4b77 100755
@@ -1396,7 +1396,7 @@ def bpackage(request, build_id):
                 'qhelp':'The Git branch of the layer providing the recipe
 that builds the package',
                 'orderfield': _get_toggle_order(request,
 "recipe__layer_version__branch"),
                 'ordericon':_get_toggle_order_icon(request,
 "recipe__layer_version__branch"),
-                'orderkey' : 'recipe__layer_version__layer__branch',
+                'orderkey' : 'recipe__layer_version__branch',
                 'clclass': 'recipe__layer_version__branch', 'hidden': 1,
             },
             {

--
2.1.0

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Signature · 3 lines
Alex Damian
Yocto Project
SSG / OTC
#2 lore raw
In reply to Michael Wood
Quoted 2 lines · Michael Wood

If the orderkey doesn't map to the current sort value then when hiding the column the sort doesn't get removed.

This solves the problem for the packages built table only, but this is also happening in:

* The packages installed table (/build/<build_id>/target/<target_id>
* The tasks, time, cpu usage and disk io tables

Any chance the fix could also be applied to those?

Thanks!

Belén

Quoted 2 lines

[YOCTO #7262]

I think you meant 7198

Quoted 31 lines

---
bitbake/lib/toaster/toastergui/views.py | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/views.py +1 -1
index 8034cfc..66a4b77 100755
@@ -1396,7 +1396,7 @@ def bpackage(request, build_id):
                'qhelp':'The Git branch of the layer providing the
 recipe that builds the package',
                'orderfield': _get_toggle_order(request,
 "recipe__layer_version__branch"),
                'ordericon':_get_toggle_order_icon(request,
 "recipe__layer_version__branch"),
-                'orderkey' : 'recipe__layer_version__layer__branch',
+                'orderkey' : 'recipe__layer_version__branch',
                'clclass': 'recipe__layer_version__branch', 'hidden': 1,
            },
            {
Signature · 7 lines
2.1.0

-- 
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster
#3 lore raw

Can you please create a new patch for the other tables, this patch has already been submitted.

Alex

Quoted 61 lines · Belen
Quoted 2 lines · Michael Wood

If the orderkey doesn't map to the current sort value then when hiding the column the sort doesn't get removed.

This solves the problem for the packages built table only, but this is also happening in:

* The packages installed table (/build/<build_id>/target/<target_id>
* The tasks, time, cpu usage and disk io tables

Any chance the fix could also be applied to those?

Thanks!

Belén

Quoted 2 lines

[YOCTO #7262]

I think you meant 7198

Quoted 23 lines

---
bitbake/lib/toaster/toastergui/views.py | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/views.py +1 -1
index 8034cfc..66a4b77 100755
@@ -1396,7 +1396,7 @@ def bpackage(request, build_id):
                'qhelp':'The Git branch of the layer providing the
 recipe that builds the package',
                'orderfield': _get_toggle_order(request,
 "recipe__layer_version__branch"),
                'ordericon':_get_toggle_order_icon(request,
 "recipe__layer_version__branch"),
-                'orderkey' : 'recipe__layer_version__layer__branch',
+                'orderkey' : 'recipe__layer_version__branch',
                'clclass': 'recipe__layer_version__branch', 'hidden': 1,
            },
            {
Quoted 8 lines

--
2.1.0

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Signature · 3 lines
Alex Damian
Yocto Project
SSG / OTC