You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/02/10 10:57:29 UTC

[GitHub] [airflow] ashb commented on a change in pull request #21489: Fix broken tests after URL restructure PR

ashb commented on a change in pull request #21489:
URL: https://github.com/apache/airflow/pull/21489#discussion_r803548113



##########
File path: airflow/utils/helpers.py
##########
@@ -258,8 +257,7 @@ def build_airflow_url_with_query(query: Dict[str, Any]) -> str:
     import flask
 
     view = conf.get('webserver', 'dag_default_view').lower()
-    url = flask.url_for(f"Airflow.{view}")
-    return f"{url}?{parse.urlencode(query)}"
+    return flask.url_for(f"Airflow.{view}", **query)

Review comment:
       Turns out URL for handles url prams and everything else gets set as query params, so the fix was easy :)




-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org