-
Notifications
You must be signed in to change notification settings - Fork 69
feat(ws): use workspace counts from API response #508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>
|
/ok-to-test |
paulovmr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
ederign
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ederign The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>
Signed-off-by: Guilherme Caponetto <638737+caponetto@users.noreply.github.com>
closes: #418
This pull request introduces enhancements to the workspace management system, focusing on improving the handling of workspace counts, adding support for cluster metrics, and improving test coverage. The key changes include updating the
useWorkspaceCountPerKindhook to use the data provided by the backend instead of manually calculating them, adding cluster metrics to workspace-related types, and introducing tests for workspace count calculations.Also in this PR:
NamespaceContextProviderto ensure the last used namespace is valid and falls back to the first available namespace if necessary.WorkspaceKindDetailsTablewhererowPages[page - 1]could be undefined, preventing runtime errors. The empty state will be addressed in [TASK] Create Empty State for WorkspaceKinds Detail Table #504.