Skip to content

[AI-FSSDK] (DO NOT REVIEW) [FSSDK-12275] Skip unsupported experiment type during flag decision#599

Open
raju-opti wants to merge 1 commit intomasterfrom
ai/raju-opti/FSSDK-12275-experiment-type
Open

[AI-FSSDK] (DO NOT REVIEW) [FSSDK-12275] Skip unsupported experiment type during flag decision#599
raju-opti wants to merge 1 commit intomasterfrom
ai/raju-opti/FSSDK-12275-experiment-type

Conversation

@raju-opti
Copy link
Contributor

@raju-opti raju-opti commented Feb 16, 2026

Summary

Implements experiment type filtering in the decision service to skip unsupported experiment types during flag decision evaluation.

Changes

  • Experiment Class: Added type field with SUPPORTED_TYPES constant
  • Constructors: Updated all constructors including @JsonCreator to accept type
  • Parsers: Updated Gson, JSON, JSONSimple parsers to parse type from datafile
  • Decision Logic: Updated DecisionService.getVariationFromExperiment to skip unsupported types

Behavior

  • If type is null (not set in datafile): Experiment is evaluated (backward compatible)
  • If type is in SUPPORTED_TYPES: Experiment is evaluated
  • If type is non-null but NOT in SUPPORTED_TYPES: Experiment is skipped

Test Plan

  • All existing tests pass (no regression)
  • Gradle compiles without errors

Related


Generated with Claude Code

- Add type field to Experiment class with SUPPORTED_TYPES constant
- Update all constructors and parsers (Jackson, Gson, JSON, JSONSimple) to parse type
- Update DecisionService.getVariationFromExperiment to skip unsupported types
- Experiments with null type (not set in datafile) are still evaluated
- Add backward-compatible constructor for existing test code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant