This is an automated email from the ASF dual-hosted git repository.
bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 43522a7b84 Fix dag run link params (#38873)
43522a7b84 is described below
commit 43522a7b8460753cb0e588ed79d76e34adf529ba
Author: Brent Bovenzi <[email protected]>
AuthorDate: Tue Apr 9 14:23:13 2024 -0400
Fix dag run link params (#38873)
---
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)