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/02/25 19:39:06 UTC

[GitHub] [superset] john-bodley commented on a change in pull request #13331: fix(query-object): extra time-range-endpoints

john-bodley commented on a change in pull request #13331:
URL: https://github.com/apache/superset/pull/13331#discussion_r583112708



##########
File path: superset/common/query_object.py
##########
@@ -181,8 +181,10 @@ def __init__(
         self.order_desc = order_desc
         self.extras = extras
 
-        if config["SIP_15_ENABLED"] and "time_range_endpoints" not in self.extras:
-            self.extras["time_range_endpoints"] = get_time_range_endpoints(form_data={})
+        if config["SIP_15_ENABLED"]:
+            self.extras["time_range_endpoints"] = get_time_range_endpoints(
+                form_data=self.extras
+            )

Review comment:
       @villebro the issue is that under other scenarios the full form data is required. We could have slots for both `form_data` and `extras` but I think that adds more confusion. 




----------------------------------------------------------------
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