Skip to contentSkip to conversation

toastergui: comment out broken sorting and filters

PATCH In review Belen Barros Pena 2 participants 2 messages Oct 6, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toastergui: comment out broken sorting and filters

From: Belen Barros Pena <[email protected]>

YOCTO #8131 records that the sorting by 'errors', 'warnigns' and 'time', and the filtering by 'errors' and 'warnings' are broken in the 'all builds' and 'project builds' pages.

To avoid exposing broken functionality to users, comment out the sorting and filtering in those columns until we we have a fix for YOCTO #8131.

---
 bitbake/lib/toaster/toastergui/views.py | 49 +++++++++++++++++----------------
 1 file changed, 26 insertions(+), 23 deletions(-)
bitbake/lib/toaster/toastergui/views.py +26 -23
index 9f16e8f..db791cf 100755
@@ -2103,35 +2103,38 @@ if True:
                     },
                     {'name': 'Errors', 'clclass': 'errors_no',
                      'qhelp': "How many errors were encountered during the build (if any)",
-                     'orderfield': _get_toggle_order(request, "errors_no", True),
-                     'ordericon':_get_toggle_order_icon(request, "errors_no"),
-                     'orderkey' : 'errors_no',
-                     'filter' : {'class' : 'errors_no',
-                                 'label': 'Show:',
-                                 'options' : [
-                                             ('Builds with errors', 'errors_no__gte:1', queryset_with_search.filter(errors_no__gte=1).count()),
-                                             ('Builds without errors', 'errors_no:0', queryset_with_search.filter(errors_no=0).count()),
-                                             ]
-                                }
+                     # Comment out sorting and filter until YOCTO #8131 is fixed
+                     #'orderfield': _get_toggle_order(request, "errors_no", True),
+                     #'ordericon':_get_toggle_order_icon(request, "errors_no"),
+                     #'orderkey' : 'errors_no',
+                     #'filter' : {'class' : 'errors_no',
+                     #            'label': 'Show:',
+                     #            'options' : [
+                     #                        ('Builds with errors', 'errors_no__gte:1', queryset_with_search.filter(errors_no__gte=1).count()),
+                     #                        ('Builds without errors', 'errors_no:0', queryset_with_search.filter(errors_no=0).count()),
+                     #                        ]
+                     #           }
                     },
                     {'name': 'Warnings', 'clclass': 'warnings_no',
                      'qhelp': "How many warnings were encountered during the build (if any)",
-                     'orderfield': _get_toggle_order(request, "warnings_no", True),
-                     'ordericon':_get_toggle_order_icon(request, "warnings_no"),
-                     'orderkey' : 'warnings_no',
-                     'filter' : {'class' : 'warnings_no',
-                                 'label': 'Show:',
-                                 'options' : [
-                                             ('Builds with warnings','warnings_no__gte:1', queryset_with_search.filter(warnings_no__gte=1).count()),
-                                             ('Builds without warnings','warnings_no:0', queryset_with_search.filter(warnings_no=0).count()),
-                                             ]
-                                }
+                     # Comment out sorting and filter until YOCTO #8131 is fixed
+                     #'orderfield': _get_toggle_order(request, "warnings_no", True),
+                     #'ordericon':_get_toggle_order_icon(request, "warnings_no"),
+                     #'orderkey' : 'warnings_no',
+                     #'filter' : {'class' : 'warnings_no',
+                     #            'label': 'Show:',
+                     #            'options' : [
+                     #                        ('Builds with warnings','warnings_no__gte:1', queryset_with_search.filter(warnings_no__gte=1).count()),
+                     #                        ('Builds without warnings','warnings_no:0', queryset_with_search.filter(warnings_no=0).count()),
+                     #                        ]
+                     #           }
                     },
                     {'name': 'Time', 'clclass': 'time', 'hidden' : 1,
                      'qhelp': "How long it took the build to finish",
-                     'orderfield': _get_toggle_order(request, "timespent", True),
-                     'ordericon':_get_toggle_order_icon(request, "timespent"),
-                     'orderkey' : 'timespent',
+                     # Comment out sorting until YOCTO #8131 is fixed
+                     #'orderfield': _get_toggle_order(request, "timespent", True),
+                     #'ordericon':_get_toggle_order_icon(request, "timespent"),
+                     #'orderkey' : 'timespent',
                     },
                     {'name': 'Image files', 'clclass': 'output',
                      'qhelp': "The root file system types produced by the build. You can find them in your <code>/build/tmp/deploy/images/</code> directory",
Signature · 1 line
2.3.8 (Apple Git-58)
#1 lore raw
Quoted 10 lines · Belen Barros Pena

YOCTO #8131 records that the sorting by 'errors', 'warnigns' and 'time', and the filtering by 'errors' and 'warnings' are broken in the 'all builds' and 'project builds' pages.

To avoid exposing broken functionality to users, comment out the sorting and filtering in those columns until we we have a fix for YOCTO #8131.

Looks good to me, and GUI tests pass (NB orm tests are broken, pending Ed's patch), so sent upstream to bitbake-devel.

Elliot

Quoted 111 lines
---
 bitbake/lib/toaster/toastergui/views.py | 49
+++++++++++++++++----------------
 1 file changed, 26 insertions(+), 23 deletions(-)
bitbake/lib/toaster/toastergui/views.py +1 -10
index 9f16e8f..db791cf 100755
@@ -2103,35 +2103,38 @@ if True:
                     },
                     {'name': 'Errors', 'clclass': 'errors_no',
                      'qhelp': "How many errors were encountered during
 the build (if any)",
-                     'orderfield': _get_toggle_order(request,
 "errors_no", True),
-                     'ordericon':_get_toggle_order_icon(request,
 "errors_no"),
-                     'orderkey' : 'errors_no',
-                     'filter' : {'class' : 'errors_no',
-                                 'label': 'Show:',
-                                 'options' : [
-                                             ('Builds with errors',
 'errors_no__gte:1', queryset_with_search.filter(errors_no__gte=1).count()),
-                                             ('Builds without errors',
 'errors_no:0', queryset_with_search.filter(errors_no=0).count()),
-                                             ]
-                                }
+                     # Comment out sorting and filter until YOCTO #8131

is fixed
+ #'orderfield': _get_toggle_order(request,
"errors_no", True),
+ #'ordericon':_get_toggle_order_icon(request,
"errors_no"),

