PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
19.63k stars 1.15k forks source link

Feature flags that depend on other flags #17967

Open neilkakkar opened 9 months ago

neilkakkar commented 9 months ago

Is your feature request related to a problem?

From a customer:

Sometimes, we want to introduce an enhancement only when you've already enrolled in an early access feature elsewhere. Sometimes we only want to target you for feedback or notifications if you're using those features. Sometimes we need some overlap (so not an experiment variant) but need to exclude you based on what other exposure you have. We end up having to write complicated conditions in custom code to gate the feature

Please describe.

Describe the solution you'd like

Have flags depend on other flags, so the complicated logic can be offset to posthog

Describe alternatives you've considered

Additional context

Internal ticket: https://posthoghelp.zendesk.com/agent/tickets/6477

Thank you for your feature request – we love each and every one!

kiran-4444 commented 8 months ago

I'd like to work on this. I know that this issue requires some extra effort (it's not a good-first-issue) and I'm happy to put it.

neilkakkar commented 8 months ago

Hey Kiran, we're not yet sure if this is something we want to build at all, so it's tricky, needs a bit of product work upfront to decide, so I'd recommend choosing something else to work on 😅 .

jurajmajerik commented 6 months ago

From another customer:

Are you all working on a way to, in an automated fashion, set a feature flag based on users who have another feature flag enabled? This would be VERY helpful to us as we have a lot of manual cohort creation and complexity as it's not available