Skip to content

Fix broken tests after URL restructure PR#21489

Merged
ashb merged 1 commit into
apache:mainfrom
astronomer:fix-tests-for-new-url-structure
Feb 10, 2022
Merged

Fix broken tests after URL restructure PR#21489
ashb merged 1 commit into
apache:mainfrom
astronomer:fix-tests-for-new-url-structure

Conversation

@ashb

@ashb ashb commented Feb 10, 2022

Copy link
Copy Markdown
Member

#20730 somehow broken tests, not sure how that PR was green

@ashb ashb requested a review from uranusjr February 10, 2022 10:56
Comment thread airflow/utils/helpers.py
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)

@ashb ashb Feb 10, 2022

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@github-actions

Copy link
Copy Markdown
Contributor

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions Bot added the full tests needed We need to run full set of tests for this PR to merge label Feb 10, 2022
@uranusjr

Copy link
Copy Markdown
Member

also cc @IKholopov

@ashb ashb merged commit f91f1ca into apache:main Feb 10, 2022
@ashb ashb deleted the fix-tests-for-new-url-structure branch February 10, 2022 11:32
ferruzzi pushed a commit to ferruzzi/airflow that referenced this pull request Feb 11, 2022
@jedcunningham jedcunningham added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) full tests needed We need to run full set of tests for this PR to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants