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

The "Age" column does not refresh #2726

Open
Andrew1988123123 opened this issue Dec 25, 2024 · 3 comments
Open

The "Age" column does not refresh #2726

Andrew1988123123 opened this issue Dec 25, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Andrew1988123123
Copy link

Describe the bug

The "Age" column does not refresh. I have to manually refresh the browser for the time counter to change.

To Reproduce

Steps to reproduce the bug:

  1. Go to Pods
  2. Delete some pod

Environment (please provide info about your environment):

  • Installation type: Windows-Winget/In-Cluster
  • Headlamp Version: 0.27.0

Are you able to fix this issue?

No

Additional Context

Screen.Recording.2024-12-25.161653.mp4
@skoeva
Copy link
Contributor

skoeva commented Dec 26, 2024

Hi! It's true that the Age column isn't continuously counting up in real time, but this is by design: it's only recalculated when the table re-renders to prevent excessive re-rendering and performance overhead (especially in large clusters).

If this is critical, we could modify the logic to force updates to the table, but this might introduce extra load and usually isn't necessary. Let us know if you feel this would be worth adding in

@Andrew1988123123
Copy link
Author

It is not critical. But nice to have. What do others think about this idea?

@jarkad
Copy link

jarkad commented Dec 27, 2024

If this is critical, we could modify the logic to force updates to the table, but this might introduce extra load and usually isn't necessary. Let us know if you feel this would be worth adding in

You could fetch the pod creation date, and then calculate age in the frontend. That way, you won't need expensive updates any more than you do now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

3 participants