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

   ## Summary
   
   - declare ownership of mock client inventories by Studio instance
   - enforce the real endpoint's required instance scope in mock mode
   - layer cluster and type filters after instance isolation
   - retain defensive copies and add isolation/contract regression coverage
   
   ## Problem
   
   Mock mode ignored `instanceId` and returned the global client inventory. 
Switching instances could therefore show connections from another instance, 
while missing and unknown instances still exposed unrelated fixture data.
   
   ## Verification
   
   - `npm test -- src/services/connectionsService.test.ts 
src/api/connections.test.ts` (6 tests passed)
   - `npx eslint src/mock/clients.ts src/services/connectionsService.ts 
src/services/connectionsService.test.ts`
   - `npx prettier --check src/mock/clients.ts 
src/services/connectionsService.ts src/services/connectionsService.test.ts`
   - `npm run build`
   - `git diff --check`
   
   Closes #2250
   


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