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
21.73k stars 1.3k forks source link

Support `Only events matching filters` checkbox when using actions #24476

Closed marandaneto closed 2 months ago

marandaneto commented 2 months ago

Bug Description

Bug description

The Only events matching filters checkbox only works if you are filtering by events and not actions

How to reproduce

  1. Create an action
  2. Filter recordings by an action
  3. Open the inspection
  4. Check the Only events matching filters checkbox
  5. Only the events that match the action should appear

Additional context

Window became hidden and Window became visible are never filtered out as well.

Debug info

- [ ] PostHog Cloud, Debug information: [please copy/paste from https://us.posthog.com/settings/project-details#variables or https://eu.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]
marandaneto commented 2 months ago

I think this works with action as well, but the user's action rules were very loose, will double check.

Window became hidden and Window became visible are never filtered out as well.

This is a bug still.