Skip to content

Conversation

@Mat001
Copy link
Contributor

@Mat001 Mat001 commented Dec 8, 2025

This change fixes a bug where GetDetailedFeatureDecisionUnsafe did not return experimentKey and variationKey for holdout decisions, only for feature tests.

Changes:

  • Updated client.go:878 to include decision.Holdout alongside decision.FeatureTest
  • Added test case TestGetDetailedFeatureDecisionUnsafeWithHoldoutAndTrackingEnabled
  • Updated comment to clarify that holdouts should include experiment/variation info

https://optimizely-ext.atlassian.net/browse/FSSDK-11552

…riation info

This change fixes a bug where GetDetailedFeatureDecisionUnsafe did not return
experimentKey and variationKey for holdout decisions, only for feature tests.

Holdouts are control groups that need experiment/variation tracking for analytics,
similar to feature tests. This aligns the go-sdk with the Swift SDK reference
implementation, which includes experiment and variation info for all decision
sources except rollouts.

Changes:
- Updated client.go:878 to include decision.Holdout alongside decision.FeatureTest
- Added test case TestGetDetailedFeatureDecisionUnsafeWithHoldoutAndTrackingEnabled
- Updated comment to clarify that holdouts should include experiment/variation info
@Mat001 Mat001 self-assigned this Dec 8, 2025
Copy link

@pvcraven pvcraven left a comment

Choose a reason for hiding this comment

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

Return experimentKey and variationKey for holdout decisions as well as feature tests

@Mat001 Mat001 merged commit 5db0758 into master Dec 9, 2025
12 checks passed
@Mat001 Mat001 deleted the mpirnovar-fix-activate-endpoint-holdouts branch December 9, 2025 18:44
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.

3 participants