: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(data-warehouse): correct the repartition wording in django admin (#116361)
Daniel RC25d601d4411c
diff --git a/posthog/templates/admin/data_warehouse/externaldataschema/change_form.html b/posthog/templates/admin/data_warehouse/externaldataschema/change_form.htmlindex 6ea45a6072c3..661e058c38b8 100644--- a/posthog/templates/admin/data_warehouse/externaldataschema/change_form.html+++ b/posthog/templates/admin/data_warehouse/externaldataschema/change_form.html@@ -171,13 +171,19 @@</table></div><div class="form-row partitioning-section">- <h3>Repartition & resync</h3>+ <h3>Repartition</h3><p class="help"><strong>Pause the schedule first</strong> (buttons below) to avoid racing thescheduled sync. This stages the partition settings and kicks off a non-billable- workflow with <code>reset_pipeline=true</code> — repartitioning without a reset- would mix old and new layouts in the same Delta table and corrupt it. The schedule- auto-pauses for the run and unpauses on success.+ run. For an incremental or append-only table the run rewrites the files already in+ storage into the new layout, then syncs as usual: no reset, and no rows re-pulled+ from the source. On a large table the rewrite takes hours. The schedule auto-pauses+ for the run and unpauses on success.+ </p>+ <p class="help">+ <strong>No in-place rewrite</strong> happens for a full refresh table, or for a+ table with a reset already pending. That run deletes the table and loads it again+ from the source, as it would anyway, and writes it in the new layout.</p><p class="help">Pick the partition <strong>mode</strong> (defaults to the current one). Keep the@@ -280,8 +286,8 @@<button type="submit"form="repartition-action-form"class="default"- data-confirm="Repartition + reset resync (non-billable) for this schema?">- Repartition & resync+ data-confirm="Repartition this table (non-billable)? An incremental or append-only table is rewritten in place. A full refresh table, or one with a reset pending, is reloaded from the source.">+ Repartition</button></div><script nonce="{{ request.csp_nonce }}">@@ -388,7 +394,7 @@<h3>Trigger ad-hoc sync</h3><p class="help">Use this for non-repartition cases (e.g. retrying a failed sync). Repartition- already triggers its own non-billable reset resync — don't double up.+ already triggers its own non-billable run — don't double up.<strong>Pause the schedule first</strong> if you have any chance of overlapwith the regular run.</p>diff --git a/products/warehouse_sources/backend/admin/external_data_schema_admin.py b/products/warehouse_sources/backend/admin/external_data_schema_admin.pyindex fe8262df2a6c..12690cbbbee2 100644--- a/products/warehouse_sources/backend/admin/external_data_schema_admin.py+++ b/products/warehouse_sources/backend/admin/external_data_schema_admin.py@@ -139,12 +139,11 @@ class ExternalDataSchemaAdmin(admin.ModelAdmin):return custom_urls + urlsdef repartition_view(self, request, schema_id):- # Stage partition settings and trigger a non-billable reset resync. Covers both+ # Stage partition settings and trigger a non-billable in-place repartition. Covers both# repartitioning in place (keep the mode, change its knob — count/size/format) and# switching the mode entirely (e.g. md5 → datetime on a date column). The chosen- # mode/keys/knob are written as *_override keys that survive the bundled reset and are- # consumed once applied. Repartition without the reset would mix old and new layouts in- # the same Delta table and corrupt it, so the reset is always bundled in.+ # mode/keys/knob become a `repartition_pending` target, which the run's pre-extraction+ # activity applies by rewriting the stored files. No reset, no source re-pull.if request.method != "POST":return redirect(_change_url(schema_id))