You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/01/20 19:12:55 UTC

[GitHub] [superset] bryanck commented on a change in pull request #12620: fix: missing key when verifying adhoc filters in merge_extra_filters

bryanck commented on a change in pull request #12620:
URL: https://github.com/apache/superset/pull/12620#discussion_r561209750



##########
File path: superset/utils/core.py
##########
@@ -1025,8 +1025,8 @@ def get_filter_key(f: Dict[str, Any]) -> str:
         for existing in adhoc_filters:
             if (
                 existing["expressionType"] == "SIMPLE"
-                and existing["comparator"] is not None
-                and existing["subject"] is not None
+                and "comparator" in existing
+                and "subject" in existing

Review comment:
       OK, I made this change




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org