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: simplify handling of deviceID #975

Merged

Conversation

gillycheesesteak
Copy link
Contributor

Description

  • Centralizes the handling of deviceID to prevent mismatch between deviceID and treatmentsHash, which is dependent on deviceID
  • Enables the treatments component on non-SDK integrations, so deviceID can be populated for those integrations in a common way

Screenshots

N/A

Testing instructions

Need to consider all possible states of deviceID in localStorage and different integrations that may be currently relying on the way that has been populated previously

@gillycheesesteak gillycheesesteak marked this pull request as ready for review August 21, 2023 19:18
ts: getTsCookieFromStorage(),
deviceID: getOrCreateStorageID(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we're no longer pulling the deviceID in the zoid component onReady hooks for the message or modal does this still serve any purpose? If not can this and other instances for the message and modal code just be completely removed if the treatments component is supposed to be the only frame making that communication?

Copy link
Contributor

Choose a reason for hiding this comment

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

good call out

@JustinDoan JustinDoan merged commit 42012c4 into paypal:develop Aug 29, 2023
49 checks passed
github-actions bot pushed a commit that referenced this pull request Aug 29, 2023
## [1.47.0](v1.46.1...v1.47.0) (2023-08-29)

### Features

* Create Messaging function to send back current date for US Pi4 Preapproval modals in XO ([#967](#967)) ([380656c](380656c))
* native modal communication ([#851](#851)) ([1d30e05](1d30e05))
* runtime functionality for easier development testing ([#972](#972)) ([0bc86fe](0bc86fe))
* update nominal rate and APR in DE LT modal legal disclosure ([#974](#974)) ([9e937ba](9e937ba))

### Bug Fixes

* simplify handling of deviceID ([#975](#975)) ([42012c4](42012c4))
@github-actions
Copy link

🎉 This PR is included in version 1.47.0 🎉

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