forked from prebid/Prebid.js
-
Notifications
You must be signed in to change notification settings - Fork 1
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
TL-36516: Add GPP signals to sync endpoint #80
Merged
Merged
Changes from 19 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
25664ce
TL-35335: Cast playbackmethod as array
patrickloughrey 7307d1a
Merge pull request #72 from triplelift-internal/TL-35335-cast-playbac…
patrickloughrey ee90d99
Merge branch 'prebid:master' into master
nllerandi3lift 3ee1e9b
Merge branch 'prebid:master' into master
patrickloughrey 0ff06ab
Merge branch 'prebid:master' into master
patrickloughrey 40dbe99
TL-36204: Copy tid to imp extension obj
patrickloughrey 4291c1e
Added support for entire ortb2Imp obj
patrickloughrey feecf24
Only setting what exists in ortb2Imp.ext
patrickloughrey a709f3f
Added additional test to check copy of entire ext obj
patrickloughrey 49ba6a9
Merge pull request #74 from triplelift-internal/TL-36204-Copy-TID
patrickloughrey cd65aba
Merge branch 'prebid:master' into master
patrickloughrey b362e3a
Revert "TL-36204: Copy tid to imp extension object"
patrickloughrey 5574ef5
Merge pull request #75 from triplelift-internal/revert-74-TL-36204-Co…
patrickloughrey 13ee09b
Merge branch 'master' of https://github.com/triplelift-internal/Prebi…
patrickloughrey 35a7286
Merge branch 'master' of https://github.com/triplelift-internal/Prebi…
patrickloughrey 3836830
Merge branch 'master' of https://github.com/triplelift-internal/Prebi…
patrickloughrey c13200c
Merge branch 'master' of https://github.com/triplelift-internal/Prebi…
patrickloughrey 0c5d586
TL-36516: Add GPP Signals to sync endpoint
patrickloughrey 15540f7
Added URI encoding for GPP sid
patrickloughrey a46248e
Optimizing filter algorithm
patrickloughrey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 think we should make this
return Number.isInteger(element);
because that's all it should ever be anyway and will also exclude weird nulls/undefineds
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 think I like the way I'm doing it here better. The
applicableSections
within thegppConsent
object is an array that we need to do a join(',') on in order to transform it into a comma-separated string to append onto our sync pixel. The filter() is just to make sure the elements are validThere 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 meant keep the filter, but replace
return element !== null && element !== undefined;
.isInteger
will reject strings, etc which are also not valid, in addition to rejecting null/undefined. But this is a small suggestion so whatev you wantThere 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 misunderstood your original comment. I agree, the way you are suggesting is optimal. Pushing through.