yyqdbngt opened a new pull request, #4058: URL: https://github.com/apache/rocketmq-dashboard/pull/4058
## Summary ACL「用户管理」tab 用户表上方新增「状态:全部 / 管理员 / 普通用户」过滤(Select,样式与规则过滤一致)。 现状调研:用户数据模型(`server/.../instance/acl/AclUserVO.java`、`RmqAclUser` 实体)没有任何 enabled/status 字段;腾讯云 provider(`TencentAclService` 的 RoleItem 映射)同样没有状态字段,阿里云 provider 没有 ACL 用户模型;后端 `listAclUsers` / `pageAclUsers` 也无 status 查询参数。因此无法做服务端过滤,本 PR 采用纯前端表格列过滤:基于用户唯一的角色状态 `admin`(管理员/普通用户)过滤当前已加载列表,不新增请求。若未来后端补充 enabled/status 字段,可将该 Select 直接接到服务端参数。 ## Why 用户列表量大时难以快速区分管理员与普通用户;状态过滤提升管理效率。 ## Testing - 本地编译:`cd web && ./node_modules/.bin/tsc -b tsconfig.app.json`(exit 0) - 前端测试:`./node_modules/.bin/vitest run src/pages/instance/__tests__/AclPage.test.tsx` 全绿;新增用例覆盖 全部→管理员→普通用户→全部 的过滤交互。 - 无后端改动,故无 mvn 测试。 -- 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]
