Skip to content

[SCB-2670] support CSE version level configuration query#3288

Merged
liubao68 merged 1 commit intoapache:masterfrom
lbc97:master
Aug 19, 2022
Merged

[SCB-2670] support CSE version level configuration query#3288
liubao68 merged 1 commit intoapache:masterfrom
lbc97:master

Conversation

@lbc97
Copy link
Copy Markdown
Contributor

@lbc97 lbc97 commented Aug 17, 2022

…onfiguration item.

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a JIRA issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [SCB-XXX] Fixes bug in ApproximateQuantiles, where you replace SCB-XXX with the appropriate JIRA issue.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean install -Pit to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 17, 2022

Codecov Report

Merging #3288 (4ebcf71) into master (1e66f96) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

❗ Current head 4ebcf71 differs from pull request most recent head 8579695. Consider uploading reports for the commit 8579695 to get more accurate results

@@             Coverage Diff              @@
##             master    #3288      +/-   ##
============================================
- Coverage     77.45%   77.43%   -0.02%     
  Complexity     1449     1449              
============================================
  Files          1648     1648              
  Lines         43659    43677      +18     
  Branches       3674     3675       +1     
============================================
+ Hits          33816    33823       +7     
- Misses         8317     8329      +12     
+ Partials       1526     1525       -1     
Impacted Files Coverage Δ
...kie/client/model/ConfigurationsRequestFactory.java 0.00% <0.00%> (ø)
...comb/config/kie/client/model/KieConfiguration.java 0.00% <0.00%> (ø)
...a/org/apache/servicecomb/config/kie/KieConfig.java 0.00% <0.00%> (ø)
...icecomb/config/kie/KieConfigurationSourceImpl.java 0.00% <0.00%> (ø)
...he/servicecomb/foundation/common/net/NetUtils.java 64.80% <0.00%> (-1.61%) ⬇️
...egistry/client/http/ServiceRegistryClientImpl.java 71.31% <0.00%> (+1.14%) ⬆️
...mb/serviceregistry/client/http/RestClientUtil.java 80.37% <0.00%> (+1.86%) ⬆️
...comb/core/definition/MicroserviceVersionsMeta.java 100.00% <0.00%> (+5.26%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more


private static final int CUSTOM_ORDER = 300;

private static final int INSTANCE_ORDER = 400;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

order should less than SERVICE_ORDER

.setEnableCustomConfig(KieConfig.INSTANCE.enableCustomConfig())
.setEnableLongPolling(KieConfig.INSTANCE.enableLongPolling())
.setEnableServiceConfig(KieConfig.INSTANCE.enableServiceConfig())
.setEnableInstanceConfig(KieConfig.INSTANCE.enableInstanceConfig())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ServiceVersionConfig is better, not instance config

@lbc97 lbc97 force-pushed the master branch 2 times, most recently from 1ecccc3 to 330c703 Compare August 18, 2022 12:11
}

private static ConfigurationsRequest createInstanceConfigurationsRequest(KieConfiguration configuration) {
return new ConfigurationsRequest()
Copy link
Copy Markdown
Contributor

@liubao68 liubao68 Aug 18, 2022

Choose a reason for hiding this comment

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

createVersionConfigurationsRequest

Comment thread demo/demo-cse-v2/README.md Outdated
test:
priority1: v2
```
* 实例级配置:consumerIns.yaml,labels: app=demo-java-chassis-cse-v2,environment=,service=consumer,version = 0.0.1。类型为 yaml。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

版本级配置

Comment thread demo/demo-cse-v2/README.md Outdated
* 执行 tests-client 里面的集成测试用例 (成功)

* 修改
* 实例级配置:consumerIns.yaml。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

版本级配置

@liubao68 liubao68 changed the title [SCB-2670] support CSE instance-level configuration query [SCB-2670] support CSE version level configuration query Aug 19, 2022
@lbc97 lbc97 force-pushed the master branch 2 times, most recently from 8fc3ecf to 9090e2e Compare August 19, 2022 02:51
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