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

Fixing the BidAdjustmentEvent fire time #1399

Merged
merged 4 commits into from
Jul 21, 2017
Merged

Conversation

dbemiller
Copy link
Contributor

Type of change

Bugfix

Description of change

Fixing #1398.

...turns out that the timing of BidAdjustment is very fragile, and people are relying on in to be after some bid mutations, but before some others. This puts it (I think) where it's supposed to be, and adds some regression tests.

@@ -142,6 +157,21 @@ describe('The Bid Manager', () => {
bidManager.addBidResponse('mock/code');
expect($$PREBID_GLOBAL$$._bidsReceived.length).to.equal(0);
});

it('should attach properties for analytics *before* the BID_ADJUSTMENT event listeners are called', () => {
console.log('testing this bug');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like this console.log slipped through 🐍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

d'oh... thanks

@mkendall07 mkendall07 merged commit a988752 into master Jul 21, 2017
@mkendall07 mkendall07 deleted the fix-bidAdjustment-fire branch July 21, 2017 15:47
outoftime pushed a commit to Genius/Prebid.js that referenced this pull request Jul 28, 2017
…built

* 'master' of https://github.com/prebid/Prebid.js: (95 commits)
  Specify --browsers when using gulp test --watch (prebid#1420)
  Added aliases for aol adapter. (prebid#1371)
  Added MobFox Adapter (prebid#1312)
  Fixed style error. (prebid#1419)
  Add native support for Criteo adapter (prebid#999)
  Update admediaBidAdapter.js (prebid#1395)
  Increment pre version (prebid#1413)
  Prebid 0.26.1 Release (prebid#1412)
  fix prebid#1410 - issue with ie and xhr.timeout (prebid#1411)
  Lint modules directory (prebid#1404)
  Set outstream mediaType based on renderer in response (prebid#1391)
  Fixing the BidAdjustmentEvent fire time (prebid#1399)
  Fix banner showing up in prebid-core.js (prebid#1388)
  Mention NodeJS 4.0 dependency in the README (prebid#1386)
  Increment pre version (prebid#1385)
  Prebid 0.26.0 Release (prebid#1384)
  PulsePoint Lite adapter - adding createNew method for aliasing. (prebid#1383)
  Modernizing build dependencies (prebid#1355)
  StickyAdsTV bidder adapter update (prebid#1311)
  Added CPM value as parameter for Vertoz Adapter (prebid#1306)
  ...
vzhukovsky added a commit to aol/Prebid.js that referenced this pull request Sep 6, 2017
….25.0 to aolgithub-master

* commit '2a31c81b71595988ed2bf3470fb94d4fb75098bc': (71 commits)
  Sync with contrib/aol-adapter-aliases branch.
  Added junit reporter, improved browserstack tests running.
  Change browsers config to allow run tests on CI.
  Temporary comment unit test to provide compatibility with pre-bidder timeout feature.
  Added banner for minified source  file.
  Improve matching to avoid breaking js syntax.
  Changed changelog entry.
  Fixed invalid module link.
  Prebid 0.26.1 Release (prebid#1412)
  fix prebid#1410 - issue with ie and xhr.timeout (prebid#1411)
  Lint modules directory (prebid#1404)
  Added changelog entry.
  Added ids in aolPartnersIds.
  Added tests for delimiterLoader.
  Set outstream mediaType based on renderer in response (prebid#1391)
  Fixing the BidAdjustmentEvent fire time (prebid#1399)
  Improved adapter source code wrappig.
  Changed aol analytics adapter to new structure.
  Get rid of preserve keyword.
  Added preserved keyword for adapters wrapping.
  ...
jbAdyoulike pushed a commit to jbAdyoulike/Prebid.js that referenced this pull request Sep 21, 2017
* Fired the bid adjustment event at (what I think is) the appropriate time.

* More thorough tests.

* Better test description.

* Removed a stray console.log
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* Fired the bid adjustment event at (what I think is) the appropriate time.

* More thorough tests.

* Better test description.

* Removed a stray console.log
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.

3 participants