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

Bidder Uniqueness Gatekeeping Test #1506

Merged
merged 4 commits into from
Sep 24, 2020

Conversation

SyntaxNode
Copy link
Contributor

No description provided.

}

currentUniquenessThreshold := 6
assert.Equal(t, currentUniquenessThreshold, maxUniqueForPrefixLength(bidders))
Copy link
Collaborator

@bsardo bsardo Sep 23, 2020

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?

Copy link
Contributor Author

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.

bsardo
bsardo previously approved these changes Sep 24, 2020
Copy link
Collaborator

@hhhjort hhhjort left a comment

Choose a reason for hiding this comment

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

LGTM

@SyntaxNode SyntaxNode merged commit 120f735 into prebid:master Sep 24, 2020
@SyntaxNode SyntaxNode deleted the bidder_name_uniqueness branch September 28, 2020 15:30
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