Aias00 opened a new pull request, #923: URL: https://github.com/apache/rocketmq-dashboard/pull/923
### What is changed This PR fixes #922 by applying the selected time range to mock message queries. ### Why The Message page sends `startTime` and `endTime` for topic-based queries, but the mock service ignored both fields and returned every topic/tag match. That made mock mode diverge from the real query contract and could show messages outside the selected window. ### How it is fixed - Parse each mock message `storeTime` into a timestamp. - Apply inclusive `startTime` / `endTime` filters before sorting results. - Add regression coverage for a narrow topic time window. ### Verification - `npm test -- --run src/services/messageService.test.ts` - `git diff --check` - `npm run lint -- src/services/messageService.ts src/services/messageService.test.ts` (passes with existing fast-refresh warnings in unrelated files) -- 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]
