-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Ftrack Id Module: adding parameter to callback in getId return object #8678
Conversation
Removing package-lock.json because it has conflicts and its not on ftrack to change it either way
…rebid.js into ftrack-getid-mods
@patmmccann any idea on how Flashtalking could return the IDs directly within the uids object of the eids? 'return data' didn't work so @ftxmoJason had to go with json.stringify, but we'd like the structure within uids to be flat and the IDs to be listed right in the JSPN structure |
To build on @TheMediaGrid 's comment. Our IDs are formatted like so:
And we can't return an object from eids.js |
@ftxmojared Just trying to ping you in this thread for awareness. |
have you studied this #8429 |
Thanks @patmmccann for the suggestion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i did an initial pass through and first thing we need are test cases for the new functionality. also, are there any changes to publisher implementation of the config or does this only impact those reading the EIDs array?
} else if (subModuleKey === 'ftrackId') { | ||
// ftrack has multiple IDs so we add each one that exists | ||
let eid = { | ||
'atype': 1, | ||
'id': (bidRequestUserId[subModuleKey]['DeviceID'] || []).join('|'), | ||
'ext': {} | ||
} | ||
for (let id in bidRequestUserId[subModuleKey]) { | ||
eid.ext[id] = (bidRequestUserId[subModuleKey][id] || []).join('|'); | ||
} | ||
|
||
eids.push(eid); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this block needs tests cases, please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no changes to the publisher config implementation, just the eids object interaction is changed
I will also let @ftxmoJason comment on the test cases
@smenzer can you please take a look at the updates here? we'd really like this PR to make it to the next release if possible |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This probably warrants an update to the prebid docs repository, but I'll go ahead and approve this now since this is good to go.
… (#8678) * Adding cb to the callback * Delete package-lock.json Removing package-lock.json because it has conflicts and its not on ftrack to change it either way * Un conflicting the package-lock * ftrack: getting data to return in the EIDS * ftrack: getting data to return in the EIDS lint * ftrack: making the eids return all IDs * ftrack: making the eids return all IDs * ftrack: tweaking the EID schema per MediaGrid's requests * Added tests for getUserIdsAsEids method * Updated the ftrack decode function with suggested code and updated related tests * Updated getUserIdsAsEids tests to match value directly Co-authored-by: Jason Lydon <[email protected]> Co-authored-by: Jared <[email protected]>
…prebid#8678) * Adding cb to the callback * Delete package-lock.json Removing package-lock.json because it has conflicts and its not on ftrack to change it either way * Un conflicting the package-lock * ftrack: getting data to return in the EIDS * ftrack: getting data to return in the EIDS lint * ftrack: making the eids return all IDs * ftrack: making the eids return all IDs * ftrack: tweaking the EID schema per MediaGrid's requests * Added tests for getUserIdsAsEids method * Updated the ftrack decode function with suggested code and updated related tests * Updated getUserIdsAsEids tests to match value directly Co-authored-by: Jason Lydon <[email protected]> Co-authored-by: Jared <[email protected]>
…prebid#8678) * Adding cb to the callback * Delete package-lock.json Removing package-lock.json because it has conflicts and its not on ftrack to change it either way * Un conflicting the package-lock * ftrack: getting data to return in the EIDS * ftrack: getting data to return in the EIDS lint * ftrack: making the eids return all IDs * ftrack: making the eids return all IDs * ftrack: tweaking the EID schema per MediaGrid's requests * Added tests for getUserIdsAsEids method * Updated the ftrack decode function with suggested code and updated related tests * Updated getUserIdsAsEids tests to match value directly Co-authored-by: Jason Lydon <[email protected]> Co-authored-by: Jared <[email protected]>
…prebid#8678) * Adding cb to the callback * Delete package-lock.json Removing package-lock.json because it has conflicts and its not on ftrack to change it either way * Un conflicting the package-lock * ftrack: getting data to return in the EIDS * ftrack: getting data to return in the EIDS lint * ftrack: making the eids return all IDs * ftrack: making the eids return all IDs * ftrack: tweaking the EID schema per MediaGrid's requests * Added tests for getUserIdsAsEids method * Updated the ftrack decode function with suggested code and updated related tests * Updated getUserIdsAsEids tests to match value directly Co-authored-by: Jason Lydon <[email protected]> Co-authored-by: Jared <[email protected]>
Type of change
Description of change
cb
parameter to the callback property in the object returned by getId() so that more pbjs get ID methods can be used