Introduces an hook to poll the details of a cluster to fix an erroroneus behavior of the "Stop compute fleet" button inside the wizard.
I choose a plain setInterval approach instead of going full react-query because its refetch API is tricky to use with this specific case.
Fixes #150.
How Has This Been Tested?
stopped a cluster and verified that split panel details are updated correctly
stopped a cluster while editing its configuration and verified the button stops spinning after shutdown
PR Quality Checklist
[x] I added tests to new or existing code
[ ] I removed hardcoded strings and used our i18n solution instead (see here)
[ ] I made sure no sensitive info gets logged at any time in the codebase (see here) (e.g. no user info or details, no stacktraces, etc.)
[ ] I checked that infrastructure/update_infrastructure.sh runs without any error
[x] I checked that npm run build builds without any error
[x] I checked that clusters are listed correctly
[ ] I checked that a new cluster can be created (config is produced and dry run passes)
[ ] I checked that login and logout work as expected
Description
Introduces an hook to poll the details of a cluster to fix an erroroneus behavior of the "Stop compute fleet" button inside the wizard. I choose a plain
setInterval
approach instead of going fullreact-query
because its refetch API is tricky to use with this specific case.Fixes #150.
How Has This Been Tested?
PR Quality Checklist
i18n
solution instead (see here)npm 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.