Skip to content

[v3-3-test] Fix Gantt tooltip showing wrong end date on queued/scheduled bars (#68570) - #70742

Merged
potiuk merged 1 commit into
v3-3-testfrom
backport-b3cfad9-v3-3-test
Jul 30, 2026
Merged

[v3-3-test] Fix Gantt tooltip showing wrong end date on queued/scheduled bars (#68570)#70742
potiuk merged 1 commit into
v3-3-testfrom
backport-b3cfad9-v3-3-test

Conversation

@vatsrahul1001

Copy link
Copy Markdown
Contributor

Backport of #68570 to v3-3-test for the Airflow 3.3.1 patch release. Clean git cherry-pick -x (no conflicts).


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.8)

Generated-by: Claude Code (Opus 4.8) following the guidelines — automated cherry-pick backport; code is the original author's, unchanged.

…8570)

* UI: Fix Gantt tooltip showing wrong end date on queued/scheduled bars

The tooltip on the queued and scheduled segments of a Gantt bar reported
the end of that segment (e.g. the moment queueing ended) as the task's
End Date, instead of the task's actual end. This was a regression from
the start-date fix in #68176, which made the Start Date consistent across
segments but left the End Date per-segment.

Carry the task's effective end (end_date, or "now" while running) on every
segment of a try as `end_when`, mirroring `start_when`, and use it for the
tooltip's End Date so all segments of a try report the same start and end.

closes: #68174

* UI: Make end_when symmetric with start_when in Gantt tooltip data

Address review: derive a single effectiveEndDate (the raw end_date, or
"now" while a started task is still running) and gate end_when on it the
same way start_when is gated on start_date. Finished tasks now keep the
API's raw end_date string instead of a re-serialized dayjs timestamp, and
the tryWhenForTooltip block no longer depends on endMs ordering. Pin the
running-task test to a fixed "now" via fake timers.

* UI: Remove noisy comments from Gantt tooltip data transform

Address review: drop the verbose inline comments around effectiveEndDate
and tryWhenForTooltip; the code is self-explanatory.

(cherry picked from commit b3cfad9)
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.3.1 milestone Jul 30, 2026
@vatsrahul1001 vatsrahul1001 added the type:bug-fix Changelog: Bug Fixes label Jul 30, 2026
@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Jul 30, 2026
@potiuk
potiuk merged commit 9efb0ac into v3-3-test Jul 30, 2026
84 checks passed
@potiuk
potiuk deleted the backport-b3cfad9-v3-3-test branch July 30, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants