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): update template shas after the blank destination went stable (#115900)

Thomas Obermüller205a87a706fe
diff --git a/posthog/cdp/templates/test_cdp_templates.py b/posthog/cdp/templates/test_cdp_templates.py
index b4d26517dcaa..661b58ca2f0e 100644
--- a/posthog/cdp/templates/test_cdp_templates.py
+++ b/posthog/cdp/templates/test_cdp_templates.py
@@ -41,15 +41,15 @@ class TestTemplatesGeneral(BaseTest):
template_id = template_data.id
template = sync_template_to_db(template_data)
assert HogFunctionTemplate.objects.filter(template_id=template_id).count() == 1
- assert template.sha == "5c60cf91"
+ assert template.sha == "545f510d"
template_data_dict = dataclasses.asdict(template_data)
template = sync_template_to_db(template_data_dict) # Test it as a dictionary
- assert template.sha == "5c60cf91"
+ assert template.sha == "545f510d"
assert HogFunctionTemplate.objects.filter(template_id=template_id).count() == 1
template_data_dict["code"] = "return 1"
template = sync_template_to_db(template_data_dict)
- assert template.sha == "a3ed949c"
+ assert template.sha == "f5ed2f87"
assert template.code == "return 1"
assert HogFunctionTemplate.objects.filter(template_id=template_id).count() == 1