dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

[BUG] UI not refreshing when cluster members are added or removed

Open janeczku opened this issue 4 years ago • 4 comments

Rancher v2.6.3

To Reproduce

  1. Navigate to Cluster -> Explore -> RBAC -> Cluster Members
  2. Remove a member (Context Menu -> Delete)
  3. Notice that the resource remains stuck in Removing state
  4. While keeping this browser session open, login with another user account in a different browser
  5. Add a member to the cluster in the second browser session
  6. Notice that the new member is not dynamically displayed in the first browser session (browser refresh required)

Expected Result UI should be refreshed when resources are added or removed.

Screenshot 2022-01-12 at 10 41 08

janeczku avatar Jan 12 '22 09:01 janeczku

Note Cluster Members is now under the 'Cluster' menu item

nwmac avatar Apr 26 '22 13:04 nwmac

Shavin and I spent ages looking into this - there is something strange in here that is going to take longer to get to the bottom of.

nwmac avatar Jul 21 '22 12:07 nwmac

@gaktive Pushing out to 2.7.0

nwmac avatar Jul 21 '22 12:07 nwmac

Nancy fixed a similar-sounding issue https://github.com/rancher/dashboard/issues/5497 with this PR - https://github.com/rancher/ui/pull/4824 Maybe a similar change would be needed here.

catherineluse avatar Jul 21 '22 17:07 catherineluse

Steps to Reproduce:

Rancher Version : v2.6.7

  1. Create a RKE1 cluster
  2. Cluster explorer -> Cluster Members
  3. Add couple of users on the same screen
  4. Delete a Member and check if the user is deleted from the list without a screen refresh
  5. Add a User from a different screen and check if the added user is listing on the screen without a refresh

Actual: UI is not refreshed and the deleted user is not removed from the list and newly added user is not added to the list in the same screen without a screen refresh

dasarinaidu avatar Dec 02 '22 17:12 dasarinaidu

I have validated this issue on v2.7-38979f8ebe5c1ecb0121494d185758741fcb0d5b-head

All the test cases were passed and closing the issue.

Test cases executed:

  1. Rancher Types : Docker and HA installed
  2. Clusters : RKE1, RKE2 & EKS clusters
  3. User types : Admin, Standard and User base
  4. Browsers : Chrome & Firefox
  5. Modes : Light and Dark modes
  6. User Add and User Delete

Steps:

  1. Create a RKE1 cluster
  2. Cluster explorer -> Cluster Members
  3. Add couple of users on the same screen
  4. Delete a Member and check if the user is deleted from the list without a screen refresh
  5. Add a User from a different screen and check if the added user is listing on the screen without a refresh
  6. Open rancher ->Cluster->Cluster Member on TWO browser windows and Run Step 4 & 5
  7. Make sure the user additions and deletions should reflect on both screens as expected.

dasarinaidu avatar Dec 02 '22 23:12 dasarinaidu