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

Losing user.data after getLegacyFpd #8264

Closed
nllerandi3lift opened this issue Apr 7, 2022 · 5 comments
Closed

Losing user.data after getLegacyFpd #8264

nllerandi3lift opened this issue Apr 7, 2022 · 5 comments
Labels

Comments

@nllerandi3lift
Copy link
Contributor

Type of issue

Question / Possible bug

Description

user.data is getting dropped when the result of getConfig('ortb2') is passed into getLegacyFpd. A few bid adapters are still using this method so posting here first to see if this is desired behavior.

It looks like this may have been intentional at some point - #6293 (review)
As the method is filtering out data keys -

duplicate[prop] = (prop === 'context' || prop === 'user') ? Object.keys(obj[type]).filter(key => key !== 'data').reduce((result, key) => {

But user.data is an increasingly more relevant field - #6057

Is this intentional?

Steps to reproduce

Screen Shot 2022-04-07 at 1 22 51 PM

Platform details

Testing on v6.19.0-pre, but I would think this some functionality can be found from when getLegacyFpd was introduced.

@patmmccann
Copy link
Collaborator

This appears to be a significant bug

@patmmccann patmmccann moved this from Ready for Dev to Needs Req in Prebid.js Tactical Issues table Apr 7, 2022
@patmmccann
Copy link
Collaborator

patmmccann commented Apr 7, 2022

@nllerandi3lift on further review, only very few adapters still use this function; perhaps you can deprecate your use of it?

@nllerandi3lift
Copy link
Contributor Author

I figured that might be the case. The usage of fpd is pretty old at this point. I'll take a look at deprecating.

@nllerandi3lift
Copy link
Contributor Author

We can close this if there are no other concerns. I'm fine with deprecating.

@bretg
Copy link
Collaborator

bretg commented Apr 7, 2022

Thanks @nllerandi3lift - apparently we neglected to get rid of getLegacyFPD in 5, but will do so in 7.

@bretg bretg closed this as completed Apr 7, 2022
Repository owner moved this from Needs Req to Done in Prebid.js Tactical Issues table Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

3 participants