apache / airflow

Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
https://airflow.apache.org/
Apache License 2.0
35.21k stars 13.76k forks source link

List Dag Run broken link to dag_run #40214

Open raphaelauv opened 2 weeks ago

raphaelauv commented 2 weeks ago

Apache Airflow version

2.9.2

What happened?

if I click on a dag_run on the list dag run webserver page

it always show the latest dag_run and not the dag_run I clicked on

How to reproduce

from airflow.operators.empty import EmptyOperator
from pendulum import today
from airflow import DAG

with DAG(
        dag_id='example',
        schedule_interval='0 0 * * *',
        start_date=today("UTC").add(days=-5)):
    EmptyOperator(task_id="nothing")

https://github.com/apache/airflow/assets/10202690/c2c59783-67cf-44e2-ab14-b1ef52d31bb0

Are you willing to submit PR?

Code of Conduct

vatsrahul1001 commented 1 week ago

@raphaelauv I tried this and not able to reproduce this. Are you facing this for all of your DAG's?

raphaelauv commented 1 week ago

yes in google chrome and firefox

from the page http://localhost:8090/dagrun/list/?_flt_3_dag_id=example

you must click on the link of the run_id column ( like in the screen record )

vatsrahul1001 commented 1 week ago

@raphaelauv I am able to repo thus

ayush3singh commented 1 week ago

Hi, I would like to work on this issue, I have done some initial debugging. @potiuk can you please assign it to me.

potiuk commented 1 week ago

Sure

laoni3634 commented 1 day ago

When click on a dag_run in dag_run list page, the link is like below one. This link does not exist, so rediect to the latest one. https://localhost/pipelines/dags/transition_execute/graph?dag_run_id=dag_run_id When click on a grid in dag_detail page, the link is like below one. This link is correct. https://localhost/pipelines/dags/transition_execute/grid?dag_run_id=dag_run_id

So I think the brief change is to change https://localhost/pipelines/dags/transition_execute/graph?dag_run_id=dag_run_id to https://localhost/pipelines/dags/transition_execute/grid?dag_run_id=dag_run_id (just replace graph with grid) when click on a dag_run in dag_run list page.