Skip to content

User sync fixes for 7 25 0#63

Merged
robson-viana merged 16 commits into7.25.0-insticatorfrom
user-sync-fixes-for-7-25-0
May 2, 2023
Merged

User sync fixes for 7 25 0#63
robson-viana merged 16 commits into7.25.0-insticatorfrom
user-sync-fixes-for-7-25-0

Conversation

@robson-viana
Copy link

No description provided.


uid = localStorage.getItem(USER_ID_KEY);
if (uid && isUserIdValid(uid)) {
const domain = window.location.hostname.match(/[^.]*\.[^.]{2,3}(?:\.[^.]{2,3})?$/mg);
Copy link

@rohanInsticator rohanInsticator May 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add one more logic here to extract the top-level-domain from the hostname & use that as the cookie domain. This way we can share the cookie across publisher's subdomain?

Not sure if that regex match operation is already doing that or not.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the regex match is taking the top level domain

image

Copy link

@rohanInsticator rohanInsticator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than that subdomain comment, everything else looks good to me. I also see multiple PRs open with this same logic, not sure what is what but the code looks the same. So please feel free to merge it after that subdomain check

@robson-viana robson-viana merged commit 3067c55 into 7.25.0-insticator May 2, 2023
@robson-viana robson-viana deleted the user-sync-fixes-for-7-25-0 branch May 2, 2023 18:49
himaneeshinsticator pushed a commit that referenced this pull request Jul 19, 2023
* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Revert "Update insticatorBidAdapter_spec.js"

This reverts commit ae1397a.

* Revert "User sync fixes for 7 25 0 (#59)"

This reverts commit 2ea50ac.

* Update insticatorBidAdapter_spec.js

* Update insticatorBidAdapter_spec.js

* User sync fixes.

prioritize local store over cookie to store the user ID, so that the same value can be shared among tabs.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter.js

* Adding domain in the cookie.

* Fixing unit test.

* Adding logic for localhost.
himaneeshinsticator added a commit that referenced this pull request Jul 19, 2023
* Pull Insticator custom changes

* User sync fixes. (#58)

* User sync fixes for 7 25 0 (#59)

* User sync fixes.

* Update insticatorBidAdapter.js

* User sync fixes for 7 25 0 (#60)

* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* User sync fixes for 7 25 0 (#61)

* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Revert "Update insticatorBidAdapter_spec.js"

This reverts commit ae1397a.

* Revert "User sync fixes for 7 25 0 (#59)"

This reverts commit 2ea50ac.

* Update insticatorBidAdapter_spec.js

* Update insticatorBidAdapter_spec.js

* User sync fixes for 7 25 0 (#62)

* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Revert "Update insticatorBidAdapter_spec.js"

This reverts commit ae1397a.

* Revert "User sync fixes for 7 25 0 (#59)"

This reverts commit 2ea50ac.

* Update insticatorBidAdapter_spec.js

* Update insticatorBidAdapter_spec.js

* User sync fixes.

prioritize local store over cookie to store the user ID, so that the same value can be shared among tabs.

* Update insticatorBidAdapter.js

* User sync fixes for 7 25 0 (#63)

* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Revert "Update insticatorBidAdapter_spec.js"

This reverts commit ae1397a.

* Revert "User sync fixes for 7 25 0 (#59)"

This reverts commit 2ea50ac.

* Update insticatorBidAdapter_spec.js

* Update insticatorBidAdapter_spec.js

* User sync fixes.

prioritize local store over cookie to store the user ID, so that the same value can be shared among tabs.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter.js

* Adding domain in the cookie.

* Fixing unit test.

* Adding logic for localhost.

* Merging changes from master into 7.25.0 (#65)

* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Revert "Update insticatorBidAdapter_spec.js"

This reverts commit ae1397a.

* Revert "User sync fixes for 7 25 0 (#59)"

This reverts commit 2ea50ac.

* Update insticatorBidAdapter_spec.js

* Update insticatorBidAdapter_spec.js

* User sync fixes.

prioritize local store over cookie to store the user ID, so that the same value can be shared among tabs.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter.js

* Adding domain in the cookie.

* Fixing unit test.

* Adding logic for localhost.

* Adding new attributes for DealID.

* put 'it' in the right place

* User sync fix. (#68)

* set impression type using header bidding wrapper's API (#66)

* set impression type using header bidding wrapper's API

* linter

---------

Co-authored-by: Juan Jose Olivera <juan@insticator.com>
Co-authored-by: Robson Viana <81261035+robson-viana@users.noreply.github.com>
Co-authored-by: Bi Yoo <bi@insticator.com>
Co-authored-by: Bi Yoo <95636458+insticator-biY@users.noreply.github.com>
himaneeshinsticator pushed a commit that referenced this pull request Jul 20, 2023
* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Revert "Update insticatorBidAdapter_spec.js"

This reverts commit ae1397a.

* Revert "User sync fixes for 7 25 0 (#59)"

This reverts commit 2ea50ac.

* Update insticatorBidAdapter_spec.js

* Update insticatorBidAdapter_spec.js

* User sync fixes.

prioritize local store over cookie to store the user ID, so that the same value can be shared among tabs.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter.js

* Adding domain in the cookie.

* Fixing unit test.

* Adding logic for localhost.
himaneeshinsticator added a commit that referenced this pull request Jul 20, 2023
* Pull Insticator custom changes

* User sync fixes. (#58)

* User sync fixes for 7 25 0 (#59)

* User sync fixes.

* Update insticatorBidAdapter.js

* User sync fixes for 7 25 0 (#60)

* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* User sync fixes for 7 25 0 (#61)

* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Revert "Update insticatorBidAdapter_spec.js"

This reverts commit ae1397a.

* Revert "User sync fixes for 7 25 0 (#59)"

This reverts commit 2ea50ac.

* Update insticatorBidAdapter_spec.js

* Update insticatorBidAdapter_spec.js

* User sync fixes for 7 25 0 (#62)

* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Revert "Update insticatorBidAdapter_spec.js"

This reverts commit ae1397a.

* Revert "User sync fixes for 7 25 0 (#59)"

This reverts commit 2ea50ac.

* Update insticatorBidAdapter_spec.js

* Update insticatorBidAdapter_spec.js

* User sync fixes.

prioritize local store over cookie to store the user ID, so that the same value can be shared among tabs.

* Update insticatorBidAdapter.js

* User sync fixes for 7 25 0 (#63)

* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Revert "Update insticatorBidAdapter_spec.js"

This reverts commit ae1397a.

* Revert "User sync fixes for 7 25 0 (#59)"

This reverts commit 2ea50ac.

* Update insticatorBidAdapter_spec.js

* Update insticatorBidAdapter_spec.js

* User sync fixes.

prioritize local store over cookie to store the user ID, so that the same value can be shared among tabs.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter.js

* Adding domain in the cookie.

* Fixing unit test.

* Adding logic for localhost.

* Merging changes from master into 7.25.0 (#65)

* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Revert "Update insticatorBidAdapter_spec.js"

This reverts commit ae1397a.

* Revert "User sync fixes for 7 25 0 (#59)"

This reverts commit 2ea50ac.

* Update insticatorBidAdapter_spec.js

* Update insticatorBidAdapter_spec.js

* User sync fixes.

prioritize local store over cookie to store the user ID, so that the same value can be shared among tabs.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter.js

* Adding domain in the cookie.

* Fixing unit test.

* Adding logic for localhost.

* Adding new attributes for DealID.

* put 'it' in the right place

* User sync fix. (#68)

* set impression type using header bidding wrapper's API (#66)

* set impression type using header bidding wrapper's API

* linter

---------

Co-authored-by: Juan Jose Olivera <juan@insticator.com>
Co-authored-by: Robson Viana <81261035+robson-viana@users.noreply.github.com>
Co-authored-by: Bi Yoo <bi@insticator.com>
Co-authored-by: Bi Yoo <95636458+insticator-biY@users.noreply.github.com>
himaneeshinsticator pushed a commit that referenced this pull request Jul 21, 2023
* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Revert "Update insticatorBidAdapter_spec.js"

This reverts commit ae1397a.

* Revert "User sync fixes for 7 25 0 (#59)"

This reverts commit 2ea50ac.

* Update insticatorBidAdapter_spec.js

* Update insticatorBidAdapter_spec.js

* User sync fixes.

prioritize local store over cookie to store the user ID, so that the same value can be shared among tabs.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter.js

* Adding domain in the cookie.

* Fixing unit test.

* Adding logic for localhost.
himaneeshinsticator added a commit that referenced this pull request Jul 21, 2023
* Pull Insticator custom changes

* User sync fixes. (#58)

* User sync fixes for 7 25 0 (#59)

* User sync fixes.

* Update insticatorBidAdapter.js

* User sync fixes for 7 25 0 (#60)

* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* User sync fixes for 7 25 0 (#61)

* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Revert "Update insticatorBidAdapter_spec.js"

This reverts commit ae1397a.

* Revert "User sync fixes for 7 25 0 (#59)"

This reverts commit 2ea50ac.

* Update insticatorBidAdapter_spec.js

* Update insticatorBidAdapter_spec.js

* User sync fixes for 7 25 0 (#62)

* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Revert "Update insticatorBidAdapter_spec.js"

This reverts commit ae1397a.

* Revert "User sync fixes for 7 25 0 (#59)"

This reverts commit 2ea50ac.

* Update insticatorBidAdapter_spec.js

* Update insticatorBidAdapter_spec.js

* User sync fixes.

prioritize local store over cookie to store the user ID, so that the same value can be shared among tabs.

* Update insticatorBidAdapter.js

* User sync fixes for 7 25 0 (#63)

* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Revert "Update insticatorBidAdapter_spec.js"

This reverts commit ae1397a.

* Revert "User sync fixes for 7 25 0 (#59)"

This reverts commit 2ea50ac.

* Update insticatorBidAdapter_spec.js

* Update insticatorBidAdapter_spec.js

* User sync fixes.

prioritize local store over cookie to store the user ID, so that the same value can be shared among tabs.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter.js

* Adding domain in the cookie.

* Fixing unit test.

* Adding logic for localhost.

* Merging changes from master into 7.25.0 (#65)

* User sync fixes.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Revert "Update insticatorBidAdapter_spec.js"

This reverts commit ae1397a.

* Revert "User sync fixes for 7 25 0 (#59)"

This reverts commit 2ea50ac.

* Update insticatorBidAdapter_spec.js

* Update insticatorBidAdapter_spec.js

* User sync fixes.

prioritize local store over cookie to store the user ID, so that the same value can be shared among tabs.

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter.js

* Adding domain in the cookie.

* Fixing unit test.

* Adding logic for localhost.

* Adding new attributes for DealID.

* put 'it' in the right place

* User sync fix. (#68)

* set impression type using header bidding wrapper's API (#66)

* set impression type using header bidding wrapper's API

* linter

---------

Co-authored-by: Juan Jose Olivera <juan@insticator.com>
Co-authored-by: Robson Viana <81261035+robson-viana@users.noreply.github.com>
Co-authored-by: Bi Yoo <bi@insticator.com>
Co-authored-by: Bi Yoo <95636458+insticator-biY@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments