Skip to content

Commit

Permalink
Fix dag run link params (#38873)
Browse files Browse the repository at this point in the history
(cherry picked from commit 43522a7)
  • Loading branch information
bbovenzi authored and jedcunningham committed Apr 26, 2024
1 parent 672f8ad commit 84b76e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions airflow/www/static/js/dag/useFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ const useFilters = (): FilterHookReturn => {
searchParams.delete(BASE_DATE_PARAM);
searchParams.delete(RUN_TYPE_PARAM);
searchParams.delete(RUN_STATE_PARAM);
searchParams.delete(EXECUTION_DATE_PARAM);
setSearchParams(searchParams);
};

Expand Down
4 changes: 2 additions & 2 deletions airflow/www/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@ def dag_run_link(attr):
"""Generate a URL to the Graph view for a DagRun."""
dag_id = attr.get("dag_id")
run_id = attr.get("run_id")
execution_date = attr.get("dag_run.execution_date") or attr.get("execution_date")
url = url_for("Airflow.graph", dag_id=dag_id, run_id=run_id, execution_date=execution_date)

url = url_for("Airflow.graph", dag_id=dag_id, dag_run_id=run_id)
return Markup('<a href="{url}">{run_id}</a>').format(url=url, run_id=run_id)


Expand Down

0 comments on commit 84b76e0

Please sign in to comment.