JCelento commented on code in PR #36985:
URL: https://github.com/apache/superset/pull/36985#discussion_r2677066708


##########
superset/utils/core.py:
##########
@@ -1058,6 +1058,17 @@ def merge_extra_form_data(form_data: dict[str, Any]) -> 
None:  # noqa: C901
                     for fltr in append_filters
                     if fltr
                 )
+
+    granularity_sqla_override = extra_form_data.get("granularity_sqla")
+
+    if granularity_sqla_override is not None:
+        for adhoc_filter in form_data.get("adhoc_filters", []):
+            if (
+                adhoc_filter.get("operator") == "TEMPORAL_RANGE"
+                and adhoc_filter.get("expressionType") == "SIMPLE"
+            ):
+                adhoc_filter["subject"] = granularity_sqla_override

Review Comment:
   thanks for pointing that out, I just applied the 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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to