Skip to content
This repository was archived by the owner on Feb 15, 2022. It is now read-only.
This repository was archived by the owner on Feb 15, 2022. It is now read-only.

Dashboard should utilize caching in front end #1318

@samiyaakhtar

Description

@samiyaakhtar

As a: developer of Spektate

I want: to utilize caching in the backend

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

Additional context:

Does this require updates to documentation?: No

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions