Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

refactor: request api of user data #882

Merged
merged 1 commit into from
Feb 24, 2023

Conversation

ruibaby
Copy link
Member

@ruibaby ruibaby commented Feb 24, 2023

What type of PR is this?

/kind improvement

What this PR does / why we need it:

重构获取用户信息的请求方式,无需再请求所有角色即可获取当前用户的角色信息,适配:halo-dev/halo#3372

相关 PR:#847

Which issue(s) this PR fixes:

Fixes halo-dev/halo#3342

Special notes for your reviewer:

测试方式:

  1. Halo 需要切换到 feat: add role information for user-related custom endpoint halo#3372 分支。
  2. Console 需要 pnpm install && pnpm build:packages
  3. 测试用户列表、登录、检查角色信息是否显示正确。

Does this PR introduce a user-facing change?

优化 Console 端用户角色标识的显示名称。

@f2c-ci-robot f2c-ci-robot bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/improvement Categorizes issue or PR as related to a improvement. labels Feb 24, 2023
@vercel
Copy link

vercel bot commented Feb 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
ui ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 24, 2023 at 3:16AM (UTC)

@LIlGG
Copy link
Member

LIlGG commented Feb 24, 2023

/lgtm

没有角色权限的用户角色信息也能正常显示。

image

@f2c-ci-robot f2c-ci-robot bot added the lgtm Indicates that a PR is ready to be merged. label Feb 24, 2023
Copy link
Member

@guqing guqing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Feb 24, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: guqing, LIlGG

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@f2c-ci-robot f2c-ci-robot bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 24, 2023
@f2c-ci-robot f2c-ci-robot bot merged commit 6244e8b into halo-dev:main Feb 24, 2023
@ruibaby ruibaby deleted the refactor/user-roles branch February 24, 2023 06:06
@ruibaby ruibaby modified the milestones: 2.3.x, 2.3.0 Feb 24, 2023
JohnNiang pushed a commit to JohnNiang/halo that referenced this pull request Mar 2, 2023
#### What type of PR is this?

/kind improvement

#### What this PR does / why we need it:

重构获取用户信息的请求方式,无需再请求所有角色即可获取当前用户的角色信息,适配:halo-dev#3372

相关 PR:halo-dev/console#847

#### Which issue(s) this PR fixes:

Fixes halo-dev#3342

#### Special notes for your reviewer:

测试方式:

1. Halo 需要切换到 halo-dev#3372 分支。
2. Console 需要 `pnpm install && pnpm build:packages`
3. 测试用户列表、登录、检查角色信息是否显示正确。

#### Does this PR introduce a user-facing change?

```release-note
优化 Console 端用户角色标识的显示名称。
```
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/improvement Categorizes issue or PR as related to a improvement. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

关于用户的接口,建议聚合返回用户的角色信息
3 participants