bitbake/lib/toaster/toastergui/views.py +5 -0
+                     #'orderkey' : 'errors_no',
+                     #'filter' : {'class' : 'errors_no',
+                     #            'label': 'Show:',
+                     #            'options' : [
+                     #                        ('Builds with errors',

'errors_no__gte:1', queryset_with_search.filter(errors_no__gte=1).count()),
+ # ('Builds without errors',
'errors_no:0', queryset_with_search.filter(errors_no=0).count()),

bitbake/lib/toaster/toastergui/views.py +2 -0
+                     #                        ]
+                     #           }
                     },
                     {'name': 'Warnings', 'clclass': 'warnings_no',
                      'qhelp': "How many warnings were encountered during

the build (if any)",
- 'orderfield': _get_toggle_order(request,
"warnings_no", True),
- 'ordericon':_get_toggle_order_icon(request,
"warnings_no"),

bitbake/lib/toaster/toastergui/views.py +0 -5
-                     'orderkey' : 'warnings_no',
-                     'filter' : {'class' : 'warnings_no',
-                                 'label': 'Show:',
-                                 'options' : [
-                                             ('Builds with

warnings','warnings_no__gte:1', queryset_with_search.filter(warnings_no__gte=1).count()),
- ('Builds without
warnings','warnings_no:0', queryset_with_search.filter(warnings_no=0).count()),

bitbake/lib/toaster/toastergui/views.py +1 -2
-                                             ]
-                                }
+                     # Comment out sorting and filter until YOCTO #8131

is fixed
+ #'orderfield': _get_toggle_order(request,
"warnings_no", True),
+ #'ordericon':_get_toggle_order_icon(request,
"warnings_no"),

bitbake/lib/toaster/toastergui/views.py +5 -0
+                     #'orderkey' : 'warnings_no',
+                     #'filter' : {'class' : 'warnings_no',
+                     #            'label': 'Show:',
+                     #            'options' : [
+                     #                        ('Builds with

warnings','warnings_no__gte:1', queryset_with_search.filter(warnings_no__gte=1).count()),
+ # ('Builds without
warnings','warnings_no:0', queryset_with_search.filter(warnings_no=0).count()),

bitbake/lib/toaster/toastergui/views.py +2 -1
+                     #                        ]
+                     #           }
                     },
                     {'name': 'Time', 'clclass': 'time', 'hidden' : 1,
                      'qhelp': "How long it took the build to finish",
-                     'orderfield': _get_toggle_order(request,

"timespent", True),
- 'ordericon':_get_toggle_order_icon(request,
"timespent"),

bitbake/lib/toaster/toastergui/views.py +2 -1
-                     'orderkey' : 'timespent',
+                     # Comment out sorting until YOCTO #8131 is fixed
+                     #'orderfield': _get_toggle_order(request,

"timespent", True),
+ #'ordericon':_get_toggle_order_icon(request,
"timespent"),
+ #'orderkey' : 'timespent',

                     },
                     {'name': 'Image files', 'clclass': 'output',
                      'qhelp': "The root file system types produced by the

build. You can find them in your <code>/build/tmp/deploy/images/</code> directory",
--
2.3.8 (Apple Git-58)

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

Signature · 3 lines
Elliot Smith
Software Engineer
Intel Open Source Technology Centre