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

fix(cdp): Template mistakes #28365

Merged
merged 9 commits into from
Feb 6, 2025
Merged

fix(cdp): Template mistakes #28365

merged 9 commits into from
Feb 6, 2025

Conversation

benjackwhite
Copy link
Contributor

Problem

Found some typos and mistakes whilst trialling the migration

Changes

  • Fixes them

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

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

How did you test this code?

@benjackwhite benjackwhite requested a review from a team February 6, 2025 09:34
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR addresses template mistakes and migration issues in the CDP (Customer Data Platform) transformation plugins, focusing on plugin ID corrections and validation improvements.

  • Fixed plugin IDs in multiple transformation plugins by adding consistent 'plugin-' prefixes (e.g., plugin-posthog-plugin-snowplow-referer-parser)
  • Changed input type from 'string' to 'json' for routes in /plugin-server/src/cdp/legacy-plugins/_transformations/posthog-route-censor-plugin/template.ts
  • Added bypass_addon_check context flag in /posthog/api/hog_function.py to allow migrations without Data Pipelines addon
  • Removed inputs_schema conversion logic from /posthog/cdp/migrations.py and simplified migration process

7 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile

@benjackwhite benjackwhite enabled auto-merge (squash) February 6, 2025 13:09
@benjackwhite benjackwhite merged commit b584915 into master Feb 6, 2025
96 checks passed
@benjackwhite benjackwhite deleted the fix/templates branch February 6, 2025 13:26
adamleithp pushed a commit that referenced this pull request Feb 6, 2025
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.

2 participants