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.

fix(signals): register inbox_activity_summary_vectors in the signals location (#125406)

Sven Lange2faa3a2f7098
diff --git a/posthog/dags/locations/signals.py b/posthog/dags/locations/signals.py
index 1f4f4b13ed5d..f48c1cc3a5c7 100644
--- a/posthog/dags/locations/signals.py
+++ b/posthog/dags/locations/signals.py
@@ -26,6 +26,7 @@ if is_inbox_ranking_registered():
inbox_ranking_dataset.inbox_user_report_interactions,
inbox_ranking_dataset.inbox_project_vectors,
inbox_ranking_dataset.inbox_engagement_export,
+ inbox_ranking_dataset.inbox_activity_summary_vectors,
inbox_ranking_training.inbox_ranking_serving_manifest,
inbox_ranking_served.inbox_ranking_served_scores,
inbox_ranking_training.inbox_ranking_unseen_graded,
diff --git a/posthog/dags/tests/test_locations.py b/posthog/dags/tests/test_locations.py
new file mode 100644
index 000000000000..f793965e8a21
--- /dev/null
+++ b/posthog/dags/tests/test_locations.py
@@ -0,0 +1,23 @@
+import pkgutil
+import importlib
+
+import pytest
+
+import dagster
+
+import posthog.dags.locations
+
+LOCATION_MODULES = sorted(
+ module.name
+ for module in pkgutil.iter_modules(posthog.dags.locations.__path__)
+ if module.name != "shared" and not module.ispkg
+)
+
+
+# Importing a location builds its Definitions lazily, so a job that selects an asset the location never
+# registers only fails when the Dagster Cloud code server loads it. Resolve every job here instead.
[email protected]("name", LOCATION_MODULES)
+def test_location_definitions_resolve(name: str) -> None:
+ module = importlib.import_module(f"posthog.dags.locations.{name}")
+
+ dagster.Definitions.validate_loadable(module.defs)