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

introduce ConfigPostProcessor extension #943

Merged
merged 8 commits into from
Dec 22, 2020
Merged

introduce ConfigPostProcessor extension #943

merged 8 commits into from
Dec 22, 2020

Conversation

beiwei30
Copy link
Member

What this PR does:

introduce ConfigPostProcessor extension so that user can customize configs for both ServiceConfig and ReferenceConfig further during deployment time.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@codecov-io
Copy link

codecov-io commented Dec 18, 2020

Codecov Report

Merging #943 (95432d1) into develop (e2954fe) will increase coverage by 0.23%.
The diff coverage is 22.22%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #943      +/-   ##
===========================================
+ Coverage    59.92%   60.16%   +0.23%     
===========================================
  Files          260      261       +1     
  Lines        12840    12895      +55     
===========================================
+ Hits          7695     7758      +63     
+ Misses        4186     4177       -9     
- Partials       959      960       +1     
Impacted Files Coverage Δ
common/extension/config_post_processor.go 0.00% <0.00%> (ø)
config/reference_config.go 81.00% <50.00%> (-0.64%) ⬇️
config/service_config.go 62.50% <50.00%> (-0.18%) ⬇️
registry/protocol/protocol.go 76.96% <0.00%> (-0.88%) ⬇️
registry/nacos/service_discovery.go 64.13% <0.00%> (-0.45%) ⬇️
protocol/dubbo/impl/hessian.go 29.17% <0.00%> (ø)
cluster/router/chain/chain.go 68.54% <0.00%> (+1.08%) ⬆️
common/url.go 59.62% <0.00%> (+1.10%) ⬆️
...tocol/rest/server/server_impl/go_restful_server.go 48.78% <0.00%> (+4.87%) ⬆️
... and 2 more

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 e2954fe...95432d1. Read the comment docs.

@zouyx zouyx added this to the v1.5.6 milestone Dec 20, 2020
@zouyx zouyx added the improve Refactor or improve label Dec 20, 2020
@watermelo watermelo self-requested a review December 21, 2020 03:11
@beiwei30
Copy link
Member Author

@watermelo in order to give more flexibility to the implementation. I introduce an empty interface for the parameter instead of a parameter's type, since people may need to look into other infos like interface or others.

@beiwei30
Copy link
Member Author

pls. hold on, I am still working on a better idea.

@beiwei30
Copy link
Member Author

@AlexStocks @watermelo @cityiron would you mind to review the new solution again?

@AlexStocks AlexStocks merged commit f8c8593 into apache:develop Dec 22, 2020
@beiwei30 beiwei30 deleted the config-post-processor branch December 23, 2020 02:52
AlexStocks added a commit that referenced this pull request Apr 14, 2021
introduce ConfigPostProcessor extension
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improve Refactor or improve
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants