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

refactor: use generateName instead of uuid to generate metadata.name #688

Merged

Conversation

ruibaby
Copy link
Member

@ruibaby ruibaby commented Nov 10, 2022

What type of PR is this?

/kind improvement
/milestone 2.0

What this PR does / why we need it:

使用 metadata.generateName 代替 uuid 为 metadata.name 生成值。

Ref halo-dev/halo#2563

Special notes for your reviewer:

/cc @halo-dev/sig-halo-console

测试方式:

  1. 需要 pnpm install
  2. 测试登录以及所有需要创建更新资源的业务模块。

Does this PR introduce a user-facing change?

None

@f2c-ci-robot f2c-ci-robot bot added kind/improvement Categorizes issue or PR as related to a improvement. release-note-none Denotes a PR that doesn't merit a release note. labels Nov 10, 2022
@f2c-ci-robot f2c-ci-robot bot added this to the 2.0 milestone Nov 10, 2022
@vercel
Copy link

vercel bot commented Nov 10, 2022

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

Name Status Preview Updated
ui ✅ Ready (Inspect) Visit Preview Nov 18, 2022 at 4:10AM (UTC)

@f2c-ci-robot f2c-ci-robot bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 11, 2022
@f2c-ci-robot f2c-ci-robot bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 11, 2022
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.

/lgtm

@f2c-ci-robot f2c-ci-robot bot added the lgtm Indicates that a PR is ready to be merged. label Nov 11, 2022
@ruibaby
Copy link
Member Author

ruibaby commented Nov 11, 2022

/retitle WIP: refactor: use generateName instead of uuid to generate metadata.name

@f2c-ci-robot f2c-ci-robot bot changed the title refactor: use generateName instead of uuid to generate metadata.name WIP: refactor: use generateName instead of uuid to generate metadata.name Nov 11, 2022
@f2c-ci-robot f2c-ci-robot bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 11, 2022
@f2c-ci-robot f2c-ci-robot bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 15, 2022
@ruibaby
Copy link
Member Author

ruibaby commented Nov 15, 2022

/retitle refactor: use generateName instead of uuid to generate metadata.name

@f2c-ci-robot f2c-ci-robot bot changed the title WIP: refactor: use generateName instead of uuid to generate metadata.name refactor: use generateName instead of uuid to generate metadata.name Nov 15, 2022
@f2c-ci-robot f2c-ci-robot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 15, 2022
@f2c-ci-robot f2c-ci-robot bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 17, 2022
@JohnNiang
Copy link
Member

Please resolve the conflicts before reviewing.

@ruibaby
Copy link
Member Author

ruibaby commented Nov 18, 2022

Please resolve the conflicts before reviewing.

Done

@f2c-ci-robot f2c-ci-robot bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 18, 2022
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.

/lgtm

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

@JohnNiang JohnNiang 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 Nov 18, 2022

[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 /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 Nov 18, 2022
@f2c-ci-robot f2c-ci-robot bot merged commit 616bdc8 into halo-dev:main Nov 18, 2022
@ruibaby ruibaby deleted the refactor/use-generateName-for-metadata.name branch November 19, 2022 16:10
JohnNiang pushed a commit to JohnNiang/halo that referenced this pull request Mar 2, 2023
…alo-dev/console#688)

#### What type of PR is this?

/kind improvement
/milestone 2.0

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

使用 metadata.generateName 代替 uuid 为 metadata.name 生成值。

Ref halo-dev#2563

#### Special notes for your reviewer:

/cc @halo-dev/sig-halo-console 

测试方式:

1. 需要 `pnpm install`
2. 测试登录以及所有需要创建更新资源的业务模块。

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

```release-note
None
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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-none Denotes a PR that doesn't merit a release note.
Projects
None yet
3 participants