Return-Path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by mail.openembedded.org (Postfix) with ESMTP id 95E6060616 for ; Tue, 19 Apr 2016 16:28:57 +0000 (UTC) Received: by mail-wm0-f54.google.com with SMTP id v188so169465072wme.1 for ; Tue, 19 Apr 2016 09:28:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IVtIN8CT0isQuglDsLQPxD8PdoqZ28QDycZ96JaX3GA=; b=FZVGqAszORZfnMg55DQJ+EFqOAG/GvBGqs+EHk4tVgnIy1shrL2JtQh7Vxt/2tL8BK LnPups2xNuBLVgitUD/3GHOehU8zKjMmLHaytDdAA2kLqrstQ9jZbA/CuKqDy81g7gP1 KSfui/eLxXAVXkmMBTitwoOcpLgTl7K0+Olvc5gNbjcKfwHGl4Fhtu9fFULL5NWQnPLj GAcv490MOV1D3b8x3N6OJlC3yGP77iTPyN3eZdd8poZiCUiYzwggnPxxk2NGVztq6wdW ewWFsOmuSNCJoFNyvKiHZHaLrhwDRfalpg4Ek7hOARFZejKoDC4v3s29jCvjpFBvBrQP 3Vkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IVtIN8CT0isQuglDsLQPxD8PdoqZ28QDycZ96JaX3GA=; b=YLlnGzvjFjxYrHD4XteJluS5gSDeoViyTBacFD6nzPdtkK1ljVB46in/jaDtgTvJhf U4PCd01VlYdxlaRGBwbeqoT1xLB4VYZPtd0di+F+ctZ5kGFVI2pzoxP4SGTnYRVwe8MB ATPi76IN8NAxaYRdQrfaIFGUu+6w2DJLVh6G6uNs7S1jc6xDLzb063obERmtZA0TnddI 2g4w1wxgPS4xTerPkppwgJEV5G8m1zlfIughIMiIYSvnrchoiJnPa2OeBxY71nRWgn92 oPQriGbIt4XRIavQ0Va1LqI2sBrNWVE36c5QG0uI/ddGiW5N+2b/DUZctVf+aSId8yri J3VA== X-Gm-Message-State: AOPr4FUGhg81LXLuLhAW17m6/2rb9t03A3qWf6dxlOKc63SSMciLbnRMpv7zG10D1JyR+1Ew X-Received: by 10.194.62.145 with SMTP id y17mr4347395wjr.109.1461083337556; Tue, 19 Apr 2016 09:28:57 -0700 (PDT) Received: from orion.home (host109-150-176-203.range109-150.btcentralplus.com. [109.150.176.203]) by smtp.gmail.com with ESMTPSA id v64sm5168806wmv.1.2016.04.19.09.28.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Apr 2016 09:28:56 -0700 (PDT) From: Michael Wood To: bitbake-devel@lists.openembedded.org Date: Tue, 19 Apr 2016 17:28:39 +0100 Message-Id: <1461083327-11668-3-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1461083327-11668-1-git-send-email-michael.g.wood@intel.com> References: <1461083327-11668-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 02/10] toaster: fix sorting after hiding a column in build tables X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2016 16:28:58 -0000 From: Elliot Smith When hiding a column in the build tasks or build packages included table, if the column is set as the current order by for the table, the order by is not reset to the default. The result is that the table stays sorted by the hidden column. Set the default_orderby for these two tables correctly to ensure the corresponding table is re-sorted when a column is hidden, if that column was being used as the order by. [YOCTO #9011] Signed-off-by: Elliot Smith Signed-off-by: Michael Wood --- lib/toaster/toastergui/templates/tasks.html | 2 +- lib/toaster/toastergui/views.py | 50 ++++++++++++++--------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/lib/toaster/toastergui/templates/tasks.html b/lib/toaster/toastergui/templates/tasks.html index 23eb957..84bc103 100644 --- a/lib/toaster/toastergui/templates/tasks.html +++ b/lib/toaster/toastergui/templates/tasks.html @@ -131,7 +131,7 @@