Apache Airflow version
Other Airflow 2 version (please specify below)
If "Other Airflow 2 version" selected, which one?
2.7.3
What happened?
It seems this new "graph" view redirection breaks links from a task's log or the dag_run list table view.
It seems the redirection doesn't work when the dag run you're trying to view is outside the default selected number of dag runs. Because we are always in "grid" view now technically, the dag_run needs to be one of the list of dag runs showed in the grid view (25 by default).
Link from task logs. Note how the "graph" button goes to /dags/ninjacat_listener/graph?root=&execution_date=2024-01-17T21%3A08%3A00%2B00%3A00.
Since this particular dag run was like 200 or so dag_runs in the past, once redirected the graph shows without a selected run. I can only go there by manually adding &num_runs=200 to the url that graph link sends you to.
Is there a way around this? Having that old link also specify the &base_date= param would help a bit. However, in another one of our use-cases we have a DAG that is triggered by a TON of other DAGs. The execution_date for these triggered runs varies only in microseconds, so we can have thousands of dag_runs with execution dates in the same minute or even second. Setting the base_date here wouldn't work. Is there a way to be able to link to the graph view of a DAG without having to set num_runs=2000 in this case?
Maybe I'm missing something obvious.
What you think should happen instead?
There should be a way to link to the graph view of a "single" dag_run. When I click the graph button while viewing a task's logs or select a specific dag_run from the list dag runs view, I should be redirected somewhere where I can actually view the dag run.
How to reproduce
Go to the dagrun/list/ page, and select a dag_run that is more than the default number of runs in the past. You will see the page you are redirected to displays a graph with no selected dag_run.
Operating System
Debian GNU/Linux 11 (bullseye)
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
Apache Airflow version
Other Airflow 2 version (please specify below)
If "Other Airflow 2 version" selected, which one?
2.7.3
What happened?
It seems this new "graph" view redirection breaks links from a task's log or the dag_run list table view.
It seems the redirection doesn't work when the dag run you're trying to view is outside the default selected number of dag runs. Because we are always in "grid" view now technically, the dag_run needs to be one of the list of dag runs showed in the grid view (25 by default).
Link from task logs. Note how the "graph" button goes to
/dags/ninjacat_listener/graph?root=&execution_date=2024-01-17T21%3A08%3A00%2B00%3A00.Since this particular dag run was like 200 or so dag_runs in the past, once redirected the graph shows without a selected run. I can only go there by manually adding
&num_runs=200to the url that graph link sends you to.Is there a way around this? Having that old link also specify the
&base_date=param would help a bit. However, in another one of our use-cases we have a DAG that is triggered by a TON of other DAGs. The execution_date for these triggered runs varies only in microseconds, so we can have thousands of dag_runs with execution dates in the same minute or even second. Setting thebase_datehere wouldn't work. Is there a way to be able to link to the graph view of a DAG without having to setnum_runs=2000in this case?Maybe I'm missing something obvious.
What you think should happen instead?
There should be a way to link to the graph view of a "single" dag_run. When I click the graph button while viewing a task's logs or select a specific dag_run from the list dag runs view, I should be redirected somewhere where I can actually view the dag run.
How to reproduce
Go to the
dagrun/list/page, and select a dag_run that is more than the default number of runs in the past. You will see the page you are redirected to displays a graph with no selected dag_run.Operating System
Debian GNU/Linux 11 (bullseye)
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct