tju-yxq opened a new pull request, #3398: URL: https://github.com/apache/rocketmq-dashboard/pull/3398
## What changed The audit dashboard showed an operator column and a unique-operator statistic, but the only way to focus on one operator was the general search box. That search matches operator, resource, and detail text together, so it cannot express an exact operator filter and often returns unrelated records. This change adds first-class operator filtering: - return distinct persisted operator values from the filter-options API; - add an operator selector next to the existing audit filters; - accept an `operator` request parameter for list, summary, and export endpoints; - apply it as an exact `operator =` predicate in the repository; - keep the existing free-text search behavior unchanged; - update controller, service, repository, and dashboard tests. Because the same filter object is used for records, summary, and export, all three views stay consistent when an operator is selected. Closes #3387 ## Validation - `mvn -q '-Dtest=AuditControllerTest,AuditServiceTest,MybatisPlusAuditRepositoryTest' test` — 34 tests passed - `mvn -q checkstyle:check` — passed - `npm test -- AuditPage.test.tsx --run` — 9 tests passed - `npm test -- audit.test.ts opsService.test.ts --run` — 18 tests passed - `npm run lint -- --quiet` — 0 errors; 10 existing warnings remain elsewhere in the tree - `npm run build` — passed - `git diff --check` — passed The GitHub Actions status is not being described as green here; the checks above are local validation on this branch. -- 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]
