PostHog / PostHog/posthog

Feature Request: Allow "setPersonPropertiesForFlags" options to used in feature flag matching rules

Open
#87,358 0 comments 0 reactions 0 assignees View on GitHub

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?

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 $set to 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.