iloveeyjafjalla opened a new pull request, #6937:
URL: https://github.com/apache/rocketmq-dashboard/pull/6937

   Fixes #6936
   
   ## The defect
   
   Resetting another user's password revokes all their sessions server-side, 
but the page only closed the dialog: the row's active-session count, last-seen 
and nearest-expiry stayed, and the overview card kept counting the revoked 
sessions, while the same row's Sessions drawer (fetched fresh) showed none.
   
   ## The fix
   
   The reset path now bumps the `refreshVersion` counter that enable/revoke 
already use, so the users page and the session overview are read again. 
Same-page freshness only; no new endpoint.
   
   ## Tests
   
   Red before the change:
   
   ```
   AssertionError: expected 1 to be greater than or equal to 2    
(listStudioUsers calls)
   ```
   
   The new case resets a password for another user and pins that both 
`listStudioUsers` and `getStudioUserSessionOverview` are reached again. Green 
after (`UserManagement.test.tsx` 17/17), with `tsc -b`, eslint and prettier 
clean.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to