coder999o opened a new pull request, #2638: URL: https://github.com/apache/rocketmq-dashboard/pull/2638
## What is the purpose of the change Complete the Consumer Group import/export flow in RocketMQ Studio. The frontend already exposed import/export actions, but export rebuilt CSV from client-side full-list reads and import called the single create API once per row. This adds server-side `/api/groups/export` and `/api/groups/import` contracts so the selected instance, search, subscription-mode filter, sort order, CSV escaping, and row-level import failures are handled consistently. ## Brief changelog - Add Consumer Group export API with selected instance/search/filter/sort/name parameters and CSV formula escaping. - Add Consumer Group bulk import API with a 100-row limit, selected-instance normalization, partial-success handling, and row-level failure details. - Wire the Consumer Group page and service layer to the new backend import/export contracts while preserving the existing CSV preview and retry-failed-row UX. - Add backend controller/service tests and frontend API/page tests for the new contracts. ## Verifying this change - `JAVA_HOME=/Users/yx9o/home/env/jdk-22.0.2.jdk/Contents/Home mvn -Dtest=ConsumerGroupControllerTest,MetadataServiceTest test` - `npm test -- --run src/api/metadata.test.ts src/pages/instance/__tests__/ConsumerPage.test.tsx` - `npm run build` - `git diff --check` -- 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]
