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

fix: prevent undefined device ID when namespace #994

Merged
merged 2 commits into from
Oct 17, 2023

Conversation

Seavenly
Copy link
Collaborator

@Seavenly Seavenly commented Oct 4, 2023

Description

These changes include 2 fixes

  1. When using the SDK namespace feature, currently that results in "undefined" being passed up to the experiments endpoint because the SDK instance running inside the IFrame does not get passed the custom namespace and will always use the default namespace. To fix this issue we pass the default namespace into the IFrame to be used instead.
  2. @danzhaas noticed that under certain circumstances that different device IDs could be sent to different endpoints for the same message instance. We were unable to reproduce this issue consistently so we have theoretical changes that enforce all local storage reading and writing to go through the common belter storage helper to ensure that the belter storage instance used by the SDK does not get out of sync with our manual mutations of local storage directly.

Screenshots

N/A

Testing instructions

N/A

@paypal paypal deleted a comment from danzhaaspaypal Oct 10, 2023
@merlinpaypal merlinpaypal merged commit fe91522 into paypal:develop Oct 17, 2023
49 checks passed
github-actions bot pushed a commit that referenced this pull request Oct 18, 2023
### [1.49.2](v1.49.1...v1.49.2) (2023-10-18)

### Bug Fixes

* prevent undefined device ID when namespace ([#994](#994)) ([fe91522](fe91522))
* safari focus  ([#1005](#1005)) ([827a56d](827a56d))
* safari focus ([#997](#997)) ([5b4a823](5b4a823))

### Code Refactoring

* disable tab trap on api or lander ([#999](#999)) ([ab92760](ab92760))
@github-actions
Copy link

🎉 This PR is included in version 1.49.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants