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

   ### Motivation
   
   The `diagnosticCacheKey` helper keys the consumer-page diagnostic caches by 
instance and group, but had no direct unit coverage. This PR adds the first 
four cases.
   
   ### Changes
   
   - The key joins the instance id and group with a NUL separator.
   - A missing instance id becomes an empty first segment.
   - Instance/group boundaries stay unambiguous (`a` + `bc` never equals `ab` + 
`c`).
   - Groups sharing a prefix produce distinct keys.
   
   ### Verification
   
   - `vitest run src/pages/instance/__tests__/consumerDiagnosticKey.test.ts`: 
4/4 passed
   - `tsc --noEmit`: clean
   - `eslint src/pages/instance/__tests__/consumerDiagnosticKey.test.ts`: 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