Feature Request: Allow "setPersonPropertiesForFlags" options to used in feature flag matching rules
Open
Nobody has claimed this yet.
enhancement
team/feature-flags
- Dominant language
- Python
- Stars
- 39.9k
- Forks
- 3.4k
- Avg merge
- 6h 51m
- Merged PRs (30d)
- 232
Description
Feature request
Is your feature request related to a problem?
- A bit of a corollary to https://github.com/PostHog/posthog/issues/67928
- We have options to set overrides on feature flags on a specific user.
- However, these properties aren't captured and displayed in the feature flag matching rules.
- These ephemeral properties make it difficult to create flag matching criteria.
Describe the solution you'd like
- It would be great if data for these events would populate the match criteria for feature flags.
- This would include things like
setPersonPropertiesForFlags&setPersonProperties. - This would allow people to create these match rules without forcing a new event to be processed.
Describe alternatives you've considered
- Right now you can create a dummy event using
$setto create an event with these properties. - This does make the property appear in the dropdown.
- But this can also cause a bit of extra data baggage that isn't needed, such as updating random person properties or creating a dummy user.
Additional context
Debug info
- [X ] PostHog Cloud, region and project ID: [please provide, you can find both at https://app.posthog.com/settings/project-details#variables]
- [ ] PostHog Hobby self-hosted with `docker compose`, version/commit: [please provide]
- [ ] PostHog self-hosted with Kubernetes (deprecated, see [`Sunsetting Kubernetes support`](https://posthog.com/blog/sunsetting-helm-support-posthog)), version/commit: [please provide]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the feature flag matching-rules flow and the setPersonPropertiesForFlags and setPersonProperties behavior described in the issue; trace how properties become available in the matching-criteria selector. Done means these ephemeral properties can populate selectable criteria without requiring a dummy event, with regression coverage for the new behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100