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(dashboard): don't initially load items of hidden api widgets #50152

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

st3iny
Copy link
Member

@st3iny st3iny commented Jan 13, 2025

Summary

Before: Load items of all widgets on page load even if some are hidden.
After: Only load items of widgets that are actually enabled initially. Load items of toggled widgets on demand as soon as they are enabled.

Checklist

@st3iny
Copy link
Member Author

st3iny commented Jan 13, 2025

/backport to stable30

@st3iny
Copy link
Member Author

st3iny commented Jan 13, 2025

/backport to stable29

Copy link
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

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

🚀

@susnux
Copy link
Contributor

susnux commented Jan 13, 2025

Is there a way to test this? (To prevent regressions in the future)

@nickvergessen
Copy link
Member

Is there a way to test this? (To prevent regressions in the future)

Load the dashboard, and check how much API requests are done? But it's kind of complicated and most/all widgets are enabled by default?

@st3iny st3iny force-pushed the fix/dashboard/dont-load-hidden-widgets-initially branch from 2205d2d to 0bb7be2 Compare January 14, 2025 12:03
@st3iny st3iny enabled auto-merge January 14, 2025 12:03
@st3iny st3iny added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jan 14, 2025
@st3iny st3iny merged commit 40dd2a9 into master Jan 14, 2025
120 checks passed
@st3iny st3iny deleted the fix/dashboard/dont-load-hidden-widgets-initially branch January 14, 2025 12:13
@skjnldsv skjnldsv mentioned this pull request Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: dashboard performance 🚀
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inactive dashboard widgets still load items
3 participants