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

[FSSDK-11371] parsing holdout section from the datafile #577

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

muzahidul-opti
Copy link
Contributor

Summary

  • Create a new Holdout model
  • Declare an ExperimentCore protocol to share common properties between Experiment and Holdout
  • Update the Experiment model to conform to ExperimentCore and align with shared properties.

Test plan

  • Holdout model test cases added

Issues

  • [FSSDK-11371]

@muzahidul-opti muzahidul-opti marked this pull request as ready for review March 21, 2025 11:06
@muzahidul-opti muzahidul-opti requested a review from jaeopt March 21, 2025 11:07
Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

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

some suggestions.

Comment on lines 35 to 36
var includedFlags: [String]?
var excludedFlags: [String]?
Copy link
Contributor

Choose a reason for hiding this comment

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

Make them required fields. Contents can be empty.

var variations: [Variation]
var trafficAllocation: [TrafficAllocation]
var audienceIds: [String]
var audienceConditions: ConditionHolder?
Copy link
Contributor

Choose a reason for hiding this comment

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

also required.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

audienceConditions is common between Experiment and Holdout, that's why I leave as it is.

@muzahidul-opti muzahidul-opti requested a review from jaeopt March 25, 2025 16:02
Copy link
Contributor

@jaeopt jaeopt 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! Can you confirm about Experiment in OptimizelyConfig?

@muzahidul-opti muzahidul-opti requested a review from jaeopt April 4, 2025 13:19
Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

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

LGTM

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