Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 9140DE00D92; Tue, 6 Oct 2015 04:23:52 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.93 listed in list.dnswl.org] Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id AF816E0049B for ; Tue, 6 Oct 2015 04:23:51 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 06 Oct 2015 04:23:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,643,1437462000"; d="scan'208";a="804668106" Received: from bbarrosp-mac03.isw.intel.com ([10.237.224.81]) by fmsmga001.fm.intel.com with ESMTP; 06 Oct 2015 04:23:50 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Tue, 6 Oct 2015 12:23:40 +0100 Message-Id: <1444130620-2440-1-git-send-email-belen.barros.pena@linux.intel.com> X-Mailer: git-send-email 2.3.8 (Apple Git-58) Subject: [PATCH] toastergui: comment out broken sorting and filters X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2015 11:23:52 -0000 From: 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. Signed-off-by: Belen Barros Pena --- bitbake/lib/toaster/toastergui/views.py | 49 +++++++++++++++++---------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 9f16e8f..db791cf 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py @@ -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 /build/tmp/deploy/images/ directory", -- 2.3.8 (Apple Git-58)