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

drop specific code for index adapter #1487

Merged
merged 1 commit into from
Aug 15, 2017

Conversation

mkendall07
Copy link
Member

Type of change

  • Bugfix

Description of change

Resolves #1341

Other information

Copy link
Collaborator

@protonate protonate 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 an additional line was taken out, otherwise looks good to me.

@@ -46,33 +46,18 @@ function getBidders(bid) {
function bidsBackAdUnit(adUnitCode) {
const requested = $$PREBID_GLOBAL$$._bidsRequested
.map(request => request.bids
.filter(adUnitsFilter.bind(this, $$PREBID_GLOBAL$$._adUnitCodes))
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the above line needs to remain in for now -- not related to index bid counting.

Copy link
Member Author

@mkendall07 mkendall07 Aug 14, 2017

Choose a reason for hiding this comment

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

shouldn't the line below take care of filtering? I don't understand the need for the double filter.

i.e adUnitCode is a subset of ._adUnitCodes

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is the adUnitsFilter function:

export function adUnitsFilter(filter, bid) {
  return filter.includes((bid && bid.placementCode) || (bid && bid.adUnitCode));
}

so while it does behave somewhat differently by testing for placementCode and adUnitCode your right that the next filter cuts that down to just placementCode. Ok, makes sense.

@protonate protonate added the LGTM label Aug 14, 2017
@dbemiller dbemiller merged commit d3cd291 into master Aug 15, 2017
@dbemiller dbemiller deleted the remove_end_auction_special_case branch August 15, 2017 12:51
mkendall07 added a commit that referenced this pull request Aug 24, 2017
mkendall07 pushed a commit that referenced this pull request Aug 24, 2017
outoftime pushed a commit to Genius/Prebid.js that referenced this pull request Aug 24, 2017
…built

* 'master' of https://github.com/prebid/Prebid.js: (83 commits)
  feat(strAdapt): check if tagJS is already present (prebid#1500)
  Updated karma-mocha, and simplified the test framework for runs which dont include --watch. (prebid#1520)
  Revert "drop specific code for index adapter (prebid#1487)" (prebid#1529)
  Override default asset params when set on ad unit (prebid#1524)
  Adding new kv to xhb Adapter (prebid#1513)
  removing for...of loops because IE cannot handle them properly (prebid#1523)
  Increment pre version
  Prebid 0.27.0 Release
  Move unit test file to appropriate location (prebid#1516)
  Support 'cta' native asset (prebid#1505)
  Add adapter parameter types (prebid#1504)
  Register bid adapter (prebid#1514)
  Match port when testing legacy browser (prebid#1511)
  modify 'featureforward' adapter to be an indepandant adapter (prebid#1288)
  Feature/s2s client side fallback (prebid#1485)
  Make bid.vastUrl use the cache URL if the bid didnt already have one. (prebid#1506)
  OpenX Adapter Update: (prebid#1438)
  Add session id feature for roxot analytics adapter (prebid#1498)
  Update platformioBidAdapter (prebid#1493)
  Adding VAST Payload support for video bids (prebid#1407)
  ...
ptomasroos pushed a commit to happypancake/Prebid.js that referenced this pull request Aug 25, 2017
philipwatson pushed a commit to mbrtargeting/Prebid.js that referenced this pull request Sep 18, 2017
philipwatson pushed a commit to mbrtargeting/Prebid.js that referenced this pull request Sep 18, 2017
vzhukovsky added a commit to aol/Prebid.js that referenced this pull request Oct 3, 2017
…rebid-official-0.27.1 to release/1.27.0

* commit 'ed7a85baafff3cade5fc05df1cd2bbadca782463': (98 commits)
  Added compatibility with 0.27.1 for Komoona adapter.
  Added aol partners ids.
  Added changelog entry.
  Fixed minor eslint issues.
  Fixed failing prebid-cache unit test.
  Prebid 0.27.1 Release
  use utils.getTopWindowUrl() to get top window URL for indexexchange a… (prebid#1507)
  fix prebid#1509 - utils.getTopWindowLocation() returns exception object (prebid#1530)
  feat(strAdapt): check if tagJS is already present (prebid#1500)
  Updated karma-mocha, and simplified the test framework for runs which dont include --watch. (prebid#1520)
  Revert "drop specific code for index adapter (prebid#1487)" (prebid#1529)
  Override default asset params when set on ad unit (prebid#1524)
  Adding new kv to xhb Adapter (prebid#1513)
  removing for...of loops because IE cannot handle them properly (prebid#1523)
  Increment pre version
  Prebid 0.27.0 Release
  Move unit test file to appropriate location (prebid#1516)
  Support 'cta' native asset (prebid#1505)
  Add adapter parameter types (prebid#1504)
  Register bid adapter (prebid#1514)
  ...
vzhukovsky added a commit to aol/Prebid.js that referenced this pull request Oct 3, 2017
….27.0 to aolgithub-master

* commit '5c33711e8d9e543b4a1da00563d78f6d0abd1179': (99 commits)
  Added compatibility with 0.27.1 for Komoona adapter.
  Added aol partners ids.
  Added changelog entry.
  Fixed minor eslint issues.
  Fixed failing prebid-cache unit test.
  Updated Komoona bid adapter.
  Prebid 0.27.1 Release
  use utils.getTopWindowUrl() to get top window URL for indexexchange a… (prebid#1507)
  fix prebid#1509 - utils.getTopWindowLocation() returns exception object (prebid#1530)
  feat(strAdapt): check if tagJS is already present (prebid#1500)
  Updated karma-mocha, and simplified the test framework for runs which dont include --watch. (prebid#1520)
  Revert "drop specific code for index adapter (prebid#1487)" (prebid#1529)
  Override default asset params when set on ad unit (prebid#1524)
  Adding new kv to xhb Adapter (prebid#1513)
  removing for...of loops because IE cannot handle them properly (prebid#1523)
  Increment pre version
  Prebid 0.27.0 Release
  Move unit test file to appropriate location (prebid#1516)
  Support 'cta' native asset (prebid#1505)
  Add adapter parameter types (prebid#1504)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Index ignores unsupported sizes, bid manager still expects bid response
3 participants