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: unable to merge configurations from the config_center #2616

Merged
merged 1 commit into from
Mar 10, 2024

Conversation

FinalT
Copy link
Member

@FinalT FinalT commented Mar 10, 2024

refer:#2614

Copy link

sonarcloud bot commented Mar 10, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
7.0% Duplication on New Code

See analysis details on SonarCloud

@FinalT FinalT changed the title fix: unable to merge configurations the from config_center fix: unable to merge configurations from the config_center Mar 10, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 292 lines in your changes are missing coverage. Please review.

Project coverage is 47.19%. Comparing base (b645659) to head (eb90d7c).

❗ Current head eb90d7c differs from pull request most recent head 8572d49. Consider uploading reports for the commit 8572d49 to get more accurate results

Files Patch % Lines
compat.go 0.00% 291 Missing ⚠️
options.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2616      +/-   ##
==========================================
- Coverage   47.73%   47.19%   -0.55%     
==========================================
  Files         341      341              
  Lines       24994    25286     +292     
==========================================
+ Hits        11931    11933       +2     
- Misses      11908    12198     +290     
  Partials     1155     1155              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -90,6 +90,7 @@ func (rc *InstanceOptions) init(opts ...InstanceOption) error {
log.Infof("[Config Center] Config center doesn't start")
log.Debugf("config center doesn't start because %s", err)
} else {
compatInstanceOptions(rcCompat, rc)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the reverse operation of compatRootConfig(c *InstanceOptions) *config.RootConfig? This is to copy configurations in RootConfig into InstanceOptions while compatRootConfig(c *InstanceOptions) *config.RootConfig does the opposite.

@chickenlj chickenlj merged commit 333cba2 into apache:main Mar 10, 2024
5 checks passed
FoghostCn pushed a commit to FoghostCn/dubbo-go that referenced this pull request Mar 27, 2024
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.

3 participants