Skip to content

fix: skip exposure event when in-experiment flag has no variant - #251

Merged
Zaimwa9 merged 1 commit into
mainfrom
fix/exposure-requires-variant
Sep 23, 2026
Merged

Zaimwa9 merged 1 commit into
mainfrom
fix/exposure-requires-variant

Conversation

@Zaimwa9

@Zaimwa9 Zaimwa9 commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Changes

get_experiment_flag no longer sends an exposure with value=None when the identity is in an experiment but the flag has no variant. It logs and skips instead, restoring the variant guard removed in #249.

How did you test this code?

New test in tests/test_flagsmith.py; pytest and pre-commit pass.

@Zaimwa9
Zaimwa9 requested a review from a team as a code owner September 23, 2026 09:07
@Zaimwa9
Zaimwa9 requested review from matthewelwell and removed request for a team September 23, 2026 09:07
@Zaimwa9
Zaimwa9 merged commit 0f5af28 into main Sep 23, 2026
6 checks passed
@Zaimwa9
Zaimwa9 deleted the fix/exposure-requires-variant branch September 23, 2026 09:22
@Zaimwa9
Zaimwa9 removed the request for review from matthewelwell September 23, 2026 11:47
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