:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(cdp): move destination templates _internal to june into products (#115474)
Harley Alexander73c2ac96ce66
diff --git a/posthog/cdp/templates/__init__.py b/posthog/cdp/templates/__init__.pyindex a752cf7de149..284ff87c91a3 100644--- a/posthog/cdp/templates/__init__.py+++ b/posthog/cdp/templates/__init__.py@@ -1,48 +1,49 @@-from ._internal.template_blank import blank_site_app, blank_site_destination-from ._siteapps.template_debug_posthog import template as debug_posthog-from ._siteapps.template_early_access_features import template as early_access_features-from ._siteapps.template_hogdesk import template as hogdesk-from ._siteapps.template_notification_bar import template as notification_bar-from ._siteapps.template_pineapple_mode import template as pineapple_mode-from .activecampaign.template_activecampaign import template as activecampaign-from .airtable.template_airtable import template as airtable-from .attio.template_attio import template as attio-from .avo.template_avo import (+from products.cdp.backend.templates._internal.template_blank import blank_site_app, blank_site_destination+from products.cdp.backend.templates.activecampaign.template_activecampaign import template as activecampaign+from products.cdp.backend.templates.airtable.template_airtable import template as airtable+from products.cdp.backend.templates.attio.template_attio import template as attio+from products.cdp.backend.templates.avo.template_avo import (TemplateAvoMigrator,template as avo,)-from .aws_kinesis.template_aws_kinesis import template as aws_kinesis-from .braze.template_braze import template as braze-from .brevo.template_brevo import template as brevo-from .clearbit.template_clearbit import template as clearbit-from .customerio.template_customerio import (+from products.cdp.backend.templates.aws_kinesis.template_aws_kinesis import template as aws_kinesis+from products.cdp.backend.templates.braze.template_braze import template as braze+from products.cdp.backend.templates.brevo.template_brevo import template as brevo+from products.cdp.backend.templates.clearbit.template_clearbit import template as clearbit+from products.cdp.backend.templates.customerio.template_customerio import (TemplateCustomerioMigrator,template as customerio,)-from .discord.template_discord import template as discord-from .engage.template_engage import (+from products.cdp.backend.templates.discord.template_discord import template as discord+from products.cdp.backend.templates.engage.template_engage import (TemplateEngageMigrator,template as engage,)-from .gleap.template_gleap import template as gleap-from .google_cloud_storage.template_google_cloud_storage import (+from products.cdp.backend.templates.gleap.template_gleap import template as gleap+from products.cdp.backend.templates.google_cloud_storage.template_google_cloud_storage import (TemplateGoogleCloudStorageMigrator,template as google_cloud_storage,)-from .google_pubsub.template_google_pubsub import (+from products.cdp.backend.templates.google_pubsub.template_google_pubsub import (TemplateGooglePubSubMigrator,template as google_pubsub,)-from .hubspot.template_hubspot import (+from products.cdp.backend.templates.hubspot.template_hubspot import (TemplateHubspotMigrator,template as hubspot,template_event as hubspot_event,)-from .intercom.template_intercom import (+from products.cdp.backend.templates.intercom.template_intercom import (template as intercom,template_send_event as intercom_send_event,)-from .june.template_june import template as june+from products.cdp.backend.templates.june.template_june import template as june++from ._siteapps.template_debug_posthog import template as debug_posthog+from ._siteapps.template_early_access_features import template as early_access_features+from ._siteapps.template_hogdesk import template as hogdesk+from ._siteapps.template_notification_bar import template as notification_bar+from ._siteapps.template_pineapple_mode import template as pineapple_modefrom .klaviyo.template_klaviyo import (template_event as klaviyo_event,template_user as klaviyo_user,diff --git a/posthog/test/repo_invariants/database_free_test_classes_baseline.txt b/posthog/test/repo_invariants/database_free_test_classes_baseline.txtindex c514f4929d48..b65aeeb100e0 100644--- a/posthog/test/repo_invariants/database_free_test_classes_baseline.txt+++ b/posthog/test/repo_invariants/database_free_test_classes_baseline.txt@@ -85,9 +85,9 @@ posthog/api/test/test_toolbar_oauth_primitives.py::TestTokenEndpointStatusRemappposthog/api/test/test_toolbar_oauth_primitives.py::TestToolbarOAuthStateCacheposthog/api/test/test_user_integration.py::TestGithubUserFromCodeposthog/caching/test/test_redis_cluster_keys.py::TestRedisClusterKeySlots-posthog/cdp/templates/avo/test_template_avo.py::TestTemplateMigration-posthog/cdp/templates/customerio/test_template_customerio.py::TestTemplateMigration-posthog/cdp/templates/hubspot/test_template_hubspot.py::TestTemplateMigration+products/cdp/backend/templates/avo/test_template_avo.py::TestTemplateMigration+products/cdp/backend/templates/customerio/test_template_customerio.py::TestTemplateMigration+products/cdp/backend/templates/hubspot/test_template_hubspot.py::TestTemplateMigrationposthog/cdp/templates/posthog/test_template_posthog.py::TestTemplateMigrationposthog/cdp/templates/rudderstack/test_template_rudderstack.py::TestTemplateMigrationposthog/cdp/templates/salesforce/test_template_salesforce.py::TestTemplateMigrationdiff --git a/posthog/cdp/templates/_internal/template_blank.py b/products/cdp/backend/templates/_internal/template_blank.pysimilarity index 98%rename from posthog/cdp/templates/_internal/template_blank.pyrename to products/cdp/backend/templates/_internal/template_blank.pyindex 0df054ef306b..6c7f79ab6da3 100644--- a/posthog/cdp/templates/_internal/template_blank.py+++ b/products/cdp/backend/templates/_internal/template_blank.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionMappingTemplate, HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionMappingTemplate, HogFunctionTemplateDCblank_site_destination: HogFunctionTemplateDC = HogFunctionTemplateDC(status="stable",diff --git a/posthog/cdp/templates/activecampaign/template_activecampaign.py b/products/cdp/backend/templates/activecampaign/template_activecampaign.pysimilarity index 98%rename from posthog/cdp/templates/activecampaign/template_activecampaign.pyrename to products/cdp/backend/templates/activecampaign/template_activecampaign.pyindex b550669f88a4..10499c266fb6 100644--- a/posthog/cdp/templates/activecampaign/template_activecampaign.py+++ b/products/cdp/backend/templates/activecampaign/template_activecampaign.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="stable",diff --git a/posthog/cdp/templates/activecampaign/test_template_activecampaign.py b/products/cdp/backend/templates/activecampaign/test_template_activecampaign.pysimilarity index 92%rename from posthog/cdp/templates/activecampaign/test_template_activecampaign.pyrename to products/cdp/backend/templates/activecampaign/test_template_activecampaign.pyindex b2df3df0787d..7cb0d0c3ea08 100644--- a/posthog/cdp/templates/activecampaign/test_template_activecampaign.py+++ b/products/cdp/backend/templates/activecampaign/test_template_activecampaign.py@@ -1,6 +1,7 @@-from posthog.cdp.templates.activecampaign.template_activecampaign import template as template_activecampaignfrom posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest+from products.cdp.backend.templates.activecampaign.template_activecampaign import template as template_activecampaign+def create_inputs(**kwargs):inputs = {diff --git a/posthog/cdp/templates/airtable/template_airtable.py b/products/cdp/backend/templates/airtable/template_airtable.pysimilarity index 96%rename from posthog/cdp/templates/airtable/template_airtable.pyrename to products/cdp/backend/templates/airtable/template_airtable.pyindex 21c5d749ac25..734e3518c313 100644--- a/posthog/cdp/templates/airtable/template_airtable.py+++ b/products/cdp/backend/templates/airtable/template_airtable.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="stable",diff --git a/posthog/cdp/templates/airtable/test_template_airtable.py b/products/cdp/backend/templates/airtable/test_template_airtable.pysimilarity index 95%rename from posthog/cdp/templates/airtable/test_template_airtable.pyrename to products/cdp/backend/templates/airtable/test_template_airtable.pyindex 5f3e17446ca1..c276709b2867 100644--- a/posthog/cdp/templates/airtable/test_template_airtable.py+++ b/products/cdp/backend/templates/airtable/test_template_airtable.py@@ -1,6 +1,7 @@-from posthog.cdp.templates.airtable.template_airtable import template as template_airtablefrom posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest+from products.cdp.backend.templates.airtable.template_airtable import template as template_airtable+class TestTemplateAirtable(BaseHogFunctionTemplateTest):template = template_airtablediff --git a/posthog/cdp/templates/attio/template_attio.py b/products/cdp/backend/templates/attio/template_attio.pysimilarity index 96%rename from posthog/cdp/templates/attio/template_attio.pyrename to products/cdp/backend/templates/attio/template_attio.pyindex 2a5362856d05..c4b7b8ab3cc8 100644--- a/posthog/cdp/templates/attio/template_attio.py+++ b/products/cdp/backend/templates/attio/template_attio.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="stable",diff --git a/posthog/cdp/templates/attio/test_template_attio.py b/products/cdp/backend/templates/attio/test_template_attio.pysimilarity index 96%rename from posthog/cdp/templates/attio/test_template_attio.pyrename to products/cdp/backend/templates/attio/test_template_attio.pyindex 66414be777b1..d9c82e6d667e 100644--- a/posthog/cdp/templates/attio/test_template_attio.py+++ b/products/cdp/backend/templates/attio/test_template_attio.py@@ -1,6 +1,7 @@-from posthog.cdp.templates.attio.template_attio import template as template_attiofrom posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest+from products.cdp.backend.templates.attio.template_attio import template as template_attio+def create_inputs(**kwargs):inputs = {diff --git a/posthog/cdp/templates/avo/template_avo.py b/products/cdp/backend/templates/avo/template_avo.pysimilarity index 98%rename from posthog/cdp/templates/avo/template_avo.pyrename to products/cdp/backend/templates/avo/template_avo.pyindex f50ba78eee53..02dded097819 100644--- a/posthog/cdp/templates/avo/template_avo.py+++ b/products/cdp/backend/templates/avo/template_avo.py@@ -3,7 +3,7 @@ from copy import deepcopyfrom posthog.hogql.escape_sql import escape_hogql_string-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigrator+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigratortemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="stable",diff --git a/posthog/cdp/templates/avo/test_template_avo.py b/products/cdp/backend/templates/avo/test_template_avo.pysimilarity index 99%rename from posthog/cdp/templates/avo/test_template_avo.pyrename to products/cdp/backend/templates/avo/test_template_avo.pyindex d3214069a891..85d01728e04e 100644--- a/posthog/cdp/templates/avo/test_template_avo.py+++ b/products/cdp/backend/templates/avo/test_template_avo.py@@ -1,12 +1,12 @@from posthog.test.base import BaseTest-from posthog.cdp.templates.avo.template_avo import (- TemplateAvoMigrator,- template as template_avo,-)from posthog.cdp.templates.helpers import BaseHogFunctionTemplateTestfrom products.cdp.backend.models.plugin import PluginConfig+from products.cdp.backend.templates.avo.template_avo import (+ TemplateAvoMigrator,+ template as template_avo,+)class TestTemplateAvo(BaseHogFunctionTemplateTest):diff --git a/posthog/cdp/templates/aws_kinesis/template_aws_kinesis.py b/products/cdp/backend/templates/aws_kinesis/template_aws_kinesis.pysimilarity index 96%rename from posthog/cdp/templates/aws_kinesis/template_aws_kinesis.pyrename to products/cdp/backend/templates/aws_kinesis/template_aws_kinesis.pyindex e0ba7df31ff6..b4ec95e0f215 100644--- a/posthog/cdp/templates/aws_kinesis/template_aws_kinesis.py+++ b/products/cdp/backend/templates/aws_kinesis/template_aws_kinesis.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="stable",diff --git a/posthog/cdp/templates/aws_kinesis/test_template_aws_kinesis.py b/products/cdp/backend/templates/aws_kinesis/test_template_aws_kinesis.pysimilarity index 94%rename from posthog/cdp/templates/aws_kinesis/test_template_aws_kinesis.pyrename to products/cdp/backend/templates/aws_kinesis/test_template_aws_kinesis.pyindex 50d0806f170e..6e068a2576d4 100644--- a/posthog/cdp/templates/aws_kinesis/test_template_aws_kinesis.py+++ b/products/cdp/backend/templates/aws_kinesis/test_template_aws_kinesis.py@@ -1,8 +1,9 @@import time_machine-from posthog.cdp.templates.aws_kinesis.template_aws_kinesis import template as template_aws_kinesisfrom posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest+from products.cdp.backend.templates.aws_kinesis.template_aws_kinesis import template as template_aws_kinesis+class TestTemplateAwsKinesis(BaseHogFunctionTemplateTest):template = template_aws_kinesisdiff --git a/posthog/cdp/templates/braze/template_braze.py b/products/cdp/backend/templates/braze/template_braze.pysimilarity index 97%rename from posthog/cdp/templates/braze/template_braze.pyrename to products/cdp/backend/templates/braze/template_braze.pyindex fe4a28138e77..1dd57a5f369e 100644--- a/posthog/cdp/templates/braze/template_braze.py+++ b/products/cdp/backend/templates/braze/template_braze.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="stable",diff --git a/posthog/cdp/templates/braze/test_template_braze.py b/products/cdp/backend/templates/braze/test_template_braze.pysimilarity index 94%rename from posthog/cdp/templates/braze/test_template_braze.pyrename to products/cdp/backend/templates/braze/test_template_braze.pyindex fd5e40e41fc2..82ce01e80175 100644--- a/posthog/cdp/templates/braze/test_template_braze.py+++ b/products/cdp/backend/templates/braze/test_template_braze.py@@ -1,8 +1,9 @@import time_machine-from posthog.cdp.templates.braze.template_braze import template as template_brazefrom posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest+from products.cdp.backend.templates.braze.template_braze import template as template_braze+class TestTemplateBraze(BaseHogFunctionTemplateTest):template = template_brazediff --git a/posthog/cdp/templates/brevo/template_brevo.py b/products/cdp/backend/templates/brevo/template_brevo.pysimilarity index 96%rename from posthog/cdp/templates/brevo/template_brevo.pyrename to products/cdp/backend/templates/brevo/template_brevo.pyindex 6fa7046adcc0..bc807f582e57 100644--- a/posthog/cdp/templates/brevo/template_brevo.py+++ b/products/cdp/backend/templates/brevo/template_brevo.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="stable",diff --git a/posthog/cdp/templates/brevo/test_template_brevo.py b/products/cdp/backend/templates/brevo/test_template_brevo.pysimilarity index 93%rename from posthog/cdp/templates/brevo/test_template_brevo.pyrename to products/cdp/backend/templates/brevo/test_template_brevo.pyindex e1312393878b..0f42cdf7efa6 100644--- a/posthog/cdp/templates/brevo/test_template_brevo.py+++ b/products/cdp/backend/templates/brevo/test_template_brevo.py@@ -1,6 +1,7 @@-from posthog.cdp.templates.brevo.template_brevo import template as template_brevofrom posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest+from products.cdp.backend.templates.brevo.template_brevo import template as template_brevo+def create_inputs(**kwargs):inputs = {diff --git a/posthog/cdp/templates/clearbit/template_clearbit.py b/products/cdp/backend/templates/clearbit/template_clearbit.pysimilarity index 95%rename from posthog/cdp/templates/clearbit/template_clearbit.pyrename to products/cdp/backend/templates/clearbit/template_clearbit.pyindex d4143edcc617..835fa4c137f5 100644--- a/posthog/cdp/templates/clearbit/template_clearbit.py+++ b/products/cdp/backend/templates/clearbit/template_clearbit.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC# See https://dashboard.clearbit.com/docs#enrichment-api-combined-apidiff --git a/posthog/cdp/templates/clearbit/test_template_clearbit.py b/products/cdp/backend/templates/clearbit/test_template_clearbit.pysimilarity index 97%rename from posthog/cdp/templates/clearbit/test_template_clearbit.pyrename to products/cdp/backend/templates/clearbit/test_template_clearbit.pyindex 608d7f2342ff..0a58d8eaeccc 100644--- a/posthog/cdp/templates/clearbit/test_template_clearbit.py+++ b/products/cdp/backend/templates/clearbit/test_template_clearbit.py@@ -1,6 +1,7 @@-from posthog.cdp.templates.clearbit.template_clearbit import template as template_clearbitfrom posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest+from products.cdp.backend.templates.clearbit.template_clearbit import template as template_clearbit+EXAMPLE_RESPONSE = {"person": {"id": "1234",diff --git a/posthog/cdp/templates/customerio/template_customerio.py b/products/cdp/backend/templates/customerio/template_customerio.pysimilarity index 98%rename from posthog/cdp/templates/customerio/template_customerio.pyrename to products/cdp/backend/templates/customerio/template_customerio.pyindex 04a150a456d5..1fa35208ce46 100644--- a/posthog/cdp/templates/customerio/template_customerio.py+++ b/products/cdp/backend/templates/customerio/template_customerio.py@@ -1,7 +1,7 @@import dataclassesfrom copy import deepcopy-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigrator+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigrator# Based off of https://customer.io/docs/api/track/#operation/entitydiff --git a/posthog/cdp/templates/customerio/test_template_customerio.py b/products/cdp/backend/templates/customerio/test_template_customerio.pysimilarity index 99%rename from posthog/cdp/templates/customerio/test_template_customerio.pyrename to products/cdp/backend/templates/customerio/test_template_customerio.pyindex 20ac4524b06d..47fec696c60a 100644--- a/posthog/cdp/templates/customerio/test_template_customerio.py+++ b/products/cdp/backend/templates/customerio/test_template_customerio.py@@ -1,13 +1,13 @@import pytestfrom posthog.test.base import BaseTest-from posthog.cdp.templates.customerio.template_customerio import (- TemplateCustomerioMigrator,- template as template_customerio,-)from posthog.cdp.templates.helpers import BaseHogFunctionTemplateTestfrom products.cdp.backend.models.plugin import PluginConfig+from products.cdp.backend.templates.customerio.template_customerio import (+ TemplateCustomerioMigrator,+ template as template_customerio,+)from common.hogvm.python.utils import UncaughtHogVMExceptiondiff --git a/posthog/cdp/templates/discord/template_discord.py b/products/cdp/backend/templates/discord/template_discord.pysimilarity index 97%rename from posthog/cdp/templates/discord/template_discord.pyrename to products/cdp/backend/templates/discord/template_discord.pyindex 6efb8e962326..8765d1e40711 100644--- a/posthog/cdp/templates/discord/template_discord.py+++ b/products/cdp/backend/templates/discord/template_discord.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCCOMMON_INPUTS_SCHEMA = [{diff --git a/posthog/cdp/templates/discord/test_template_discord.py b/products/cdp/backend/templates/discord/test_template_discord.pysimilarity index 95%rename from posthog/cdp/templates/discord/test_template_discord.pyrename to products/cdp/backend/templates/discord/test_template_discord.pyindex 7b62c4d0a76d..5a2eabae6bda 100644--- a/posthog/cdp/templates/discord/test_template_discord.py+++ b/products/cdp/backend/templates/discord/test_template_discord.py@@ -2,9 +2,10 @@ import pytestfrom parameterized import parameterized-from posthog.cdp.templates.discord.template_discord import template as template_discordfrom posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest+from products.cdp.backend.templates.discord.template_discord import template as template_discord+class TestTemplateDiscord(BaseHogFunctionTemplateTest):template = template_discorddiff --git a/posthog/cdp/templates/engage/template_engage.py b/products/cdp/backend/templates/engage/template_engage.pysimilarity index 96%rename from posthog/cdp/templates/engage/template_engage.pyrename to products/cdp/backend/templates/engage/template_engage.pyindex d3987121e0b9..bde202995043 100644--- a/posthog/cdp/templates/engage/template_engage.py+++ b/products/cdp/backend/templates/engage/template_engage.py@@ -1,7 +1,7 @@import dataclassesfrom copy import deepcopy-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigrator+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigratortemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="stable",diff --git a/posthog/cdp/templates/engage/test_template_engage.py b/products/cdp/backend/templates/engage/test_template_engage.pysimilarity index 90%rename from posthog/cdp/templates/engage/test_template_engage.pyrename to products/cdp/backend/templates/engage/test_template_engage.pyindex bc801b0e3649..d7d04c9f4dd9 100644--- a/posthog/cdp/templates/engage/test_template_engage.py+++ b/products/cdp/backend/templates/engage/test_template_engage.py@@ -1,6 +1,7 @@-from posthog.cdp.templates.engage.template_engage import template as template_engagefrom posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest+from products.cdp.backend.templates.engage.template_engage import template as template_engage+class TestTemplateEngageso(BaseHogFunctionTemplateTest):template = template_engagediff --git a/posthog/cdp/templates/gleap/template_gleap.py b/products/cdp/backend/templates/gleap/template_gleap.pysimilarity index 97%rename from posthog/cdp/templates/gleap/template_gleap.pyrename to products/cdp/backend/templates/gleap/template_gleap.pyindex 7cd36b960311..3a0bdfbb9090 100644--- a/posthog/cdp/templates/gleap/template_gleap.py+++ b/products/cdp/backend/templates/gleap/template_gleap.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="stable",diff --git a/posthog/cdp/templates/gleap/test_template_gleap.py b/products/cdp/backend/templates/gleap/test_template_gleap.pysimilarity index 96%rename from posthog/cdp/templates/gleap/test_template_gleap.pyrename to products/cdp/backend/templates/gleap/test_template_gleap.pyindex 06f1534a5fca..e1c923d43d60 100644--- a/posthog/cdp/templates/gleap/test_template_gleap.py+++ b/products/cdp/backend/templates/gleap/test_template_gleap.py@@ -1,6 +1,7 @@-from posthog.cdp.templates.gleap.template_gleap import template as template_gleapfrom posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest+from products.cdp.backend.templates.gleap.template_gleap import template as template_gleap+def create_inputs(**kwargs):inputs = {diff --git a/posthog/cdp/templates/google_cloud_storage/template_google_cloud_storage.py b/products/cdp/backend/templates/google_cloud_storage/template_google_cloud_storage.pysimilarity index 97%rename from posthog/cdp/templates/google_cloud_storage/template_google_cloud_storage.pyrename to products/cdp/backend/templates/google_cloud_storage/template_google_cloud_storage.pyindex 6f168f79b870..69334e9d01ff 100644--- a/posthog/cdp/templates/google_cloud_storage/template_google_cloud_storage.py+++ b/products/cdp/backend/templates/google_cloud_storage/template_google_cloud_storage.py@@ -4,9 +4,10 @@ from copy import deepcopyfrom posthog.hogql.escape_sql import escape_hogql_string-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigratorfrom posthog.models.integration import GoogleCloudIntegration+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigrator+template: HogFunctionTemplateDC = HogFunctionTemplateDC(status="stable",free=False,diff --git a/posthog/cdp/templates/google_cloud_storage/test_template_google_cloud_storage.py b/products/cdp/backend/templates/google_cloud_storage/test_template_google_cloud_storage.pysimilarity index 97%rename from posthog/cdp/templates/google_cloud_storage/test_template_google_cloud_storage.pyrename to products/cdp/backend/templates/google_cloud_storage/test_template_google_cloud_storage.pyindex 9bf1de7d0252..7e561dd97209 100644--- a/posthog/cdp/templates/google_cloud_storage/test_template_google_cloud_storage.py+++ b/products/cdp/backend/templates/google_cloud_storage/test_template_google_cloud_storage.py@@ -3,10 +3,12 @@ from datetime import datetimefrom posthog.test.base import BaseTestfrom unittest.mock import patch-from posthog.cdp.templates.google_cloud_storage.template_google_cloud_storage import TemplateGoogleCloudStorageMigratorfrom posthog.models import Integrationfrom products.cdp.backend.models.plugin import Plugin, PluginAttachment, PluginConfig+from products.cdp.backend.templates.google_cloud_storage.template_google_cloud_storage import (+ TemplateGoogleCloudStorageMigrator,+)class TestTemplateMigration(BaseTest):diff --git a/posthog/cdp/templates/google_pubsub/template_google_pubsub.py b/products/cdp/backend/templates/google_pubsub/template_google_pubsub.pysimilarity index 97%rename from posthog/cdp/templates/google_pubsub/template_google_pubsub.pyrename to products/cdp/backend/templates/google_pubsub/template_google_pubsub.pyindex d1cad798c53f..109e6ee2d66a 100644--- a/posthog/cdp/templates/google_pubsub/template_google_pubsub.py+++ b/products/cdp/backend/templates/google_pubsub/template_google_pubsub.py@@ -4,9 +4,10 @@ from copy import deepcopyfrom posthog.hogql.escape_sql import escape_hogql_string-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigratorfrom posthog.models.integration import GoogleCloudIntegration+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigrator+template: HogFunctionTemplateDC = HogFunctionTemplateDC(status="stable",free=False,diff --git a/posthog/cdp/templates/google_pubsub/test_template_google_pubsub.py b/products/cdp/backend/templates/google_pubsub/test_template_google_pubsub.pysimilarity index 97%rename from posthog/cdp/templates/google_pubsub/test_template_google_pubsub.pyrename to products/cdp/backend/templates/google_pubsub/test_template_google_pubsub.pyindex 7440153cd371..8fdfdededf56 100644--- a/posthog/cdp/templates/google_pubsub/test_template_google_pubsub.py+++ b/products/cdp/backend/templates/google_pubsub/test_template_google_pubsub.py@@ -3,10 +3,10 @@ from datetime import datetimefrom posthog.test.base import BaseTestfrom unittest.mock import patch-from posthog.cdp.templates.google_pubsub.template_google_pubsub import TemplateGooglePubSubMigratorfrom posthog.models import Integrationfrom products.cdp.backend.models.plugin import Plugin, PluginAttachment, PluginConfig+from products.cdp.backend.templates.google_pubsub.template_google_pubsub import TemplateGooglePubSubMigratorclass TestTemplateMigration(BaseTest):diff --git a/posthog/cdp/templates/hubspot/template_hubspot.py b/products/cdp/backend/templates/hubspot/template_hubspot.pysimilarity index 99%rename from posthog/cdp/templates/hubspot/template_hubspot.pyrename to products/cdp/backend/templates/hubspot/template_hubspot.pyindex 196234879f50..06087a8f1b49 100644--- a/posthog/cdp/templates/hubspot/template_hubspot.py+++ b/products/cdp/backend/templates/hubspot/template_hubspot.py@@ -1,7 +1,7 @@import dataclassesfrom copy import deepcopy-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigrator+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigratortemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="stable",diff --git a/posthog/cdp/templates/hubspot/test_template_hubspot.py b/products/cdp/backend/templates/hubspot/test_template_hubspot.pysimilarity index 99%rename from posthog/cdp/templates/hubspot/test_template_hubspot.pyrename to products/cdp/backend/templates/hubspot/test_template_hubspot.pyindex d184c12b3018..5bd919c2d2f8 100644--- a/posthog/cdp/templates/hubspot/test_template_hubspot.py+++ b/products/cdp/backend/templates/hubspot/test_template_hubspot.py@@ -2,14 +2,14 @@ import pytestfrom posthog.test.base import BaseTestfrom posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest-from posthog.cdp.templates.hubspot.template_hubspot import (++from products.cdp.backend.models.plugin import PluginConfig+from products.cdp.backend.templates.hubspot.template_hubspot import (TemplateHubspotMigrator,template as template_hubspot,template_event as template_hubspot_event,)-from products.cdp.backend.models.plugin import PluginConfig-from common.hogvm.python.utils import UncaughtHogVMExceptiondiff --git a/posthog/cdp/templates/intercom/template_intercom.py b/products/cdp/backend/templates/intercom/template_intercom.pysimilarity index 99%rename from posthog/cdp/templates/intercom/template_intercom.pyrename to products/cdp/backend/templates/intercom/template_intercom.pyindex 58d11558676b..c88d04dade19 100644--- a/posthog/cdp/templates/intercom/template_intercom.py+++ b/products/cdp/backend/templates/intercom/template_intercom.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="stable",diff --git a/posthog/cdp/templates/intercom/test_template_intercom.py b/products/cdp/backend/templates/intercom/test_template_intercom.pysimilarity index 99%rename from posthog/cdp/templates/intercom/test_template_intercom.pyrename to products/cdp/backend/templates/intercom/test_template_intercom.pyindex 30718a837386..3ebef53f0fc8 100644--- a/posthog/cdp/templates/intercom/test_template_intercom.py+++ b/products/cdp/backend/templates/intercom/test_template_intercom.py@@ -1,7 +1,8 @@import pytestfrom posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest-from posthog.cdp.templates.intercom.template_intercom import (++from products.cdp.backend.templates.intercom.template_intercom import (template as template_intercom,template_send_event as template_intercom_event,)diff --git a/posthog/cdp/templates/june/template_june.py b/products/cdp/backend/templates/june/template_june.pysimilarity index 98%rename from posthog/cdp/templates/june/template_june.pyrename to products/cdp/backend/templates/june/template_june.pyindex 169e3d84a03f..1474b313da63 100644--- a/posthog/cdp/templates/june/template_june.py+++ b/products/cdp/backend/templates/june/template_june.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="stable",diff --git a/posthog/cdp/templates/june/test_june_template.py b/products/cdp/backend/templates/june/test_june_template.pysimilarity index 99%rename from posthog/cdp/templates/june/test_june_template.pyrename to products/cdp/backend/templates/june/test_june_template.pyindex 1a0dc7c01048..240e0666478a 100644--- a/posthog/cdp/templates/june/test_june_template.py+++ b/products/cdp/backend/templates/june/test_june_template.py@@ -1,5 +1,6 @@from posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest-from posthog.cdp.templates.june.template_june import template as template_june++from products.cdp.backend.templates.june.template_june import template as template_junedef create_inputs(**kwargs):