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 issue introduced in #3845 for rubi analytics adapter #3996

Merged
merged 2 commits into from
Jul 15, 2019

Conversation

robertrmartinez
Copy link
Collaborator

Type of change

  • Bugfix

Description of change

The pr introduced here https://github.com/prebid/Prebid.js/pull/3845/files brought out an issue in the rubi analytics adapter.

Since we were not calling the function with the bid obj attached, it was resulting in this.cpm to throw an exception since this would not be defined with how we are calling it.

This PR fixes this issue and adds a unit test to prevent this from happening again

@robertrmartinez
Copy link
Collaborator Author

I added the test before the fix and verified that it fails:

image

And now it passes after the change.

@bretg bretg removed their request for review July 15, 2019 18:19
Copy link
Contributor

@idettman idettman left a comment

Choose a reason for hiding this comment

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

Remove clone function and update the clone function call to use utils.deepClone(obj)

@robertrmartinez
Copy link
Collaborator Author

@idettman Thanks, updated both our test adapters to use utils.deepClone

Copy link
Contributor

@idettman idettman left a comment

Choose a reason for hiding this comment

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

LGTM

@idettman idettman self-assigned this Jul 15, 2019
@idettman idettman removed the bug label Jul 15, 2019
@idettman idettman merged commit e07d2dc into master Jul 15, 2019
SublimeLeo pushed a commit to SublimeSkinz/Prebid.js that referenced this pull request Jul 16, 2019
…prebid#3996)

* Fixing the issue introduced in prebid#3845 for rubi analytics adapter

* using utils.deepClone instead of custom clone
leonardlabat pushed a commit to criteo-forks/Prebid.js that referenced this pull request Jul 30, 2019
…prebid#3996)

* Fixing the issue introduced in prebid#3845 for rubi analytics adapter

* using utils.deepClone instead of custom clone
VideoReach pushed a commit to VideoReach/Prebid.js that referenced this pull request Aug 1, 2019
…prebid#3996)

* Fixing the issue introduced in prebid#3845 for rubi analytics adapter

* using utils.deepClone instead of custom clone
sa1omon pushed a commit to gamoshi/Prebid.js that referenced this pull request Nov 28, 2019
…prebid#3996)

* Fixing the issue introduced in prebid#3845 for rubi analytics adapter

* using utils.deepClone instead of custom clone
@robertrmartinez robertrmartinez deleted the fix_currency_in_rubi_analytics branch September 21, 2020 19:34
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.

2 participants