trento
trento copied to clipboard
Optimize loading Check catalogs and settings in the UI
Loading the Connection settings and Checks selection in the Cluster Detail page is the result of 2 http requests the frontend makes to the APIs.
GET /api/checks/:clusterId/settings
and GET /api/checks/catalog
Those requests are made at different points in time:
- when the page is loaded
- when we click on the settings button
- when we close the modal without saving changes
- after we saved the settings
we can reduce the number of http requests made at certain points when they're not strictly needed.
Let's define when those are needed and when we can avoid.