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

Make user.ext.prebid.buyeruids bidder name case insensitive #3123

Closed
wants to merge 5 commits into from

Conversation

Sonali-More-Xandr
Copy link
Contributor

@Sonali-More-Xandr Sonali-More-Xandr commented Sep 22, 2023

We need to handle case insensitivity for user.ext.prebid.buyeruids biddernames. This PR updates the biddername look up to use the normalized names for buyeruids.BIDDER.

partially resolves #2400

@Sonali-More-Xandr Sonali-More-Xandr changed the base branch from master to PBS-1254-1 September 25, 2023 06:28
@onkarvhanumante onkarvhanumante self-assigned this Sep 25, 2023
Base automatically changed from PBS-1254-1 to master September 25, 2023 16:53
@gargcreation1992 gargcreation1992 dismissed onkarvhanumante’s stale review September 25, 2023 16:53

The base branch was changed.

@@ -0,0 +1,77 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also add a test using a bidder name where it's original formatting isn't already lowercase (i.e. yahooAds)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in 8b7a55b

normalisedBidderName, _ := openrtb_ext.NormalizeBidderName(bidderName)
coreBidderName := normalisedBidderName.String()
if _, isCoreBidderDisabled := deps.disabledBidders[coreBidderName]; isCoreBidderDisabled {
return fmt.Errorf("request.ext.prebid.aliases.%s refers to disabled bidder: %s", alias, bidderName)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this happened because base PR PBS-1254-1 which added changes for validateAliases was merged and deleted. Due to which commits from PBS-1254-1 got added in PBS-1257

@Sonali-More-Xandr
Copy link
Contributor Author

Closing this PR since it has some commits from PBS-1254-1. Created a new PR with commits related to PBS-1257 only.
New PR - #3152

@bsardo bsardo removed the PBS 2.0 label Sep 26, 2023
@gargcreation1992 gargcreation1992 deleted the PBS-1257 branch December 19, 2023 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bidder names should be case insensitive
5 participants