Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: default value cannot be read when the setting is not created because of asynchrony #3236

Merged
merged 2 commits into from
Feb 8, 2023

Conversation

guqing
Copy link
Member

@guqing guqing commented Feb 6, 2023

What type of PR is this?

/kind improvement
/area core
/milestone 2.2.x
/cherry-pick release-2.2

What this PR does / why we need it:

修复插件安装时有几率出现设置没有默认值导致无法保存的问题

see #3224 (comment) for more details

Which issue(s) this PR fixes:

Fixes #3224

Special notes for your reviewer:

how to test it?

  1. 安装 https://github.com/halo-sigs/plugin-feed 插件并立即启用(或以开发模式)
  2. 到此插件设置始终能查询到默认值并且能保存

/cc @halo-dev/sig-halo

Does this PR introduce a user-facing change?

修复插件安装时有几率出现设置没有默认值导致无法保存的问题

@f2c-ci-robot f2c-ci-robot bot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Feb 6, 2023
@f2c-ci-robot f2c-ci-robot bot added this to the 2.2.x milestone Feb 6, 2023
@f2c-ci-robot f2c-ci-robot bot added kind/improvement Categorizes issue or PR as related to a improvement. area/core Issues or PRs related to the Halo Core labels Feb 6, 2023
Copy link
Member

@ruibaby ruibaby left a comment

Choose a reason for hiding this comment

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

/lgtm

image

@f2c-ci-robot f2c-ci-robot bot added the lgtm Indicates that a PR is ready to be merged. label Feb 7, 2023
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 Feb 8, 2023

[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 Feb 8, 2023
@f2c-ci-robot f2c-ci-robot bot merged commit 7453b93 into halo-dev:main Feb 8, 2023
@ruibaby
Copy link
Member

ruibaby commented Feb 10, 2023

/cherry-pick release-2.2

@halo-dev-bot
Copy link
Collaborator

@ruibaby: new pull request created: #3277

In response to this:

/cherry-pick release-2.2

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.

f2c-ci-robot bot pushed a commit that referenced this pull request Feb 10, 2023
…ot created because of asynchrony (#3277)

This is an automated cherry-pick of #3236

/assign ruibaby

```release-note
修复插件安装时有几率出现设置没有默认值导致无法保存的问题
```
@ruibaby ruibaby modified the milestones: 2.2.x, 2.3.0 Feb 10, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/core Issues or PRs related to the Halo Core 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.

插件安装之后无法保存设置
4 participants