Smitaambiger opened a new pull request, #64204:
URL: https://github.com/apache/airflow/pull/64204
## What this PR does
Adds a start date and end date filter to the Gantt view UI.
This allows users to zoom into a specific time range and better visualize
task durations, especially when task instance tries span a large time window.
---
## Implementation details
* Added two date inputs (start and end) above the Gantt chart
* Applied client-side filtering on transformed Gantt data (`task.x`
start/end timestamps)
* Dynamically updated visible labels based on filtered tasks
* Default behavior remains unchanged when no filter is applied
* No backend changes required
---
## Why this is needed
As discussed in the issue, when task instance tries are spread across a long
duration (e.g., after clearing runs much later), the Gantt chart expands its
time window significantly.
This causes task bars to appear compressed (due to minimum width
constraints), making it difficult to distinguish duration differences.
The introduced date range filter allows users to focus on a smaller time
window, improving readability and enabling more accurate visual analysis.
---
## Testing
* Verified UI rendering and interaction locally
* Confirmed filtering logic works correctly for:
* start date only
* end date only
* both start and end date
* Ensured default behavior (no filter) remains unchanged
Due to local environment limitations with Breeze (Docker + WSL), I was not
able to fully reproduce the long-gap retry scenario (i.e., widely spaced task
instance tries after clearing runs).
However, the implemented filtering aligns with the expected behavior
described in the issue discussion, and should allow proper visualization when
such scenarios occur.
---
## Notes
* This implementation focuses on frontend-level filtering as suggested in
the discussion
* Happy to iterate further based on feedback (e.g., UX improvements or
backend integration if needed)
--
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]