Skip to content
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

Merged
merged 3 commits into from
Mar 14, 2025
Merged

Connatix: Enhance endpoint with DC #4219

merged 3 commits into from
Mar 14, 2025

Conversation

monicaroxanabota
Copy link
Contributor

No description provided.

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, f0663dd

connatix

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:24:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:31:	MakeRequests		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:66:	MakeBids		95.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:106:	validateAndBuildImpExt	100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:115:	splitRequests		88.9%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:200:	buildRequestImp		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:243:	buildDisplayManagerVer	88.9%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:261:	getBidType		100.0%
total:									(statements)		94.1%

@bsardo bsardo changed the title Enhance connatix endpoint Connatix: Enhance endpoint with DC Feb 14, 2025
@bsardo bsardo added the adapter label Feb 14, 2025
Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 921044b

connatix

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:24:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:31:	MakeRequests		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:66:	MakeBids		95.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:106:	validateAndBuildImpExt	100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:115:	splitRequests		90.9%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:199:	buildRequestImp		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:242:	buildDisplayManagerVer	88.9%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:260:	getBidType		100.0%
total:									(statements)		94.9%

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 802ac7b

connatix

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:24:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:31:	MakeRequests		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:66:	MakeBids		95.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:106:	validateAndBuildImpExt	100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:115:	splitRequests		90.9%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:199:	buildRequestImp		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:242:	buildDisplayManagerVer	88.9%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:260:	getBidType		100.0%
total:									(statements)		94.9%

@bsardo bsardo self-assigned this Feb 26, 2025
@bsardo bsardo assigned ccorbo and VeronikaSolovei9 and unassigned bsardo Mar 6, 2025
ccorbo
ccorbo previously approved these changes Mar 10, 2025
Comment on lines 171 to 181
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")
}
Copy link
Contributor

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")
}

Copy link
Contributor

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?

Copy link
Contributor Author

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!

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 0f78b83

connatix

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:24:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:31:	MakeRequests		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:66:	MakeBids		95.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:106:	validateAndBuildImpExt	100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:115:	splitRequests		90.9%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:195:	buildRequestImp		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:238:	buildDisplayManagerVer	88.9%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:256:	getBidType		100.0%
total:									(statements)		94.9%

@bsardo
Copy link
Collaborator

bsardo commented Mar 13, 2025

@monicaroxanabota your tests are failing because of formatting issues in adapters/connatix/connatix.go. You'll need to run go fmt to resolve.

Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 38d5c93

connatix

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:24:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:31:	MakeRequests		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:66:	MakeBids		95.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:106:	validateAndBuildImpExt	100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:115:	splitRequests		90.9%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:195:	buildRequestImp		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:238:	buildDisplayManagerVer	88.9%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:256:	getBidType		100.0%
total:									(statements)		94.9%

Copy link
Contributor

@VeronikaSolovei9 VeronikaSolovei9 left a 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!

@bsardo bsardo merged commit eb13b8b into prebid:master Mar 14, 2025
6 checks passed
scr-oath pushed a commit to scr-oath/prebid-server that referenced this pull request Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants