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

Oxxion Analytics Adapter: fix video bid stringify #10119

Merged

Conversation

matthieularere-msq
Copy link
Contributor

Type of change

  • Bugfix

Description of change

JSON.stringify on bid response does not work when the object has a renderer attribute because of circular references. As I didn't find a proper way to make a clean dereferenced copy of the object, I've choose to save the render value in a temporary variable, remove it for the bid, stringify the bid and the push back the renderer inside. Not proud of it, but it would have been easier if analytics module could have received already dereferenced object so we can manipulate them without messing out with other parts of prebid.js

@patmmccann
Copy link
Collaborator

didnt you just submit this pr? Do you have two adapters?

@matthieularere-msq
Copy link
Contributor Author

Yes, I've tried to rename it last year but I was told it would be better to create a second one to avoid breaking changes.

@patmmccann patmmccann merged commit 5cf1ae4 into prebid:master Jun 22, 2023
musikele pushed a commit to rubicon-project/Prebid.js that referenced this pull request Aug 28, 2023
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