-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
feature:expands grayscale publishing capabilities to support dimensio… #4013
Conversation
…ns other than IP fix apolloconfig#2932
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
Is i.e {
"ip": "10.240.50.100",
"appId": "my-app-id"
} |
Codecov Report
@@ Coverage Diff @@
## master #4013 +/- ##
============================================
+ Coverage 51.46% 51.54% +0.08%
- Complexity 2524 2533 +9
============================================
Files 484 484
Lines 14798 14839 +41
Branches 1532 1537 +5
============================================
+ Hits 7616 7649 +33
- Misses 6652 6658 +6
- Partials 530 532 +2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feature looks great! Please find some comments below.
BTW, there are some bugs regarding the grayscale rule setup for public namespaces. I fixed 2 of them in the comments and there is one bug left to you to fix.
...src/test/java/com/ctrip/framework/apollo/biz/grayReleaseRule/GrayReleaseRulesHolderTest.java
Outdated
Show resolved
Hide resolved
...src/test/java/com/ctrip/framework/apollo/biz/grayReleaseRule/GrayReleaseRulesHolderTest.java
Outdated
Show resolved
Hide resolved
...src/test/java/com/ctrip/framework/apollo/biz/grayReleaseRule/GrayReleaseRulesHolderTest.java
Show resolved
Hide resolved
apollo-client/src/main/java/com/ctrip/framework/apollo/internals/RemoteConfigRepository.java
Outdated
Show resolved
Hide resolved
apollo-client/src/main/java/com/ctrip/framework/apollo/util/ConfigUtil.java
Outdated
Show resolved
Hide resolved
apollo-core/src/main/java/com/ctrip/framework/apollo/core/ConfigConsts.java
Outdated
Show resolved
Hide resolved
apollo-portal/src/main/resources/static/scripts/directive/namespace-panel-directive.js
Outdated
Show resolved
Hide resolved
apollo-portal/src/main/resources/static/views/component/gray-release-rules-modal.html
Outdated
Show resolved
Hide resolved
apollo-portal/src/main/resources/static/views/component/gray-release-rules-modal.html
Outdated
Show resolved
Hide resolved
Yes, the storage format of |
BTW, please also update the CHANGES.md |
…ns other than IP fix apolloconfig#2932
Thank you for your review, I have modified according to your comments. |
apollo-client/src/main/java/com/ctrip/framework/apollo/util/ConfigUtil.java
Outdated
Show resolved
Hide resolved
Looks great now! |
…ns other than IP fix apolloconfig#2932
apollo-portal/src/main/resources/static/scripts/directive/gray-release-rules-modal-directive.js
Outdated
Show resolved
Hide resolved
apollo-portal/src/main/resources/static/scripts/directive/gray-release-rules-modal-directive.js
Outdated
Show resolved
Hide resolved
apollo-portal/src/main/resources/static/scripts/directive/gray-release-rules-modal-directive.js
Outdated
Show resolved
Hide resolved
apollo-portal/src/main/resources/static/views/component/gray-release-rules-modal.html
Outdated
Show resolved
Hide resolved
apollo-portal/src/main/resources/static/views/component/gray-release-rules-modal.html
Outdated
Show resolved
Hide resolved
…ns other than IP fix apolloconfig#2932
How about use config apollo.labels.ip=xxx
apollo.labels.zone=beijing
apollo.labels.bu=pay to represent {
"ip": "xxx",
"zone": "beijing",
"bu": "pay"
} i.e User can write multiple lines instead of write all in one line. One line is represent a key value pair. In spring, the properties class is
labels will load on runtime. We can manually load it without spring. |
Sorry, the previous question was answered incorrectly, |
The implementation of the summer 2021 task is a little different from what we previously discussed:
The above 2 differences might make the rules not that powerful but I think it's acceptable since it also makes the rules easy to maintain and understand. What do you think? |
A single label also can implement the function which multiple custom labels have. And it's acceptable and very easy to maintain and understand. Multiple custom labels seems a little complex. I agree that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# Conflicts: # CHANGES.md
# Conflicts: # CHANGES.md
Thank you very much for your review. I am very honored to choose Apollo in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What's the purpose of this PR
Add new feature:
Which issue(s) this PR fixes:
Fixes #2932
Brief changelog
Follow this checklist to help us incorporate your contribution quickly and easily:
mvn clean test
to make sure this pull request doesn't break anything.CHANGES
log.