Skip to content

Conversation

yimingpeng
Copy link

@yimingpeng yimingpeng commented Sep 5, 2025

Hello,
This is a fix for the gannt view progress bar misalignment with dag versioning (#55061).

closes: #55061

image

hello @guan404ming, could you please review when you have a chance? Thank you!


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an 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 a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Sep 5, 2025
Copy link
Contributor

@guan404ming guan404ming left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for the fix.
Some nits.

@@ -185,9 +187,9 @@ export const Gantt = ({ limit }: Props) => {
minBarLength: MIN_BAR_WIDTH,
},
],
labels: [],
labels: chartLabels,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
labels: chartLabels,
labels: flatNodes.map((node) => node.id),

I think it would be better and more clear in this way.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, I was thinking to get the labels specifically memoized would be performant but could be trivial, thanks and making the updates now.

}),
[data],
[data, chartLabels],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[data, chartLabels],
[data, flatNodes],

@guan404ming
Copy link
Contributor

guan404ming commented Sep 6, 2025

Closes https://github.com/apache/airflow/issues/55061

We could add closes and the issue number in PR description then it would be automatically linked to the corresponding issue~

@yimingpeng
Copy link
Author

Closes https://github.com/apache/airflow/issues/55061

We could add closes and the issue number in PR description then it would be automatically linked to the corresponding issue~

aha, copy that, thanks for all the suggestions, :)

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gantt view progress bars are not aligning with actual tasks with DAG versioning
2 participants