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(batch-exports): move management commands into product folder (#61739)

Rosse7193be676a7
diff --git a/posthog/management/commands/backfill_batch_export_runs.py b/products/batch_exports/backend/management/commands/backfill_batch_export_runs.py
similarity index 100%
rename from posthog/management/commands/backfill_batch_export_runs.py
rename to products/batch_exports/backend/management/commands/backfill_batch_export_runs.py
diff --git a/posthog/management/commands/update_batch_export_schedules.py b/products/batch_exports/backend/management/commands/update_batch_export_schedules.py
similarity index 100%
rename from posthog/management/commands/update_batch_export_schedules.py
rename to products/batch_exports/backend/management/commands/update_batch_export_schedules.py
diff --git a/posthog/management/commands/test/test_backfill_batch_export_runs.py b/products/batch_exports/backend/tests/management/test_backfill_batch_export_runs.py
similarity index 99%
rename from posthog/management/commands/test/test_backfill_batch_export_runs.py
rename to products/batch_exports/backend/tests/management/test_backfill_batch_export_runs.py
index c42ce9a12264..6454f9ae176d 100644
--- a/posthog/management/commands/test/test_backfill_batch_export_runs.py
+++ b/products/batch_exports/backend/tests/management/test_backfill_batch_export_runs.py
@@ -14,12 +14,15 @@ from django.utils import timezone
from asgiref.sync import async_to_sync
from temporalio.service import RPCError
-from posthog.management.commands.backfill_batch_export_runs import find_missing_intervals, get_batch_exports
from posthog.models import Organization, Team
from posthog.temporal.common.client import sync_connect
from posthog.temporal.common.test_utils import start_test_worker
from posthog.temporal.tests.utils.models import create_batch_export
+from products.batch_exports.backend.management.commands.backfill_batch_export_runs import (
+ find_missing_intervals,
+ get_batch_exports,
+)
from products.batch_exports.backend.models.batch_export import BatchExport, BatchExportDestination, BatchExportRun
from products.batch_exports.backend.temporal import ACTIVITIES, WORKFLOWS
from products.batch_exports.backend.tests.temporal.backfills.conftest import wait_for_workflows
diff --git a/posthog/management/commands/test/test_update_batch_export_schedules.py b/products/batch_exports/backend/tests/management/test_update_batch_export_schedules.py
similarity index 100%
rename from posthog/management/commands/test/test_update_batch_export_schedules.py
rename to products/batch_exports/backend/tests/management/test_update_batch_export_schedules.py