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(session replay): opt out should take effect immediately #586

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

jxiwang
Copy link

@jxiwang jxiwang commented Sep 20, 2023

Summary

Fix issue with session replay opt out not applying immediately. This change will immediately stop recordings and opt the user out of session replay.

Also fixed issue where identityStoreOptOut would default to this.config.optOut when identityStoreOptOut was false. This misses the case where optOut should be false and not defaulted to this.config.optOut which could be the previous optOut state.

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?:

@jxiwang jxiwang requested a review from kwalker3690 September 20, 2023 21:49
Copy link

@kwalker3690 kwalker3690 left a comment

Choose a reason for hiding this comment

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

Awesome this looks great! Do you mind adding some tests to cover both of these changes? I know the test coverage says 100% (which is interesting in and of itself...) but clearly we didn't have the test coverage for this logic already. Great catch on the identityStoreOptOut bug too!

@jxiwang jxiwang requested a review from kwalker3690 September 21, 2023 17:27
@jxiwang jxiwang merged commit 5374314 into v1.x Sep 26, 2023
@jxiwang jxiwang deleted the AMP-83059-opt-out-should-take-effect-immediately branch September 26, 2023 16:41
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