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: Hog function template defaults #27508

Merged
merged 2 commits into from
Jan 15, 2025
Merged

Conversation

benjackwhite
Copy link
Contributor

Problem

Found a bug with hog function creation. We were only pulling from the template if they didn't have the addon whereas we actually want to pull from it if it isn't set.

Changes

👉 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 January 14, 2025 15:09
@@ -168,18 +169,23 @@ def validate(self, attrs):
{"template_id": "The Data Pipelines addon is required for this template."}
)

# Without the addon, they cannot deviate from the template
attrs["inputs_schema"] = template.inputs_schema
attrs["mappings"] = template.mappings
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This shouldn't have been here either

@benjackwhite benjackwhite enabled auto-merge (squash) January 14, 2025 15:13
@benjackwhite benjackwhite disabled auto-merge January 14, 2025 15:13
@benjackwhite benjackwhite enabled auto-merge (squash) January 14, 2025 15:14
@benjackwhite benjackwhite merged commit 5ba943f into master Jan 15, 2025
92 checks passed
@benjackwhite benjackwhite deleted the fix/hog-function-template branch January 15, 2025 07:45
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