Skip to content

: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.

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__.py
index 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_mode
from .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.txt
index 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::TestTokenEndpointStatusRemapp
posthog/api/test/test_toolbar_oauth_primitives.py::TestToolbarOAuthStateCache
posthog/api/test/test_user_integration.py::TestGithubUserFromCode
posthog/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::TestTemplateMigration
posthog/cdp/templates/posthog/test_template_posthog.py::TestTemplateMigration
posthog/cdp/templates/rudderstack/test_template_rudderstack.py::TestTemplateMigration
posthog/cdp/templates/salesforce/test_template_salesforce.py::TestTemplateMigration
diff --git a/posthog/cdp/templates/_internal/template_blank.py b/products/cdp/backend/templates/_internal/template_blank.py
similarity index 98%
rename from posthog/cdp/templates/_internal/template_blank.py
rename to products/cdp/backend/templates/_internal/template_blank.py
index 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, HogFunctionTemplateDC
blank_site_destination: HogFunctionTemplateDC = HogFunctionTemplateDC(
status="stable",
diff --git a/posthog/cdp/templates/activecampaign/template_activecampaign.py b/products/cdp/backend/templates/activecampaign/template_activecampaign.py
similarity index 98%
rename from posthog/cdp/templates/activecampaign/template_activecampaign.py
rename to products/cdp/backend/templates/activecampaign/template_activecampaign.py
index 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 HogFunctionTemplateDC
template: HogFunctionTemplateDC = HogFunctionTemplateDC(
status="stable",
diff --git a/posthog/cdp/templates/activecampaign/test_template_activecampaign.py b/products/cdp/backend/templates/activecampaign/test_template_activecampaign.py
similarity index 92%
rename from posthog/cdp/templates/activecampaign/test_template_activecampaign.py
rename to products/cdp/backend/templates/activecampaign/test_template_activecampaign.py
index 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_activecampaign
from 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.py
similarity index 96%
rename from posthog/cdp/templates/airtable/template_airtable.py
rename to products/cdp/backend/templates/airtable/template_airtable.py
index 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 HogFunctionTemplateDC
template: HogFunctionTemplateDC = HogFunctionTemplateDC(
status="stable",
diff --git a/posthog/cdp/templates/airtable/test_template_airtable.py b/products/cdp/backend/templates/airtable/test_template_airtable.py
similarity index 95%
rename from posthog/cdp/templates/airtable/test_template_airtable.py
rename to products/cdp/backend/templates/airtable/test_template_airtable.py
index 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_airtable
from posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest
+from products.cdp.backend.templates.airtable.template_airtable import template as template_airtable
+
class TestTemplateAirtable(BaseHogFunctionTemplateTest):
template = template_airtable
diff --git a/posthog/cdp/templates/attio/template_attio.py b/products/cdp/backend/templates/attio/template_attio.py
similarity index 96%
rename from posthog/cdp/templates/attio/template_attio.py
rename to products/cdp/backend/templates/attio/template_attio.py
index 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 HogFunctionTemplateDC
template: HogFunctionTemplateDC = HogFunctionTemplateDC(
status="stable",
diff --git a/posthog/cdp/templates/attio/test_template_attio.py b/products/cdp/backend/templates/attio/test_template_attio.py
similarity index 96%
rename from posthog/cdp/templates/attio/test_template_attio.py
rename to products/cdp/backend/templates/attio/test_template_attio.py
index 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_attio
from 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.py
similarity index 98%
rename from posthog/cdp/templates/avo/template_avo.py
rename to products/cdp/backend/templates/avo/template_avo.py
index 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 deepcopy
from 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, HogFunctionTemplateMigrator
template: HogFunctionTemplateDC = HogFunctionTemplateDC(
status="stable",
diff --git a/posthog/cdp/templates/avo/test_template_avo.py b/products/cdp/backend/templates/avo/test_template_avo.py
similarity index 99%
rename from posthog/cdp/templates/avo/test_template_avo.py
rename to products/cdp/backend/templates/avo/test_template_avo.py
index 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 BaseHogFunctionTemplateTest
from 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.py
similarity index 96%
rename from posthog/cdp/templates/aws_kinesis/template_aws_kinesis.py
rename to products/cdp/backend/templates/aws_kinesis/template_aws_kinesis.py
index 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 HogFunctionTemplateDC
template: 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.py
similarity index 94%
rename from posthog/cdp/templates/aws_kinesis/test_template_aws_kinesis.py
rename to products/cdp/backend/templates/aws_kinesis/test_template_aws_kinesis.py
index 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_kinesis
from 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_kinesis
diff --git a/posthog/cdp/templates/braze/template_braze.py b/products/cdp/backend/templates/braze/template_braze.py
similarity index 97%
rename from posthog/cdp/templates/braze/template_braze.py
rename to products/cdp/backend/templates/braze/template_braze.py
index 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 HogFunctionTemplateDC
template: HogFunctionTemplateDC = HogFunctionTemplateDC(
status="stable",
diff --git a/posthog/cdp/templates/braze/test_template_braze.py b/products/cdp/backend/templates/braze/test_template_braze.py
similarity index 94%
rename from posthog/cdp/templates/braze/test_template_braze.py
rename to products/cdp/backend/templates/braze/test_template_braze.py
index 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_braze
from posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest
+from products.cdp.backend.templates.braze.template_braze import template as template_braze
+
class TestTemplateBraze(BaseHogFunctionTemplateTest):
template = template_braze
diff --git a/posthog/cdp/templates/brevo/template_brevo.py b/products/cdp/backend/templates/brevo/template_brevo.py
similarity index 96%
rename from posthog/cdp/templates/brevo/template_brevo.py
rename to products/cdp/backend/templates/brevo/template_brevo.py
index 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 HogFunctionTemplateDC
template: HogFunctionTemplateDC = HogFunctionTemplateDC(
status="stable",
diff --git a/posthog/cdp/templates/brevo/test_template_brevo.py b/products/cdp/backend/templates/brevo/test_template_brevo.py
similarity index 93%
rename from posthog/cdp/templates/brevo/test_template_brevo.py
rename to products/cdp/backend/templates/brevo/test_template_brevo.py
index 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_brevo
from 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.py
similarity index 95%
rename from posthog/cdp/templates/clearbit/template_clearbit.py
rename to products/cdp/backend/templates/clearbit/template_clearbit.py
index 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-api
diff --git a/posthog/cdp/templates/clearbit/test_template_clearbit.py b/products/cdp/backend/templates/clearbit/test_template_clearbit.py
similarity index 97%
rename from posthog/cdp/templates/clearbit/test_template_clearbit.py
rename to products/cdp/backend/templates/clearbit/test_template_clearbit.py
index 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_clearbit
from 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.py
similarity index 98%
rename from posthog/cdp/templates/customerio/template_customerio.py
rename to products/cdp/backend/templates/customerio/template_customerio.py
index 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 dataclasses
from 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/entity
diff --git a/posthog/cdp/templates/customerio/test_template_customerio.py b/products/cdp/backend/templates/customerio/test_template_customerio.py
similarity index 99%
rename from posthog/cdp/templates/customerio/test_template_customerio.py
rename to products/cdp/backend/templates/customerio/test_template_customerio.py
index 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 pytest
from posthog.test.base import BaseTest
-from posthog.cdp.templates.customerio.template_customerio import (
- TemplateCustomerioMigrator,
- template as template_customerio,
-)
from posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest
from 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 UncaughtHogVMException
diff --git a/posthog/cdp/templates/discord/template_discord.py b/products/cdp/backend/templates/discord/template_discord.py
similarity index 97%
rename from posthog/cdp/templates/discord/template_discord.py
rename to products/cdp/backend/templates/discord/template_discord.py
index 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 HogFunctionTemplateDC
COMMON_INPUTS_SCHEMA = [
{
diff --git a/posthog/cdp/templates/discord/test_template_discord.py b/products/cdp/backend/templates/discord/test_template_discord.py
similarity index 95%
rename from posthog/cdp/templates/discord/test_template_discord.py
rename to products/cdp/backend/templates/discord/test_template_discord.py
index 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 pytest
from parameterized import parameterized
-from posthog.cdp.templates.discord.template_discord import template as template_discord
from posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest
+from products.cdp.backend.templates.discord.template_discord import template as template_discord
+
class TestTemplateDiscord(BaseHogFunctionTemplateTest):
template = template_discord
diff --git a/posthog/cdp/templates/engage/template_engage.py b/products/cdp/backend/templates/engage/template_engage.py
similarity index 96%
rename from posthog/cdp/templates/engage/template_engage.py
rename to products/cdp/backend/templates/engage/template_engage.py
index 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 dataclasses
from copy import deepcopy
-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigrator
+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigrator
template: HogFunctionTemplateDC = HogFunctionTemplateDC(
status="stable",
diff --git a/posthog/cdp/templates/engage/test_template_engage.py b/products/cdp/backend/templates/engage/test_template_engage.py
similarity index 90%
rename from posthog/cdp/templates/engage/test_template_engage.py
rename to products/cdp/backend/templates/engage/test_template_engage.py
index 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_engage
from posthog.cdp.templates.helpers import BaseHogFunctionTemplateTest
+from products.cdp.backend.templates.engage.template_engage import template as template_engage
+
class TestTemplateEngageso(BaseHogFunctionTemplateTest):
template = template_engage
diff --git a/posthog/cdp/templates/gleap/template_gleap.py b/products/cdp/backend/templates/gleap/template_gleap.py
similarity index 97%
rename from posthog/cdp/templates/gleap/template_gleap.py
rename to products/cdp/backend/templates/gleap/template_gleap.py
index 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 HogFunctionTemplateDC
template: HogFunctionTemplateDC = HogFunctionTemplateDC(
status="stable",
diff --git a/posthog/cdp/templates/gleap/test_template_gleap.py b/products/cdp/backend/templates/gleap/test_template_gleap.py
similarity index 96%
rename from posthog/cdp/templates/gleap/test_template_gleap.py
rename to products/cdp/backend/templates/gleap/test_template_gleap.py
index 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_gleap
from 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.py
similarity index 97%
rename from posthog/cdp/templates/google_cloud_storage/template_google_cloud_storage.py
rename to products/cdp/backend/templates/google_cloud_storage/template_google_cloud_storage.py
index 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 deepcopy
from posthog.hogql.escape_sql import escape_hogql_string
-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigrator
from 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.py
similarity index 97%
rename from posthog/cdp/templates/google_cloud_storage/test_template_google_cloud_storage.py
rename to products/cdp/backend/templates/google_cloud_storage/test_template_google_cloud_storage.py
index 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 datetime
from posthog.test.base import BaseTest
from unittest.mock import patch
-from posthog.cdp.templates.google_cloud_storage.template_google_cloud_storage import TemplateGoogleCloudStorageMigrator
from posthog.models import Integration
from 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.py
similarity index 97%
rename from posthog/cdp/templates/google_pubsub/template_google_pubsub.py
rename to products/cdp/backend/templates/google_pubsub/template_google_pubsub.py
index 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 deepcopy
from posthog.hogql.escape_sql import escape_hogql_string
-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigrator
from 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.py
similarity index 97%
rename from posthog/cdp/templates/google_pubsub/test_template_google_pubsub.py
rename to products/cdp/backend/templates/google_pubsub/test_template_google_pubsub.py
index 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 datetime
from posthog.test.base import BaseTest
from unittest.mock import patch
-from posthog.cdp.templates.google_pubsub.template_google_pubsub import TemplateGooglePubSubMigrator
from posthog.models import Integration
from products.cdp.backend.models.plugin import Plugin, PluginAttachment, PluginConfig
+from products.cdp.backend.templates.google_pubsub.template_google_pubsub import TemplateGooglePubSubMigrator
class TestTemplateMigration(BaseTest):
diff --git a/posthog/cdp/templates/hubspot/template_hubspot.py b/products/cdp/backend/templates/hubspot/template_hubspot.py
similarity index 99%
rename from posthog/cdp/templates/hubspot/template_hubspot.py
rename to products/cdp/backend/templates/hubspot/template_hubspot.py
index 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 dataclasses
from copy import deepcopy
-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigrator
+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC, HogFunctionTemplateMigrator
template: HogFunctionTemplateDC = HogFunctionTemplateDC(
status="stable",
diff --git a/posthog/cdp/templates/hubspot/test_template_hubspot.py b/products/cdp/backend/templates/hubspot/test_template_hubspot.py
similarity index 99%
rename from posthog/cdp/templates/hubspot/test_template_hubspot.py
rename to products/cdp/backend/templates/hubspot/test_template_hubspot.py
index 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 pytest
from posthog.test.base import BaseTest
from 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 UncaughtHogVMException
diff --git a/posthog/cdp/templates/intercom/template_intercom.py b/products/cdp/backend/templates/intercom/template_intercom.py
similarity index 99%
rename from posthog/cdp/templates/intercom/template_intercom.py
rename to products/cdp/backend/templates/intercom/template_intercom.py
index 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 HogFunctionTemplateDC
template: HogFunctionTemplateDC = HogFunctionTemplateDC(
status="stable",
diff --git a/posthog/cdp/templates/intercom/test_template_intercom.py b/products/cdp/backend/templates/intercom/test_template_intercom.py
similarity index 99%
rename from posthog/cdp/templates/intercom/test_template_intercom.py
rename to products/cdp/backend/templates/intercom/test_template_intercom.py
index 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 pytest
from 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.py
similarity index 98%
rename from posthog/cdp/templates/june/template_june.py
rename to products/cdp/backend/templates/june/template_june.py
index 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 HogFunctionTemplateDC
template: HogFunctionTemplateDC = HogFunctionTemplateDC(
status="stable",
diff --git a/posthog/cdp/templates/june/test_june_template.py b/products/cdp/backend/templates/june/test_june_template.py
similarity index 99%
rename from posthog/cdp/templates/june/test_june_template.py
rename to products/cdp/backend/templates/june/test_june_template.py
index 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_june
def create_inputs(**kwargs):