Skip to content
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

Fix: Make the Consumer config property Check available #1568

Merged
merged 28 commits into from
Nov 9, 2021

Conversation

PhilYue
Copy link
Member

@PhilYue PhilYue commented Nov 7, 2021

What this PR does:
Make the Consumer config property Check available

Which issue(s) this PR fixes:

Fixes #1555

Special notes for your reviewer:

  • in the Consumer service, the Reference config property check use the Consumer config when omitted.
  • cancel default value of the Reference config property check

Does this PR introduce a user-facing change?:

NONE


AlexStocks and others added 27 commits May 9, 2021 15:05
…ache#1387)

Bumps [github.com/dubbogo/gost](https://github.com/dubbogo/gost) from 1.11.14 to 1.11.16.
- [Release notes](https://github.com/dubbogo/gost/releases)
- [Commits](dubbogo/gost@v1.11.14...v1.11.16)

---
updated-dependencies:
- dependency-name: github.com/dubbogo/gost
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…pache#1386)

Bumps [google.golang.org/protobuf](https://github.com/protocolbuffers/protobuf-go) from 1.26.0 to 1.27.1.
- [Release notes](https://github.com/protocolbuffers/protobuf-go/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf-go/blob/master/release.bash)
- [Commits](protocolbuffers/protobuf-go@v1.26.0...v1.27.1)

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
….0 (apache#1383)

Bumps [go.etcd.io/etcd/client/v3](https://github.com/etcd-io/etcd) from 3.5.0-alpha.0 to 3.5.0.
- [Release notes](https://github.com/etcd-io/etcd/releases)
- [Changelog](https://github.com/etcd-io/etcd/blob/main/CHANGELOG-3.5.md)
- [Commits](etcd-io/etcd@v3.5.0-alpha.0...v3.5.0)

---
updated-dependencies:
- dependency-name: go.etcd.io/etcd/client/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@@ -46,7 +46,7 @@ type ReferenceConfig struct {
pxy *proxy.Proxy
id string
InterfaceName string `required:"true" yaml:"interface" json:"interface,omitempty" property:"interface"`
Check *bool `default:"true" yaml:"check" json:"check,omitempty" property:"check"`
Check *bool `yaml:"check" json:"check,omitempty" property:"check"`
Copy link
Contributor

Choose a reason for hiding this comment

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

为什么要删除default设置

Copy link
Member Author

Choose a reason for hiding this comment

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

为了让 Reference Config 的 check 延用 Consumer Config 的 check 配置,
如果 reference 的 check 有默认值,就没法判断是用户自己配置的还是默认的

@LaurenceLiZhixin
Copy link
Contributor

I would merge master to your repo, and ci may pass.

@LaurenceLiZhixin LaurenceLiZhixin changed the base branch from master to 3.0 November 8, 2021 09:10
@codecov-commenter
Copy link

Codecov Report

Merging #1568 (f56cb86) into 3.0 (cbb502f) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##              3.0    #1568   +/-   ##
=======================================
  Coverage   41.83%   41.84%           
=======================================
  Files         258      258           
  Lines       15115    15117    +2     
=======================================
+ Hits         6324     6325    +1     
- Misses       8049     8050    +1     
  Partials      742      742           
Impacted Files Coverage Δ
config/reference_config.go 0.00% <0.00%> (ø)
cluster/cluster/base/cluster_invoker.go 24.17% <0.00%> (-13.19%) ⬇️
metadata/report/delegate/delegate_report.go 35.09% <0.00%> (+8.60%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cbb502f...f56cb86. Read the comment docs.

@justxuewei justxuewei merged commit eb6010c into apache:3.0 Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consumer Level check set to false doesn't work.
10 participants