Antonio-RiveroMartnez commented on code in PR #32538:
URL: https://github.com/apache/superset/pull/32538#discussion_r1985260291
##########
superset/migrations/versions/2024-05-10_18-02_f84fde59123a_update_charts_with_old_time_comparison.py:
##########
@@ -85,7 +85,7 @@ def upgrade_comparison_params(slice_params: dict[str, Any])
-> dict[str, Any]:
# Adjust adhoc_custom
if "adhoc_custom" in params and params["adhoc_custom"]:
adhoc = params["adhoc_custom"][0] # As there's always only one element
- if adhoc["comparator"] != "No filter":
Review Comment:
it would enter this conditional and `start_date_offset.strftime("%Y-%m-%d")`
would fail since get_since_until(adhoc["comparator"]) would return None as the
start_date
--
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]