Skip to content

Commit

Permalink
Swap dag run link from legacy graph to grid with graph tab (apache#40241
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bbovenzi authored Jun 17, 2024
1 parent 0d5bb60 commit 7ecbf39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions airflow/www/static/js/dag/details/FilterTasks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const FilterTasks = ({ taskId }: Props) => {
title={label}
aria-label={label}
mt={2}
ml={2}
>
<Flex>
{root
Expand Down
7 changes: 6 additions & 1 deletion airflow/www/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,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)


Expand Down

0 comments on commit 7ecbf39

Please sign in to comment.