-
Notifications
You must be signed in to change notification settings - Fork 31
add isForceSendFlag in param getFeatureFlag #319
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
base: main
Are you sure you want to change the base?
Conversation
posthog-android/src/test/java/com/posthog/android/PostHogFake.kt
Outdated
Show resolved
Hide resolved
posthog-android/src/test/java/com/posthog/android/PostHogFake.kt
Outdated
Show resolved
Hide resolved
|
will be more comments? @marandaneto @ioannisj |
ioannisj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG to me but I'll let @marandaneto have a final look
|
@KopeikinaDarya can you fix formatting and add a unit test for this? otherwise all good, thanks! |
|
@KopeikinaDarya please run |
# Conflicts: # posthog-android/CHANGELOG.md
# Conflicts: # posthog/src/main/java/com/posthog/PostHog.kt
# Conflicts: # posthog-android/CHANGELOG.md
Head branch was pushed to by a user without write access
|
@KopeikinaDarya i will merge and release this asap, right now we are closed to contributor PRs due to https://posthog.com/blog/nov-24-shai-hulud-attack-post-mortem , should be back later this week or early next week |
the same problem wowrumal/posthog-ios#3
My change addresses the behavior of sticky feature flags from this PostHog tutorial. When initially reading and assigning feature flags to a user, I want to avoid sending the $feature_flag_called event, since these evaluations are not real exposures yet.
If I filter out these events using the beforeSend block, I lose all analytics related to feature flag exposures—including the ones I actually want to track. This approach also breaks experiment accuracy, because I can no longer trigger exposure events exactly when needed.
My update ensures that exposure events are sent only at the appropriate time, keeping experiment tracking reliable and analytics data clean.