-
Notifications
You must be signed in to change notification settings - Fork 742
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
Bidder Uniqueness Gatekeeping Test #1506
Conversation
openrtb_ext/bidders_test.go
Outdated
} | ||
|
||
currentUniquenessThreshold := 6 | ||
assert.Equal(t, currentUniquenessThreshold, maxUniqueForPrefixLength(bidders)) |
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.
This test looks good but I'm assuming we aren't anticipating the bidder names changing, is that correct? I think this test would fail if one of the smart* bidder names changed such that there is a difference in the first five characters of their names instead of the difference starting at the sixth character:
BidderSmartadserver BidderName = "smartadserver"
BidderSmartRTB BidderName = "smartrtb"
Perhaps this check should be a less than or equal to?
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.
I'm assuming we aren't anticipating the bidder names changing.
Correct. I'm sure it could happen, but the cost of doing so is high. Such a move would invalidate a lot of stored requests and publisher setup. Hence, appnexus is still appnexus even though the company is now part of Xandr.
Perhaps this check should be a less than or equal to?
Sure. That's a good point. This test is meant to sound alarm if the minimum characters needed for uniqueness increases.
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.
LGTM
No description provided.