Always-prog commented on code in PR #24160:
URL: https://github.com/apache/superset/pull/24160#discussion_r1199732047


##########
superset/views/core.py:
##########
@@ -1959,7 +1959,7 @@ def dashboard_permalink(  # pylint: disable=no-self-use
         dashboard_id, state = value["dashboardId"], value.get("state", {})
         url = f"/superset/dashboard/{dashboard_id}?permalink_key={key}"
         if url_params := state.get("urlParams"):
-            params = parse.urlencode(url_params)
+            params = parse.urlencode(dict(url_params))

Review Comment:
   @villebro, I don't see any test cases that test urlParams in the permalink 
state.
   The type of urlParams is Optional[List[Tuple[str, str]]], which means that 
parsing urlParams using `dict` is the correct (and works on me)



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