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

Allow excluding wildcards in paths #6111

Merged
merged 2 commits into from
Sep 29, 2021
Merged

Conversation

neilkakkar
Copy link
Collaborator

Changes

Wildcards can now be used in exclude events filter

Checklist

  • All querysets/queries filter by Organization, by Team, and by User
  • Django backend tests
  • Jest frontend tests
  • Cypress end-to-end tests
  • Migrations are safe to run at scale (e.g. PostHog Cloud) – present proof if not obvious
  • New/changed UI is decent on smartphones (viewport width around 360px)

Copy link
Contributor

@paolodamico paolodamico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conceptually this makes sense to me, but I'm not the right person to review this, I'm not sure what the notation 2_/3 means, can you clarify? Maybe it's better just to wait for @EDsCODE

"date_from": "2012-01-01",
"exclude_events": ["/bar/*/foo"],
"include_event_types": ["$pageview"],
"path_groupings": ["/bar/*/foo"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe worth adding more tests cases such as excluding events that aren't grouped?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh i meant if you specified exclusion groupings but didn't have the corresponding path grouping

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah makes sense

@timgl timgl temporarily deployed to posthog-pr-6111 September 28, 2021 17:09 Inactive
@neilkakkar neilkakkar merged commit 579789b into master Sep 29, 2021
@neilkakkar neilkakkar deleted the path_wildcard_exclusions branch September 29, 2021 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants