-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Fix the misalignment of gantt view progress bars (#55061) #55291
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
base: main
Are you sure you want to change the base?
Fix the misalignment of gantt view progress bars (#55061) #55291
Conversation
There was a problem hiding this 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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
labels: chartLabels, | |
labels: flatNodes.map((node) => node.id), |
I think it would be better and more clear in this way.
There was a problem hiding this comment.
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], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[data, chartLabels], | |
[data, flatNodes], |
We could add |
aha, copy that, thanks for all the suggestions, :) |
Hello,
This is a fix for the gannt view progress bar misalignment with dag versioning (#55061).
closes: #55061
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.