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.

feat(managed-warehouse): add internal testing lifecycle state (#122297)

Eric Duonge6531c4a2581
diff --git a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr
index 8d1514c94318..bbb2c8f91411 100644
--- a/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr
+++ b/posthog/api/test/dashboards/__snapshots__/test_dashboard.ambr
@@ -13369,6 +13369,8 @@
SELECT "posthog_managedwarehousesourcelifecycle"."organization_id",
"posthog_managedwarehousesourcelifecycle"."generation",
"posthog_managedwarehousesourcelifecycle"."desired_active",
+ "posthog_managedwarehousesourcelifecycle"."internal_only",
+ "posthog_managedwarehousesourcelifecycle"."background_loading_enabled",
"posthog_managedwarehousesourcelifecycle"."legacy_conversion_generation"
FROM "posthog_managedwarehousesourcelifecycle"
WHERE "posthog_managedwarehousesourcelifecycle"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
diff --git a/products/managed_warehouse/backend/migrations/0009_internal_warehouse_testing.py b/products/managed_warehouse/backend/migrations/0009_internal_warehouse_testing.py
new file mode 100644
index 000000000000..aaf863bc5cc9
--- /dev/null
+++ b/products/managed_warehouse/backend/migrations/0009_internal_warehouse_testing.py
@@ -0,0 +1,22 @@
+# Generated by Django 5.2.18 on 2026-10-22 18:31
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("managed_warehouse", "0008_duckgresserver_trino_password"),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name="managedwarehousesourcelifecycle",
+ name="background_loading_enabled",
+ field=models.BooleanField(default=False, db_default=False),
+ ),
+ migrations.AddField(
+ model_name="managedwarehousesourcelifecycle",
+ name="internal_only",
+ field=models.BooleanField(default=False, db_default=False),
+ ),
+ ]
diff --git a/products/managed_warehouse/backend/migrations/max_migration.txt b/products/managed_warehouse/backend/migrations/max_migration.txt
index 3b677cfcdfb8..74cd8dd89e98 100644
--- a/products/managed_warehouse/backend/migrations/max_migration.txt
+++ b/products/managed_warehouse/backend/migrations/max_migration.txt
@@ -1 +1 @@
-0008_duckgresserver_trino_password
+0009_internal_warehouse_testing
diff --git a/products/managed_warehouse/backend/models.py b/products/managed_warehouse/backend/models.py
index 13d96c510368..d57219ada893 100644
--- a/products/managed_warehouse/backend/models.py
+++ b/products/managed_warehouse/backend/models.py
@@ -88,6 +88,8 @@ class ManagedWarehouseSourceLifecycle(models.Model):
)
generation = models.PositiveBigIntegerField(default=0)
desired_active = models.BooleanField(default=True)
+ internal_only = models.BooleanField(default=False, db_default=False)
+ background_loading_enabled = models.BooleanField(default=False, db_default=False)
legacy_conversion_generation = models.PositiveBigIntegerField(null=True, blank=True)
class Meta: