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

   ### Motivation
   
   The message query history API tests exercised two endpoints with 
fully-populated params, leaving the `queryType` forwarding, param-omission 
semantics, trace search, and the saved-query result snapshot endpoint 
unasserted. This PR grows the suite from 2 to 7 cases.
   
   ### Changes
   
   - `listMessageQueryHistory` forwards `queryType` (e.g. `MSG_ID`) together 
with search and pagination.
   - Calling the list or summary endpoints without any params sends no query 
params at all (`config.params` undefined), matching the backend's optional 
filters.
   - `listTraceQueryHistory` forwards the trace `search` term alongside the 
cluster id.
   - `getMessageQueryResults` hits the per-query results URL 
(`/query-history/messages/{id}/results`) and returns the decoded snapshot rows.
   - A query that produced no hits resolves to an empty snapshot array.
   
   ### Verification
   
   - `vitest run src/api/messageHistory.test.ts`: 7/7 passed
   - `tsc --noEmit`: clean
   - `eslint src/api/messageHistory.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