Skip to content
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

Fix workload charts infinite spinning #2228

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

joaquimrocha
Copy link
Collaborator

This PR fixes an issue where it could lead to infinite spinning in the workload overview charts.
It also makes it more performant by not joining the workload items on every render, which could be a problem when having thousands of items.

This was reported by @lijianzhi01 .

How to test:

  • Go to the Workloads area of Headlamp -> verify that the charts do not keep spinning forever

The chart data was being accessed by using workload's names when they
were set up using workload's class names, so this led to cases where
the workload data was failed to be accessed because the name used in
the classes didn't match the class name.

Signed-off-by: Joaquim Rocha <[email protected]>
This should improve the view's performance especially when there are
thousands of workloads.

Signed-off-by: Joaquim Rocha <[email protected]>
@illume illume added bug Something isn't working frontend Issues related to the frontend regression Bugs for things that used to work in previous releases. labels Aug 5, 2024
Copy link
Collaborator

@illume illume left a comment

Choose a reason for hiding this comment

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

👍 thanks!

@illume illume merged commit ecec4f9 into main Aug 7, 2024
18 checks passed
@illume illume deleted the fix-workload-charts-infinite-spinning branch August 7, 2024 09:16
@joaquimrocha joaquimrocha added this to the v0.25.1 milestone Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Issues related to the frontend regression Bugs for things that used to work in previous releases.
Projects
Development

Successfully merging this pull request may close these issues.

2 participants