: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore: add CDC schedule link to schema admin page (#64471)
Luke Beltond94bdf866d07
diff --git a/posthog/templates/admin/data_warehouse/externaldataschema/change_form.html b/posthog/templates/admin/data_warehouse/externaldataschema/change_form.htmlindex 78a677e30c16..57fdfd00f482 100644--- a/posthog/templates/admin/data_warehouse/externaldataschema/change_form.html+++ b/posthog/templates/admin/data_warehouse/externaldataschema/change_form.html@@ -255,6 +255,16 @@<a href="{{ temporal_ui_host }}/namespaces/{{ temporal_namespace }}/schedules/{{ original.id }}"target="_blank">View schedule in Temporal</a></div>+ {% if cdc_extraction_schedule_id %}+ <div class="form-row" style="padding: 10px;">+ <a href="{{ temporal_ui_host }}/namespaces/{{ temporal_namespace }}/schedules/{{ cdc_extraction_schedule_id }}"+ target="_blank">View CDC extraction schedule in Temporal</a>+ <p class="help">+ For CDC schemas, the per-schema schedule above is paused once streaming starts.+ This source-level schedule is what drives the actual change capture.+ </p>+ </div>+ {% endif %}</fieldset><fieldset class="module aligned">diff --git a/products/warehouse_sources/backend/admin/external_data_schema_admin.py b/products/warehouse_sources/backend/admin/external_data_schema_admin.pyindex 0fcbb6f6bbc3..a4ccba7a49e7 100644--- a/products/warehouse_sources/backend/admin/external_data_schema_admin.py+++ b/products/warehouse_sources/backend/admin/external_data_schema_admin.py@@ -393,6 +393,11 @@ class ExternalDataSchemaAdmin(admin.ModelAdmin):extra_context["unpause_schedule_url"] = reverse("admin:external_data_schema_unpause_schedule", args=[obj.id])++ # CDC schemas stream via a source-level extraction schedule; the per-schema schedule+ # above is paused once streaming starts, so surface the real one too.+ if obj.is_cdc:+ extra_context["cdc_extraction_schedule_id"] = f"cdc-extraction-{obj.source_id}"return super().change_view(request, object_id, form_url, extra_context=extra_context)@admin.display(description="Team")