tirkarthi opened a new pull request, #48790: URL: https://github.com/apache/airflow/pull/48790
Closes #48191 When there are no dagruns then the recent dag runs endpoint returns empty list for the dag details which causes the `Schedule` and `Next Run` to be empty. Though the details header displays empty values the dags list page displays the value so use the dag runs endpoint if present and fallback to dag details if there is no dagrun. Similar to what is done in `useDag` implementation used in dags list page. 1. Visit a dag with schedule but no dagrun yet. E.g. http://localhost:8000/dags/tutorial 2. The schedule and next run are present in dags list page but not dag page. After PR dag page will also display the values. https://github.com/apache/airflow/blob/ba0d3cd77331d27f39d7e69748c8a0865daf9b87/airflow-core/src/airflow/ui/src/queries/useDags.tsx#L67-L80 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
