This PR adds a page reachable via the cluster actions, which shows the cost data for the selected cluster.
In order to reduce calls to Cost Explorer to a minimum, the staleTime of the queries is set to Infinity, thus new data is getting fetched only on page reload.
This PR builds upon #204 . Even though it is not merged yet, this is safe to merge as it is being protected by a feature flag.
Please note: copy is not definitive and hasn't been reviewed yet
Changes
add new cluster action to View Costs
add new /costs page
set staleTime of queries to Infinity
Screenshots
How Has This Been Tested?
manually, by mocking backend responses
manually, by integrating locally with #204 and checking that data is graphed as expected
Description
This PR adds a page reachable via the cluster actions, which shows the cost data for the selected cluster.
In order to reduce calls to Cost Explorer to a minimum, the
staleTime
of the queries is set toInfinity
, thus new data is getting fetched only on page reload.This PR builds upon #204 .
Even though it is not merged yet, this is safe to merge as it is being protected by a feature flag.Please note: copy is not definitive and hasn't been reviewed yet
Changes
staleTime
of queries toInfinity
Screenshots
How Has This Been Tested?
PR Quality Checklist
react-i18next
library (useTranslation hook and/or Trans component), see an example herenpm run build
builds without any errorIn order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.