-
Notifications
You must be signed in to change notification settings - Fork 1
Add experiment-level selection mode configuration for grouped trials #12
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
Conversation
- Added UsingFeatureFlag(), UsingConfigurationKey(), and UsingCustomMode() methods to ExperimentBuilder - Added extension methods for UsingVariantFeatureFlag() and UsingOpenFeature() in respective packages - Modified ServiceExperimentBuilder to support experiment-level selection mode inheritance - Updated IExperimentDefinitionBuilder interface to include ApplyExperimentSelectionMode method Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>
- Created comprehensive tests for UsingFeatureFlag, UsingConfigurationKey, and UsingCustomMode on ExperimentBuilder - Added tests for trial-level overrides - All 1775 tests pass including 8 new tests Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>
- Added HasTrialSelectionMode() helper method to make selection mode override logic more explicit - Updated test documentation to clarify it tests selection mode functionality Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>
|
@copilot Ensure this change is documented (not as a change, but just as an option in our docs) |
- Added comprehensive section in selection-modes.md explaining the new feature - Updated core-concepts.md example to demonstrate shared selection mode - Documented all available methods (UsingFeatureFlag, UsingConfigurationKey, UsingCustomMode) - Included extension package methods (UsingVariantFeatureFlag, UsingOpenFeature) - Explained trial-level override behavior - Provided before/after examples showing benefits Co-authored-by: JerrettDavis <2610199+JerrettDavis@users.noreply.github.com>
Documentation added in commit 05ab303. The feature is now documented in:
The documentation shows how to use |
Code Coverage |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12 +/- ##
=======================================
Coverage ? 91.86%
=======================================
Files ? 157
Lines ? 5407
Branches ? 795
=======================================
Hits ? 4967
Misses ? 440
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ExperimentBuilderclassUsingFeatureFlag()method onExperimentBuilderUsingConfigurationKey()method onExperimentBuilderUsingCustomMode()method onExperimentBuilderExperimentFramework.FeatureManagementforUsingVariantFeatureFlag()onExperimentBuilderExperimentFramework.OpenFeatureforUsingOpenFeature()onExperimentBuilderSummary
Successfully implemented and documented the feature to define a single experiment key (selection mode) for all trials under an experiment. The implementation:
UsingFeatureFlag(),UsingConfigurationKey(), andUsingCustomMode()methodsUsingVariantFeatureFlag()andUsingOpenFeature()in respective packagesAll 1775 tests pass, demonstrating that the changes are non-breaking and work correctly across the entire codebase.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.