This is an automated email from the ASF dual-hosted git repository. utkarsharma pushed a commit to branch v2-9-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit b9080cc3bf10bf680cf568313f1e74c0eddfe3f0 Author: Brent Bovenzi <[email protected]> AuthorDate: Mon Jun 17 10:21:09 2024 -0400 Swap dag run link from legacy graph to grid with graph tab (#40241) (cherry picked from commit 7ecbf39878b65deb4a5af108171635b0cd83d478) --- airflow/www/static/js/dag/details/FilterTasks.tsx | 1 + airflow/www/utils.py | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/airflow/www/static/js/dag/details/FilterTasks.tsx b/airflow/www/static/js/dag/details/FilterTasks.tsx index 7bc9b976b9..5f4173dd6e 100644 --- a/airflow/www/static/js/dag/details/FilterTasks.tsx +++ b/airflow/www/static/js/dag/details/FilterTasks.tsx @@ -89,6 +89,7 @@ const FilterTasks = ({ taskId }: Props) => { title={label} aria-label={label} mt={2} + ml={2} > <Flex> {root diff --git a/airflow/www/utils.py b/airflow/www/utils.py index 995833d6d6..2cd32015f4 100644 --- a/airflow/www/utils.py +++ b/airflow/www/utils.py @@ -533,7 +533,12 @@ def dag_run_link(attr): dag_id = attr.get("dag_id") run_id = attr.get("run_id") - url = url_for("Airflow.graph", dag_id=dag_id, dag_run_id=run_id) + url = url_for( + "Airflow.grid", + dag_id=dag_id, + dag_run_id=run_id, + tab="graph", + ) return Markup('<a href="{url}">{run_id}</a>').format(url=url, run_id=run_id)
