-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: exclusion steps cannot be selected #9762
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
Conversation
perhaps makes sense to update the frontend to not send that API request? Since that's atleast one extra query making it to Clickhouse which is worthless. And on the backend, filtering out empty entities, but not incomplete ones as the current solution does, as that hides better error messages / covers a larger error area than we want |
Also, fixes #9537 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good, although I'm not too familiar with the underlying exclusion logic.
@benjackwhite that makes two of us 🤣 the joy of support week fixes is a kind of freedom |
* master: fix: exclusion steps cannot be selected (#9762) feat(lemon-button): Support `status` for `primary` buttons (#9782) fix: healthcheck for kafka on plugin server (#9771) fix(billing): Update billing success message (#9739) fix(plugin-server): Set transpileOnly when importing piscina code in tests (#9777) fix(plugin-server): Remove unused kafka reset test code (#9779) fix: set kafka_skip_broken_messages on dead letter queue table (#9754) fix(plugin-server): remove dead code from worker.test.ts (#9776) refactor(plugin-server): Run ingestion only on worker threads (#9738) fix: Plugin-server tests with kafka need to have consumer stopped (#9774) chore(deps): Update posthog-js to 1.21.1 (#9773) chore(dep): upgrading rr-web (#9772) fix: ouroboros inputs (#9769)
* don't error if sent an empty exclusion, just ignore it * strongly opinionated get it working * only filter out empty dictionaries
Problem
In this community slack message the user reports that when they try to add an exclusion filter to a funnel they get an error.
Confirmed this happens for all users
The error is because on adding the exclusion filter, and before being offered a pop-up to choose the event or action, the UI sends an empty exclusion filter to the API
Fixing the API to ignore those empty values shows that the exclusion filter UI does not allow you to make a selection. So exclusion filters cannot be added.
Changes
in order to get the feature functionally working again
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
How did you test this code?
running it locally