You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2019/10/30 07:08:48 UTC

[incubator-superset] branch john-bodley--fix-sip-15-flash created (now 2762999)

This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a change to branch john-bodley--fix-sip-15-flash
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git.


      at 2762999  [fix] Time range endpoint encoding

This branch includes the following new commits:

     new 2762999  [fix] Time range endpoint encoding

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-superset] 01/01: [fix] Time range endpoint encoding

Posted by jo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a commit to branch john-bodley--fix-sip-15-flash
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit 276299985668704847f7ba13bbaca2a4e1130589
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Wed Oct 30 00:08:40 2019 -0700

    [fix] Time range endpoint encoding
---
 superset/views/core.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/superset/views/core.py b/superset/views/core.py
index 01c0cdc..33d7ee7 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -1153,10 +1153,10 @@ class Superset(BaseSupersetView):
             and (
                 not form_data.get("time_range_endpoints")
                 or form_data["time_range_endpoints"]
-                != (
+                != [
                     utils.TimeRangeEndpoint.INCLUSIVE,
                     utils.TimeRangeEndpoint.EXCLUSIVE,
-                )
+                ]
             )
         ):
             url = Href("/superset/explore/")(
@@ -1164,10 +1164,10 @@ class Superset(BaseSupersetView):
                     "form_data": json.dumps(
                         {
                             "slice_id": slc.id,
-                            "time_range_endpoints": (
+                            "time_range_endpoints": [
                                 utils.TimeRangeEndpoint.INCLUSIVE.value,
                                 utils.TimeRangeEndpoint.EXCLUSIVE.value,
-                            ),
+                            ],
                         }
                     )
                 }