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

Removing duplicate checks for set_external_user_id #917

Merged
merged 2 commits into from
Apr 26, 2021

Conversation

emawby
Copy link
Contributor

@emawby emawby commented Apr 23, 2021

We have seen some issues where set_external_user_id is not being set on channel records with an error that it has already been set. This PR simplifies the set_external_user_id code to always set the external user id, even if it matches the cached value for that channel. This will make setExternalUserId more reliable and simplifies the code path.


This change is Reviewable

emawby added 2 commits April 23, 2021 12:17
This check has caused issues with the external id not being set after setting email, and this check is not on Android. Removing to match Android behavior and avoid potential issues.
Now that setExternalUserId's put request is called after registerUser the unit tests need to be updated.
@emawby emawby requested review from jkasten2 and Jeasmine April 23, 2021 19:33
Copy link
Member

@jkasten2 jkasten2 left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r1.
Reviewable status: 2 of 3 files reviewed, all discussions resolved (waiting on @Jeasmine)

@emawby emawby merged commit 3384bd7 into master Apr 26, 2021
@emawby emawby deleted the fix/external_user_id_in_set_email branch April 26, 2021 18:08
@emawby emawby mentioned this pull request Apr 28, 2021
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