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

chore(web-analytics): Simplify channel type and reference docs #21196

Merged
merged 4 commits into from
Mar 28, 2024

Conversation

robbie-c
Copy link
Member

@robbie-c robbie-c commented Mar 28, 2024

Problem

.*cp.* is a bit too general, and can give false positives given how high up in the ranking this rule is.

Changes

Instead just list what we would expect to match

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

All existing tests pass

@robbie-c robbie-c changed the title Simply channel type and reference docs chore(web-analytics): Simply channel type and reference docs Mar 28, 2024
@robbie-c robbie-c changed the title chore(web-analytics): Simply channel type and reference docs chore(web-analytics): Simplify channel type and reference docs Mar 28, 2024
@robbie-c robbie-c force-pushed the update-channel-type-to-match-docs branch from 9515fc9 to cb35cf0 Compare March 28, 2024 10:21
@robbie-c robbie-c requested review from mariusandra and Twixes March 28, 2024 10:22
@@ -68,14 +68,17 @@ def wrap_with_null_if_empty(expr: ast.Expr) -> ast.Expr:
args=[ast.Call(name="nullIf", args=[expr, ast.Constant(value="")]), ast.Constant(value="null")],
)

# This logic is referenced in our docs https://posthog.com/docs/data/channel-type, be sure to update both if you
Copy link
Member Author

Choose a reason for hiding this comment

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

Currently in PR PostHog/posthog.com#8150

@robbie-c robbie-c marked this pull request as ready for review March 28, 2024 10:27
@robbie-c robbie-c force-pushed the update-channel-type-to-match-docs branch from cb35cf0 to cbdd7d3 Compare March 28, 2024 11:08
@robbie-c robbie-c enabled auto-merge (squash) March 28, 2024 11:08
@robbie-c robbie-c merged commit 5138af0 into master Mar 28, 2024
76 checks passed
@robbie-c robbie-c deleted the update-channel-type-to-match-docs branch March 28, 2024 16:28
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.

3 participants