airflow: Grid view date ticks do not match dag run ordering

Apache Airflow version

2.6.3

What happened

In the old tree view, all of columns for each run would display the data_interval_start / date from the run_id as the UI identifier for the dag run.

In the new grid view, it’s inconsistent.

For example, the header of this column says 2023-07-17 00:00:00: image

But when you hover over the same DAG Run, it display the Data Interval End date of 2023-07-18 00:00:00: image

This inconsistency is causing confusion for users of Airflow because they’re just not sure what date is being processed.

What you think should happen instead

In order to retain consistency they should show the same value.

I think in order to maintain parity with the old tree view and the run_id, it should display the data_interval_start in the tooltip.

How to reproduce

  1. Navigate to grid view for any DAG.
  2. See the discrepancy between the column header and the tooltip’s date values for a "@daily" job.

Operating System

Debian GNU/Linux

Versions of Apache Airflow Providers

N/A

Deployment

Other Docker-based deployment

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 21 (11 by maintainers)

Most upvoted comments

I don’t have any experience on windows. Did you read the contributors quick start? https://github.com/apache/airflow/blob/main/CONTRIBUTORS_QUICK_START.rst

Can I try this one ?

What is displayed in the tooltip depends on the run_ordering property of the timetable.

I think the issue is that the ordering of the dagrun and the tooltip is dynamically dependent on the timetable.run_ordering, while the header/timetick displayed is always the execution_date hence the difference.

Maybe we can make the header also dynamic on the ordering property to keep that consistent ?