-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Fix timestamp tooltip redundancy #10556
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
Conversation
|
@JeffryMAC WDYT? |
|
I think the start date prefix is still needed. The column shows the execution_date, which can be wildly different to the start date. I think |
|
@ashb both values in the existing implementation are keyed off of |
|
@ryw not sure how they could diverge given they sue the same data value. Is that from an older Airflow version? The different/shorter formatting of the the tooltip date stands out to me. |
|
@ryw The behaviour as you see it was in older airflow versions. I do belive that the better way to solve this is to fix the regression(?) to restore the behavior in older airflow versions but if not possible then at least Airflow shouldn't show duplicated redundant information. |
|
@ashb do you know if we changed this intentionally, to simplify Airflow UI. An idea is that we could show the (i) icon if there is a was a difference between last_run and start_date, could make it red if it was significant. |
|
I don't think it was intentional, no, but someone would have to git bisect to work out when the change was made to be sure |
@ryanahamilton and @ryw I found the issue/mixup. Yes they diverge in airflow 1.10.x if RBAC UI disabled one is
I found out it was the commit that changed the DAGs view to have the latest DAG runs be loaded asynchronously that might have inadvertently changed both dates to the the same value: ba9c035 I found the source of the json passed to the airflow/airflow/www_rbac/views.py Lines 524 to 537 in 836f717
|
@ashb I did the investigation using git blame, see my above comment |

Closes: #10350
On the DAGs index view, the previous i tooltip displayed the UTC timestamp regardless of the currently selected display timezone. This could be redundant if UTC was selected.
I've removed the i tooltip and instead enabled the
titleattribute on the existing<time></time>element which will conditionally show a UTC tooltip on hover if the display timezone is not UTC. The "UTC:" prefix instead of "Start Date:" also helps clarify the relevance of the timestamp.^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.