-
Notifications
You must be signed in to change notification settings - Fork 782
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
Connatix: Enhance endpoint with DC #4219
Conversation
Code coverage summaryNote:
connatixRefer here for heat map coverage report
|
802ac7b
to
921044b
Compare
Code coverage summaryNote:
connatixRefer here for heat map coverage report
|
Code coverage summaryNote:
connatixRefer here for heat map coverage report
|
adapters/connatix/connatix.go
Outdated
if strings.HasPrefix(userID, "1-") { | ||
queryParams.Add("dc", "us-east-2") | ||
} | ||
|
||
if strings.HasPrefix(userID, "2-") { | ||
queryParams.Add("dc", "us-west-2") | ||
} | ||
|
||
if strings.HasPrefix(userID, "3-") { | ||
queryParams.Add("dc", "eu-west-1") | ||
} |
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.
Optional optimization:
if strings.HasPrefix(userID, "1-") {
queryParams.Add("dc", "us-east-2")
} else if strings.HasPrefix(userID, "2-") {
queryParams.Add("dc", "us-west-2")
} else if strings.HasPrefix(userID, "3-") {
queryParams.Add("dc", "eu-west-1")
}
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.
Discussed with the team. Can you please this optimization to the PR?
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.
Done, I addressed the comment. Thank you!
0f78b83
Code coverage summaryNote:
connatixRefer here for heat map coverage report
|
@monicaroxanabota your tests are failing because of formatting issues in |
Code coverage summaryNote:
connatixRefer here for heat map coverage report
|
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.
Thank you for the changes!
No description provided.