Closed AChelikani closed 1 year ago
Hey @AChelikani , what conditions do you add when you turn on the flag for your org?
🤔
Ah, great catch, I see it. We pass in nil
to groups instead of the correct group when evaluating flags. This affects anyone using go for feature flags with groups.
https://github.com/PostHog/posthog-go/blob/master/featureflags.go#L780
Thanks for the quick response - I opened up a PR if you don't mind taking a look.
Nice, I was going to get to it tomorrow, but this is even better :)
I'm trying to use feature flags with groups since I have many anonymous users within an organization for my use case. I created a flag with key
test
and tried variations where it was on for all, on for just my desired organization, and off for all. The results ofGetAllFlags
appears to be always correct, while the results forIsFeatureEnabled
andGetFeatureFlag
are not consistent withGetAllFlags
and sometimes wrong.I'm using the latest SDK.
Code:
Feature flag set to enabled with no release conditions:
Feature flag turned on for just my orgID:
Feature flag set to disabled with no release conditions: