You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 15, 2022. It is now read-only.
So that: front end does not have to call 4 different endpoints, and API limits would not be hit
Describe the solution you'd like:
There's a branch in spektate with backend caching work. Utilize this and extend it to be used in front end.
Find every API call that is being made for every deployment (it should be just /api/author and /api/pr) these should be contained within the data returned from /api/deployments and the API calls for these should be removed. Extract this data from /api/deployments instead
/api/clustersync is a single one time call and can stay
Test the scenario where deployments that are in progress are being refreshed quickly, whereas deployments that have completed and will never change can be fetched from cache repeatedly.
Acceptance Criteria:
Caching is being used through the dashboard
Describe alternatives you've considered:
No caching