Skip to content

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