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

   ## Summary
   
   Adds an "Export CSV" (导出 CSV) button to the user management tab of the ACL 
page. Because the backend exposes a full, non-paginated user list endpoint 
(`listAclUsers`), the button fetches the complete user inventory of the 
selected instance on click and downloads it as 
`rocketmq-acl-users-YYYY-MM-DD.csv`.
   
   Exported columns mirror the user table fields: Username, Admin, Clusters, 
Created. Credentials are never exported — `accessKey`/`secretKey` are 
intentionally excluded from the CSV columns.
   
   ## Why
   
   Operators need an offline, complete ACL user inventory for audits and 
migration planning. Exporting the full list via `listAclUsers` (instead of only 
the currently paginated page) guarantees the CSV matches the whole inventory; 
excluding credential fields keeps the export safe to share.
   
   ## Testing
   
   - Local: `cd web && ./node_modules/.bin/tsc -b tsconfig.app.json` → exit 0
   - Server (Node 20): `./node_modules/.bin/vitest run 
src/pages/instance/__tests__/AclPage.test.tsx` → 25 passed
     - exports the full ACL user inventory as CSV without credentials
     - shows an error toast when the full ACL user export fails
   


-- 
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