Loyal-Young opened a new pull request, #6912:
URL: https://github.com/apache/rocketmq-dashboard/pull/6912

   ### Which issue(s) this PR fixes
   
   Fixes #6016. Resubmits the still-open fix after #6017 was closed by the 
stale workflow without merging.
   
   ### Problem
   
   The ACL cluster examine panel retained the last successful cluster result 
when an examine for another cluster failed. Its account list and risk 
assessment could then appear to belong to the newly requested cluster.
   
   ### Change
   
   - Clear the prior result as soon as a valid new examine begins. The existing 
request-generation guard still prevents an older response from replacing the 
latest request.
   - Show the returned cluster ID above the result summary so operators can 
identify which cluster the data describes.
   - Add a regression that examines cluster A, fails to examine cluster B, and 
checks that A's result is gone. The new test failed before the implementation 
change and passes afterward.
   
   ### Verification
   
   - `cd web && vitest run src/pages/instance/__tests__/AclPage.test.tsx` — 30 
passed.
   - `cd web && tsc --noEmit` — passed.
   - ESLint on both changed files — passed.
   - `git diff --check` — passed.
   
   ### AI use
   
   I used AI assistance to inspect the existing request guard, draft the 
regression test and patch, and review the test output. I verified the final 
change with the commands above.
   


-- 
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