You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[AI-FSSDK] [FSSDK-12369] Add local holdouts support to Go SDK (#451)
* [AI-FSSDK] [FSSDK-12369] Add local holdouts support to Go SDK
* [FSSDK-12369] Add local holdout tests and fix cyclomatic complexity
- Add rollout service tests for local holdout in regular and fallback rules,
and FD-beats-local-holdout ordering enforcement
- Add feature experiment service FD-beats-100%-local-holdout enforcement test
- Add GetHoldoutsForRule config tests (previously untested)
- Extract checkForLocalHoldout closure to getLocalHoldoutDecision method
to bring GetDecision cyclomatic complexity from 18 to 16 (lint fix)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* trigger CI
* [FSSDK-12369] Address reviewer feedback: remove flagHoldoutsMap, rename HoldoutService methods
- Remove flagHoldoutsMap from mapper, config struct, and config.go
- Remove GetHoldoutsForFlag from ProjectConfig interface and DatafileProjectConfig
- MapHoldouts now returns globalHoldouts []entities.Holdout (not per-flag map)
- Rename HoldoutService.GetDecision → GetGlobalDecision
- Rename HoldoutService.GetDecisionForRule → GetLocalDecisionForRule
- Update CompositeFeatureService to call GetGlobalDecision explicitly
- Update all call sites and tests to match new API
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments