Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swap dag run link from legacy graph to grid with graph tab #40241

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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