-
-
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
fix: keep clusters order in envclusters openapi #5277
fix: keep clusters order in envclusters openapi #5277
Conversation
Note Currently processing new changes in this PR. This may take a few minutes, please wait... 📒 Files selected for processing (2)
WalkthroughThe changes in the pull request involve a modification to the Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip You can make CodeRabbit's review more strict using the `assertive` profile, if that's what you prefer.Change the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5277 +/- ##
============================================
+ Coverage 51.20% 51.30% +0.09%
- Complexity 2097 2109 +12
============================================
Files 393 393
Lines 12438 12449 +11
Branches 1229 1232 +3
============================================
+ Hits 6369 6387 +18
+ Misses 5681 5673 -8
- Partials 388 389 +1 ☔ View full report in Codecov by Sentry. |
29b90dd
to
45cf718
Compare
I have read the CLA Document and I hereby sign the CLA |
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
CHANGES.md (1)
22-22
: LGTM, but consider adding more context.The changelog entry correctly documents the fix and links to the PR. However, it could be more helpful to users if it included the specific problem it addresses.
Consider expanding the entry to:
-* [Fix: ensure clusters order in envClusters open api](https://github.com/apolloconfig/apollo/pull/5277) +* [Fix: ensure consistent cluster order (default,cluster1,cluster2) in envClusters open api](https://github.com/apolloconfig/apollo/pull/5277)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
CHANGES.md
(1 hunks)apollo-common/src/main/java/com/ctrip/framework/apollo/common/utils/BeanUtils.java
(2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- apollo-common/src/main/java/com/ctrip/framework/apollo/common/utils/BeanUtils.java
45cf718
to
4a05bee
Compare
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
The order of clusters in the API openapi/v1/apps/{appId}/envclusters was disrupted due to the use of HashSet. Changing it to LinkedHashSet resolves this issue.
Which issue(s) this PR fixes:
Fixes #5276
Brief changelog
Fix: ensure clusters order in envClusters open api
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.Summary by CodeRabbit
Summary by CodeRabbit
RefreshAdminServerAddressTask
with dynamic time interval configuration.envClusters
open API.