Skip to content

Feature flags support 'not in' operator for cohorts #13145

@MarkLyck

Description

@MarkLyck

Is your feature request related to a problem?

I have a feature flag that I want to be enable for everyone except 1 cohort.

This is surprisingly frustrating to do in PostHog. If I make a condition with just that Cohort and set it to 0% rollout. Then no one will see the feature flag.

If I add a second condition that matches everyone with a 100% rollout. Then because there is only an "OR" option, it matches everyone which is also not what I want.

SO the only way to exclude a single Cohort, is by either creating a special cohort for just this feature flag that includes everyone except the users I don't want to include. But this pollutes the dashboard with one-off messy cohorts.

Or what I did since I don't want to pollute my cohorts was the add every cohort except the one I want to exclude and set all of them to 100% rollout. Why is this so difficult?

Describe the solution you'd like

Add a feature flag condition that allows me to set a cohort to 0% rollout and all other cohorts to 100%

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

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions