posthog icon indicating copy to clipboard operation
posthog copied to clipboard

Webhook is not respecting Action Filters

Open martindavis opened this issue 2 years ago • 1 comments

Bug description

When setting up filters on custom properties of a custom event in PostHog Actions, the Webhook is being invoked for events that should be filtered out. For example, we are filtering out Auth Login issues where the user enters the wrong username or password so that we are only alerted if there is a system issue.

After setting up this action in the UI, we see only a list of events that match our filters: Screen Shot 2022-05-13 at 11 43 19 AM

However, in Slack, we are being notified for Auth Login issues that should be filtered out: Screen Shot 2022-05-13 at 11 56 19 AM

How to reproduce

  1. Create an Action on a Custom Event
  2. Add two filters using doesn't contain that filter out a custom event property.
  3. Add a Webhook to the Action.

Environment

  • [X] PostHog Cloud

Additional context

This may be due to the text we're trying to filter out being included as a subproperty of error and messages. In both cases, the text in question is located in messages.text or error.text.

Thank you for your bug report – we love squashing them!

martindavis avatar May 13 '22 16:05 martindavis

This issue hasn't seen activity in two years! If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in two weeks.

posthog-bot avatar May 16 '24 07:05 posthog-bot

This issue was closed due to lack of activity. Feel free to reopen if it's still relevant.

posthog-bot avatar May 31 '24 07:05 posthog-bot