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

Adapter Name Case Insensitive: EID Permissions #3187

Merged

Conversation

SyntaxNode
Copy link
Contributor

Discovered there is still work needed after manually validating #3141

@@ -103,6 +103,7 @@ func NewAmpEndpoint(
storedRespFetcher,
hookExecutionPlanBuilder,
tmaxAdjustments,
openrtb_ext.NormalizeBidderName,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry. I hate to add yet another parameter here, but I can't test it properly otherwise.

@@ -765,7 +769,7 @@ func (deps *endpointDeps) validateRequest(req *openrtb_ext.RequestWrapper, isAmp
}
}

var aliases map[string]string
var requestAliases map[string]string
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Making clear these are request aliases, not hardcoded aliases. Request alias names are still case sensitive.

knownBidders: map[string]openrtb_ext.BidderName{"a": openrtb_ext.BidderName("a")},
knownAliases: map[string]string{"c": "c"},
expectedError: errors.New(`unrecognized bidder "A"`),
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Test case is no longer valid.

{
"id": "id1"
}
]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doesn't really matter for these tests, but the eids structure was wrong.

@onkarvhanumante onkarvhanumante self-assigned this Oct 6, 2023
@VeronikaSolovei9 VeronikaSolovei9 merged commit 1944dbb into prebid:master Oct 9, 2023
3 checks passed
svamiftah pushed a commit to sovrn/prebid-server that referenced this pull request Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants