Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #14774
Occurred changes and/or fixed issues
Removed the caching logic for chart card data. This change ensures chart statuses (e.g., "Installed") update immediately, fixing a side-effect where a page refresh was required. The caching was originally implemented for performance, but it is no longer necessary due to several subsequent optimizations made to the charts page:
Technical notes summary
Removed the caching logic in:
shell/pages/c/_cluster/apps/charts/index.vueshell/models/chart.jsAreas or cases that should be tested
Go to the charts page and install a version of a chart that's not the latest, then come back to the charts page without refreshing the page, you should be able to see the installed and upgradeable icons on the card.
Areas which could experience regressions
The primary focus of testing should be to verify that these changes do not introduce a performance regression on the charts page.
Add a repository that hosts a large number of charts. The Bitnami repo is a good candidate:
https://charts.bitnami.com/bitnamiNavigate to the charts page and assess performance while:
The page should remain responsive. Scrolling should be smooth, and filters should apply without a noticeable lag. The overall performance should be on par with the master branch.
Screenshot/Video
cache.mov
Checklist
Admin,Standard UserandUser Base