-
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
TripleliftBidAdapter - remove dependency on getTopWindowLocation util #3139
TripleliftBidAdapter - remove dependency on getTopWindowLocation util #3139
Conversation
if (bidderRequest && bidderRequest.refererInfo) { | ||
let referrer = bidderRequest.refererInfo.referer; | ||
tlCall = utils.tryAppendQueryString(tlCall, 'referrer', referrer); | ||
} |
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.
Looks good but should add a unit test.
@brittanyzellman any update here? |
@harpere Sorry I have had to deprioritize writing a new unit test for this (I can't just add this to the existing test) since the start of Q4. I will hopefully get to it within the next week or two. Is there a date that these methods will be removed? I didnt see it in the issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@harpere - please review the new unit tests |
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.
The updates to the unit tests LGTM
…prebid#3139) * removed dependancy on getTopWindowUrl for referer * protect against undefined obj and remove test on old dependency * added unit test for referer and gdpr in query string * removed gdpr test * removed gdpr from bidderRequest obj * decontructed bidder request obj in chai test * just need to run karma tests again * added gdpr consent to all bidderRequest obj in chai tests
…prebid#3139) * removed dependancy on getTopWindowUrl for referer * protect against undefined obj and remove test on old dependency * added unit test for referer and gdpr in query string * removed gdpr test * removed gdpr from bidderRequest obj * decontructed bidder request obj in chai test * just need to run karma tests again * added gdpr consent to all bidderRequest obj in chai tests
…prebid#3139) * removed dependancy on getTopWindowUrl for referer * protect against undefined obj and remove test on old dependency * added unit test for referer and gdpr in query string * removed gdpr test * removed gdpr from bidderRequest obj * decontructed bidder request obj in chai test * just need to run karma tests again * added gdpr consent to all bidderRequest obj in chai tests
Type of change
Description of change
Due to util.getTopWindowLocation being deprecated, I updated the adapter to use bidderRequest.refererInfo instead.
Other information
@jaiminpanchal27 @jsnellbaker
issue