From commits-return-1334-archive-asf-public=cust-asf.ponee.io@superset.incubator.apache.org Tue Aug 21 01:37:24 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 AF40A180663 for ; Tue, 21 Aug 2018 01:37:23 +0200 (CEST) Received: (qmail 16092 invoked by uid 500); 20 Aug 2018 23:37:22 -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 16083 invoked by uid 99); 20 Aug 2018 23:37:22 -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, 20 Aug 2018 23:37:22 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 47E18853B8; Mon, 20 Aug 2018 23:37:22 +0000 (UTC) Date: Mon, 20 Aug 2018 23:37:22 +0000 To: "commits@superset.apache.org" Subject: [incubator-superset] branch master updated: Fix time filter in cache (#5681) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <153480824208.19364.13722464439902730374@gitbox.apache.org> From: maximebeauchemin@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: cdd348ab94b075cf3505b7e2dd84206dc3aede82 X-Git-Newrev: fef39a787840ebb1ae96e2d01f8cb1b5a1ed45e5 X-Git-Rev: fef39a787840ebb1ae96e2d01f8cb1b5a1ed45e5 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. maximebeauchemin 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 fef39a7 Fix time filter in cache (#5681) fef39a7 is described below commit fef39a787840ebb1ae96e2d01f8cb1b5a1ed45e5 Author: Beto Dealmeida AuthorDate: Mon Aug 20 16:37:19 2018 -0700 Fix time filter in cache (#5681) --- superset/viz.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/superset/viz.py b/superset/viz.py index 1541794..4f2c411 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -331,9 +331,7 @@ class BaseViz(object): for k in ['from_dttm', 'to_dttm']: del cache_dict[k] - for k in ['since', 'until']: - cache_dict[k] = self.form_data.get(k) - + cache_dict['time_range'] = self.form_data.get('time_range') cache_dict['datasource'] = self.datasource.uid json_data = self.json_dumps(cache_dict, sort_keys=True) return hashlib.md5(json_data.encode('utf-8')).hexdigest()