You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by GitBox <gi...@apache.org> on 2018/04/12 21:52:13 UTC

[GitHub] mistercrunch commented on a change in pull request #4651: [explore] proper filtering of NULLs and ''

mistercrunch commented on a change in pull request #4651: [explore] proper filtering of NULLs and ''
URL: https://github.com/apache/incubator-superset/pull/4651#discussion_r181233048
 
 

 ##########
 File path: superset/connectors/base/models.py
 ##########
 @@ -185,6 +186,34 @@ def data(self):
             'verbose_map': verbose_map,
         }
 
+    @staticmethod
+    def filter_values_handler(
+            values, target_column_is_numeric=False, is_list_target=False):
+        def handle_single_value(v):
+            # backward compatibility with previous <select> components
+            if isinstance(v, basestring):
+                v = v.strip().strip("'").strip('"')
 
 Review comment:
   oh neat

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services