Skip to content

[FSSDK-11529] Impression event logic adjustment for holdouts #1076

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

Merged
merged 19 commits into from
Aug 1, 2025

Conversation

junaed-optimizely
Copy link
Contributor

Summary

Event sending logic has been adjusted to accommodate holdouts

Test plan

New test cases have been added

Issues

Copilot

This comment was marked as outdated.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adjusts the impression event logic to properly handle holdout decisions. Holdouts are now treated similarly to feature tests for impression event dispatching, ensuring that impression events are sent when users are assigned to holdout experiments.

  • Added holdout decision source checks to impression event dispatch conditions
  • Updated layer ID logic to exclude holdouts from layer ID lookup
  • Enabled the holdout feature toggle

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
lib/optimizely/index.ts Added HOLDOUT decision source checks to impression event conditions
lib/optimizely/index.spec.ts Added comprehensive test coverage for holdout impression events
lib/feature_toggle.ts Enabled the holdout feature flag
lib/event_processor/event_builder/user_event.ts Modified layer ID logic to exclude holdouts

@coveralls
Copy link

coveralls commented Jul 29, 2025

Coverage Status

coverage: 79.138% (+0.09%) from 79.048%
when pulling 6bf661a on junaed/fssdk-11529-update-impression-event
into 27d6a24 on master.

Copy link

@muzahidul-opti muzahidul-opti left a comment

Choose a reason for hiding this comment

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

Looks good. A small fix requested.

Copy link

@muzahidul-opti muzahidul-opti left a comment

Choose a reason for hiding this comment

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

LGTM

@junaed-optimizely junaed-optimizely merged commit 017e10b into master Aug 1, 2025
18 of 19 checks passed
@junaed-optimizely junaed-optimizely deleted the junaed/fssdk-11529-update-impression-event branch August 1, 2025 17:37
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.

4 participants