Skip to content
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

Fix vm list stuck loading #803

Conversation

avivtur
Copy link
Member

@avivtur avivtur commented Aug 1, 2022

Signed-off-by: Aviv Turgeman aturgema@redhat.com

📝 Description

When a non-priv user reaches VM list page with no namespace selected the page is looks like it's stuck on loading

🎥 Demo

before:

vm_list_stuck_loading_non_priv_user_all_namespaces.mp4

after:

Screenshot (86)

@openshift-ci openshift-ci bot added the approved This issue is something we want to fix label Aug 1, 2022
useEffect(() => {
if (!getListAllowed) {
setData([]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

already empty array

useEffect(() => {
if (!getListAllowed) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think is better to add loaded of useAccessReview to this condition

Signed-off-by: Aviv Turgeman <aturgema@redhat.com>
@avivtur avivtur force-pushed the stuck_loading_vm_page_non_priv_user branch from c6a959a to 6f657d6 Compare August 2, 2022 09:44
@metalice
Copy link
Member

metalice commented Aug 2, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Passed code review, ready for merge label Aug 2, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 2, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: avivtur, metalice

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 4735a62 into kubevirt-ui:main Aug 2, 2022
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This issue is something we want to fix lgtm Passed code review, ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants