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: Zapier description #28723

Merged
merged 4 commits into from
Feb 14, 2025
Merged

fix: Zapier description #28723

merged 4 commits into from
Feb 14, 2025

Conversation

benjackwhite
Copy link
Contributor

Problem

Didn't quite get the logic right for the description

Changes

  • Fixed it
  • Made the description more verbose

👉 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 14, 2025 13:03
@benjackwhite benjackwhite marked this pull request as ready for review February 14, 2025 13:03
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 updates the description handling for Zapier integrations, improving clarity and adding migration context when converting legacy hooks to HogFunctions.

  • Added from_migration parameter in ee/api/hooks.py to control description formatting
  • Updated template description in posthog/cdp/templates/zapier/template_zapier.py to clarify Zapier app usage
  • Modified migration script in posthog/management/commands/migrate_hooks.py to include original hook ID in descriptions
  • Added description assertions in test files to verify both standard and migration cases

5 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@benjackwhite benjackwhite merged commit 13ff1af into master Feb 14, 2025
96 checks passed
@benjackwhite benjackwhite deleted the fix/zapier-desxcriptuon branch February 14, 2025 15:21
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