-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[TT-881] fix issue where upstream targets have been duplicated #6847
[TT-881] fix issue where upstream targets have been duplicated #6847
Conversation
Knock Knock! 🔍 Just thought I'd let you know that your PR title and story title look quite different. PR titles that closely resemble the story title make it easier for reviewers to understand the context of the PR. An easy-to-understand PR title a day makes the reviewer review away! 😛⚡️
Check out this guide to learn more about PR best-practices. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
API Changes no api changes detected |
PR Code Suggestions ✨Explore these optional code suggestions:
|
Quality Gate passedIssues Measures |
User description
TT-881
This PR fixes an issue where upstream targets are being duplicated therefore resulting in increased weights for load balancing.
Types of changes
PR Type
Bug fix, Tests
Description
Fixed duplication of upstream targets in load balancing.
Simplified initialization of
proxyConfTargets
inExtractTo
.Added test case to validate target deduplication logic.
Ensured existing targets are handled correctly in tests.
Changes walkthrough 📝
upstream.go
Fix and simplify upstream target handling logic
apidef/oas/upstream.go
proxyConfTargets
.upstream_test.go
Add test for upstream target deduplication
apidef/oas/upstream_test.go