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

feat(packages/sui-pde): add decide listener #1837

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

andresz1
Copy link
Member

@andresz1 andresz1 commented Oct 9, 2024

Description

This PR:

  • Fix an issue when consents are not accepted returning an object
  • Fix issue where ExperimentViewed event was being sent for feature flags only

Related Issue

Example

onDecide: ({type, decisionInfo: decision}) => {
const {ruleKey, variationKey, decisionEventDispatched} = decision

if (type === 'flag' && decisionEventDispatched) {
Copy link
Member Author

@andresz1 andresz1 Oct 9, 2024

Choose a reason for hiding this comment

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

This will make sure that ExperimentViewed is only sent when the feature test has a linked experiment

@andresz1 andresz1 marked this pull request as ready for review October 9, 2024 11:06
@andresz1 andresz1 merged commit 3627577 into master Oct 9, 2024
2 checks passed
@andresz1 andresz1 deleted the feat/decide-experiment-viewed branch October 9, 2024 11:14
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