: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(warehouse_sources): document zendesk sell terminal api version (#86339)
Tom Owers39d48f803a35
diff --git a/.agents/skills/warehouse-source-new-version/SKILL.md b/.agents/skills/warehouse-source-new-version/SKILL.mdindex 45af7814ffce..6802b8d05b46 100644--- a/.agents/skills/warehouse-source-new-version/SKILL.md+++ b/.agents/skills/warehouse-source-new-version/SKILL.md@@ -61,7 +61,7 @@ Add it when any of these hold:## Deprecating a version-1. Implement the newer version first (steps above) if not already supported.+1. Implement the newer version first (steps above) if not already supported. When the version being sunset is the vendor's **terminal** version (the whole product is discontinued and there is no successor to add), per-version deprecation cannot apply — the framework never deprecates a source's sole/default version, and there is no version to repin to. Don't fabricate a successor or relax the invariant to force the metadata: leave `supported_versions`/`default_version` unchanged, document the vendor sunset and the customer off-ramp (move off the source entirely before shutdown) in the PR, and surface whether a source-level whole-product deprecation surface is warranted for a human to decide.2. Add the old version to `deprecated_versions` with the vendor's announced sunset date (or `sunset_at=None` if none). Never deprecate `default_version` — flip the default to the new version in the same PR.3. The in-product warning banner and API fields light up automatically from the metadata — zero per-source UI work.4. **Deprecated is not migrated.** Existing pins move only when the vendor has announced the version will stop being served (a sunset/removal date). A deprecation without a sunset date is advisory: mark it, leave every existing pin on it fully supported, and write no migration — repinning working customers off a version the vendor still serves is exactly the silent version move the pinning framework exists to prevent. Two narrow cases still repin under an advisory (`sunset_at=None`) deprecation: the deprecated label resolves to a byte-identical request as the new default (a pure alias — no per-version dispatch — so the repin is not a move), or the vendor already errors on the old version (e.g. `410`/`406`) so leaving pins is worse than moving them. A source that sends a per-version header/URL for a version the vendor still serves is neither — stay advisory.diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/zendesk_sell/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/zendesk_sell/source.pyindex 260b7b760604..77dd251ae178 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/zendesk_sell/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/zendesk_sell/source.py@@ -40,6 +40,10 @@ from products.warehouse_sources.backend.types import ExternalDataSourceType@SourceRegistry.registerclass ZendeskSellSource(ResumableSource[ZendeskSellSourceConfig, ZendeskSellResumeConfig]):+ # v2 is the terminal Core API version this source syncs (Zendesk versions its separate Search+ # API independently). The vendor ships no Core API successor, so there is no version to repin+ # to, and the per-version deprecation framework does not apply here because it never+ # deprecates a source's sole/default version.supported_versions = ("v2",)default_version = "v2"api_docs_url = "https://developer.zendesk.com/api-reference/sales-crm/"