From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 1E294E00F06; Fri, 22 Jul 2016 02:07:53 -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=-1.9 required=5.0 tests=BAYES_00 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] Received: from goldenrod.cherry.relay.mailchannels.net (goldenrod.cherry.relay.mailchannels.net [23.83.223.74]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5C7DBE00F08 for ; Fri, 22 Jul 2016 02:07:46 -0700 (PDT) X-Sender-Id: wwwh|x-authuser|elliot@townx.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 4C2C6A0AA7; Fri, 22 Jul 2016 08:59:01 +0000 (UTC) Received: from uscentral428.accountservergroup.com (ip-10-229-2-62.us-west-2.compute.internal [10.229.2.62]) by relay.mailchannels.net (Postfix) with ESMTPA id A5B45A1262; Fri, 22 Jul 2016 08:59:00 +0000 (UTC) X-Sender-Id: wwwh|x-authuser|elliot@townx.org Received: from uscentral428.accountservergroup.com (uscentral428.accountservergroup.com [10.132.194.146]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.7.1); Fri, 22 Jul 2016 08:59:01 +0000 X-MC-Relay: Good X-MailChannels-SenderId: wwwh|x-authuser|elliot@townx.org X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1469177940916:4049278608 X-MC-Ingress-Time: 1469177940916 Received: from [176.249.240.35] (port=54110 helo=localhost.localdomain) by uscentral428.accountservergroup.com with esmtpa (Exim 4.87) (envelope-from ) id 1bQWIN-0008KG-GS; Fri, 22 Jul 2016 04:58:59 -0400 From: Elliot Smith To: toaster@yoctoproject.org Date: Fri, 22 Jul 2016 09:58:48 +0100 Message-Id: X-Mailer: git-send-email 2.7.4 X-AuthUser: elliot@townx.org Subject: [PATCH 0/2] Revert to default table sort when sort column is hidden 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: Fri, 22 Jul 2016 09:07:53 -0000 Fix an issue where a ToasterTable doesn't revert to the default sort when the current sort column is hidden. To test: 1. Run Toaster and do a build. 2. Go to the all builds page. Note that the table is sorted by "Completed on" in reverse order. 3. Use "Edit columns" to switch on the "Started on" column. 4. Sort the table by the "Started on" column. Note that the "Started on" column is highlighted as the sort column. 5. Use "Edit columns" to hide the "Started on" column. 6. Check that the sort goes back to the default ("Completed on" in reverse order). Related bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=9836 The following changes since commit 1826de5234aadb9aa51c83f86471cdd7e88b48cf (toaster-next): toaster: loadconf Partially add back some of the layerSource parsing (2016-07-21 11:23:00 +0100) are available in the git repository at: git://git.yoctoproject.org/poky-contrib elliot/toaster/9836-revert_sorting http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=elliot/toaster/9836-revert_sorting Elliot Smith (2): toaster: reset table to default orderby when orderby column is hidden toaster-tests: add tests for reverting to default sort .../toaster/tests/browser/test_toastertable_ui.py | 160 +++++++++++++++++++++ bitbake/lib/toaster/toastergui/static/js/table.js | 78 +++++++--- 2 files changed, 220 insertions(+), 18 deletions(-) create mode 100644 bitbake/lib/toaster/tests/browser/test_toastertable_ui.py -- 2.7.4