Skip to content

Add OpenFeature provider#156

Draft
msiebert wants to merge 4 commits intomasterfrom
msiebert-openfeature-provider
Draft

Add OpenFeature provider#156
msiebert wants to merge 4 commits intomasterfrom
msiebert-openfeature-provider

Conversation

@msiebert
Copy link

Summary

  • Adds openfeature-provider/ package implementing OpenFeature provider
  • Wraps local or remote flags provider, identity check for flag detection
  • 29 tests, all passing

Design

  • targetingKey not special, STATIC reason, three error codes, shutdown no-op

🤖 Generated with Claude Code

Implement an OpenFeature provider that wraps the Mixpanel Python SDK's
local or remote feature flags provider, enabling standardized feature
flag evaluation via the OpenFeature API.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@msiebert msiebert self-assigned this Mar 19, 2026
msiebert and others added 3 commits March 20, 2026 11:05
Adds variant key passthrough, SDK exception handling (try/except),
null variant key tests, and context forwarding to evaluation calls.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Stop mapping targeting_key to distinct_id and nesting attributes under
custom_properties. All context attributes are now passed through flat,
matching the Java and Go SDKs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- shutdown() now delegates to underlying flags provider
- Add shutdown() to LocalFeatureFlagsProvider and RemoteFeatureFlagsProvider
- Explicitly pass report_exposure=True to get_variant()
- Rename reportExposure to report_exposure in RemoteFeatureFlagsProvider
- Add context value unwrapping with whole-number float→int conversion
- Update test mock signatures for report_exposure parameter

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