From commits-return-816-archive-asf-public=cust-asf.ponee.io@superset.incubator.apache.org Mon Mar 26 20:07:46 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id F1C5A180649 for ; Mon, 26 Mar 2018 20:07:45 +0200 (CEST) Received: (qmail 5853 invoked by uid 500); 26 Mar 2018 18:07:45 -0000 Mailing-List: contact commits-help@superset.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@superset.incubator.apache.org Delivered-To: mailing list commits@superset.incubator.apache.org Received: (qmail 5842 invoked by uid 99); 26 Mar 2018 18:07:45 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Mar 2018 18:07:45 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 4B01680951; Mon, 26 Mar 2018 17:55:46 +0000 (UTC) Date: Mon, 26 Mar 2018 17:55:46 +0000 To: "commits@superset.apache.org" Subject: [incubator-superset] branch master updated: Fix bug with sorting columns in group by using time shift (#4683) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <152208694613.28654.10766703825926911047@gitbox.apache.org> From: graceguo@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-superset X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 336a1064d63a3952ffd8ed69b65d6c3d1f8af3d9 X-Git-Newrev: 52b925fee80c0d46aeb444326ac499296d682396 X-Git-Rev: 52b925fee80c0d46aeb444326ac499296d682396 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. graceguo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-superset.git The following commit(s) were added to refs/heads/master by this push: new 52b925f Fix bug with sorting columns in group by using time shift (#4683) 52b925f is described below commit 52b925fee80c0d46aeb444326ac499296d682396 Author: michellethomas AuthorDate: Mon Mar 26 10:55:43 2018 -0700 Fix bug with sorting columns in group by using time shift (#4683) --- superset/viz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/viz.py b/superset/viz.py index 6f17ad7..fc87430 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -1149,7 +1149,7 @@ class NVD3TimeSeriesViz(NVD3Viz): if self._extra_chart_data: chart_data += self._extra_chart_data - chart_data = sorted(chart_data, key=lambda x: x['key']) + chart_data = sorted(chart_data, key=lambda x: tuple(x['key'])) return chart_data -- To stop receiving notification emails like this one, please contact graceguo@apache.org.