-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom endpoint for listing user conditionally #3320
Conversation
Hi @JustinLiang522 Thanks for your contribution! Please note the check error before reviewing. /retitle Add custom endpoint for listing user conditionally |
/cc @halo-dev/sig-halo |
@JohnNiang: GitHub didn't allow me to request PR reviews from the following users: halo-dev/sig-halo. Note that only halo-dev members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
我今天将修改 Console 部分。 |
能否聚合返回用户的所有 Roles? |
那样的话我想添加一个RoleEndpoint文件,然后在里面处理Role的list请求,从而聚合返回用户的所有Role。这样做是否可以? |
/cc @halo-dev/sig-halo 重新想了一下,聚合 Role 似乎也可以不在这个 PR 做,可以合并之后再改动,因为 |
@ruibaby: GitHub didn't allow me to request PR reviews from the following users: halo-dev/sig-halo. Note that only halo-dev members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Console 已经在 halo-dev/console#862 适配,可以配合测试。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
目前为用户列表返回角色信息就是为了解决用户列表或用户登陆在没有角色查看权限时无法显示的问题 因此不太好通过 RoleEndpoint去做 直接在用户列表和登陆用户的 api 返回那些信息即可 不过此功能描述与该pr无关不再展开讨论 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JohnNiang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
#### What type of PR is this? /kind feature #### What this PR does / why we need it: 用户管理列表支持条件筛选和排序,适配:halo-dev/halo#3320 #### Which issue(s) this PR fixes: Fixes halo-dev/halo#3290 #### Screenshots: <img width="922" alt="image" src="https://user-images.githubusercontent.com/21301288/219578426-de396dfb-7ece-496e-b740-d7a36321eafb.png"> #### Special notes for your reviewer: 测试方式: 1. Halo 需要切换到 halo-dev/halo#3320 分支。 2. Console 需要 `pnpm build:packages` 3. 测试用户管理的关键词、条件、排序筛选是否工作正常。 #### Does this PR introduce a user-facing change? ```release-note Console 端的用户列表支持条件筛选和排序。 ```
…o-dev/console#862) #### What type of PR is this? /kind feature #### What this PR does / why we need it: 用户管理列表支持条件筛选和排序,适配:halo-dev#3320 #### Which issue(s) this PR fixes: Fixes halo-dev#3290 #### Screenshots: <img width="922" alt="image" src="https://user-images.githubusercontent.com/21301288/219578426-de396dfb-7ece-496e-b740-d7a36321eafb.png"> #### Special notes for your reviewer: 测试方式: 1. Halo 需要切换到 halo-dev#3320 分支。 2. Console 需要 `pnpm build:packages` 3. 测试用户管理的关键词、条件、排序筛选是否工作正常。 #### Does this PR introduce a user-facing change? ```release-note Console 端的用户列表支持条件筛选和排序。 ```
What type of PR is this?
/kind bug
What this PR does / why we need it:
为后端用户管理提供更多筛选接口,包括关键词、角色、创建时间排序
Which issue(s) this PR fixes:
Fixes #3290