Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Trigger DAG w/config origin url #29212

Merged
merged 1 commit into from
Jan 29, 2023

Conversation

hussein-awala
Copy link
Member

closes: #29197


This PR fixes the origin url for the Trigger DAG w/config web page, where currently, it redirects to the origin endpoint with the param dag_id, but for some origins, this lead to a error 400.
For example, when we navigate to the Trigger DAG w/config page from the endpoint tasks, the origin url will be /tasks?dag_id=<dag_id> without the task_id, the execution_date and the map_index, so when it redirect to this origin url, we get Bad Request Invalid datetime: None. To fix this problem, I redirect to the origin endpoint with all the origin params and I add dag_id if it doesn't exist in the origin params.

@boring-cyborg boring-cyborg bot added area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels Jan 29, 2023
Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

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

Nice one!

@potiuk potiuk merged commit 7315d6f into apache:main Jan 29, 2023
@pierrejeambrun pierrejeambrun added the type:bug-fix Changelog: Bug Fixes label Feb 27, 2023
@pierrejeambrun pierrejeambrun added this to the Airflow 2.5.2 milestone Feb 27, 2023
pierrejeambrun pushed a commit that referenced this pull request Mar 7, 2023
pierrejeambrun pushed a commit that referenced this pull request Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trigger DAG w/config raising error from task detail views
3 participants