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

Prebid Core: Handled edge cases for allowedAlternateBidderCodes functionality #8760

Merged
merged 28 commits into from
Aug 4, 2022

Conversation

pm-azhar-mulla
Copy link
Contributor

@pm-azhar-mulla pm-azhar-mulla commented Jul 30, 2022

Type of change

  • Feature

Description of change

We have made a few minor changes to the allowedAlternateBidderCodes functionality

  1. Made search case-insensitive, since the bidder names are in lowercase, we have made allowedAlternateBidderCodes array also lowercase before comparison.
  2. Trimmed the entries in allowedAlternateBidderCodes array before comparison.
  3. To keep the functionality in sync with prebid-server. It will not accept bids from the alternate bidders when the array is empty ([]).

Azhar and others added 27 commits March 5, 2021 17:42
@jsnellbaker jsnellbaker self-requested a review August 1, 2022 14:26
@jsnellbaker jsnellbaker self-assigned this Aug 1, 2022
@bsardo
Copy link

bsardo commented Aug 1, 2022

Hi team, I just wanted to bring it to your attention that the PBS team is actually planning to treat an empty array as "restrict all" instead of "allow all" as mentioned in the description here.
That means all bidder codes will be allowed if the array is not defined or if the array is defined as ["*"].

Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

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

I think this looks fine. Will need a second review.

@jsnellbaker jsnellbaker added needs 2nd review Core module updates require two approvals from the core team and removed needs review labels Aug 2, 2022
@jsnellbaker jsnellbaker assigned ncolletti and unassigned jsnellbaker Aug 2, 2022
@pm-azhar-mulla
Copy link
Contributor Author

@ncolletti can you please review this?

Copy link
Contributor

@ncolletti ncolletti left a comment

Choose a reason for hiding this comment

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

lgtm

@ncolletti ncolletti added LGTM and removed needs 2nd review Core module updates require two approvals from the core team labels Aug 4, 2022
@ncolletti ncolletti merged commit 35b4999 into prebid:master Aug 4, 2022
JacobKlein26 pushed a commit to nextmillenniummedia/Prebid.js that referenced this pull request Feb 9, 2023
…ionality (prebid#8760)

* Changed net revenue to True

* handled edge cases

* Empty alternateBidderCodes will reject the bids

Co-authored-by: Azhar <[email protected]>
jorgeluisrocha pushed a commit to jwplayer/Prebid.js that referenced this pull request May 23, 2023
…ionality (prebid#8760)

* Changed net revenue to True

* handled edge cases

* Empty alternateBidderCodes will reject the bids

Co-authored-by: Azhar <[email protected]>
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.

None yet

4 participants