Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative date targeting for feature flags / surveys #17392

Closed
neilkakkar opened this issue Sep 12, 2023 · 1 comment · Fixed by #18349
Closed

Relative date targeting for feature flags / surveys #17392

neilkakkar opened this issue Sep 12, 2023 · 1 comment · Fixed by #18349
Labels
enhancement New feature or request feature/feature-flags Feature Tag: Feature flags

Comments

@neilkakkar
Copy link
Collaborator

Is your feature request related to a problem?

I want to target a relative date, say, if I want users to see a survey only 7 days after account creation.

I currently can't do this easily because relative date operations aren't supported in flag matching: I can only choose static dates.

Please describe.

Describe the solution you'd like

Create a relative date operator for flag matching

Describe alternatives you've considered

Additional context

https://posthogusers.slack.com/archives/C01GLBKHKQT/p1693469440070429

https://posthoghelp.zendesk.com/agent/tickets/5728

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

@neilkakkar neilkakkar added enhancement New feature or request feature/feature-flags Feature Tag: Feature flags labels Sep 12, 2023
@lsmith77
Copy link

if its tricky to add generic function support, maybe there could be a quick fix for a limited set of date "functions" as operators? ie.

field: created_at
operator: older_than_days
value: 7

More ideal of course would be something like

field: DATEDIFF(created_at, NOW)
operator: > (greater than)
value: 7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature/feature-flags Feature Tag: Feature flags
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants