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

   ## Summary
   
   - Reject Mock instance creation when its trimmed name already exists, 
including whitespace-padded copies.
   - Keep the existing instance inventory unchanged after the rejected create.
   - Add a regression test that failed on the original Mock service and passes 
with the guard.
   
   Fixes #7236.
   
   ## Verification
   
   - Before the fix: the new regression failed because a duplicate Mock row was 
created.
   - `npm test -- --run src/services/instanceService.test.ts`: 16 passed after 
the fix.
   - Changed-file ESLint and Prettier checks passed; `git diff --check` passed.
   
   ## Related work
   
   #6825 covers blank instance names and endpoints in Mock mode. This PR covers 
the separate duplicate-name rule enforced by the backend.
   
   ## AI assistance
   
   I used AI assistance to compare Mock instance creation with the backend's 
uniqueness check and to draft the regression. I reproduced the failure, 
reviewed the two-file patch, and ran the focused checks locally.
   


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