This is an automated email from the ASF dual-hosted git repository. jedcunningham pushed a commit to branch v2-9-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 84b76e02fc7b8352fa132dd3926f69db08682b53 Author: Brent Bovenzi <br...@astronomer.io> AuthorDate: Tue Apr 9 14:23:13 2024 -0400 Fix dag run link params (#38873) (cherry picked from commit 43522a7b8460753cb0e588ed79d76e34adf529ba) --- airflow/www/static/js/dag/useFilters.tsx | 1 + airflow/www/utils.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/airflow/www/static/js/dag/useFilters.tsx b/airflow/www/static/js/dag/useFilters.tsx index a83598beb8..5a1a49b686 100644 --- a/airflow/www/static/js/dag/useFilters.tsx +++ b/airflow/www/static/js/dag/useFilters.tsx @@ -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); }; diff --git a/airflow/www/utils.py b/airflow/www/utils.py index d73bff9a64..995833d6d6 100644 --- a/airflow/www/utils.py +++ b/airflow/www/utils.py @@ -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)