: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
feat(warehouse_sources): add Zonka Feedback survey_links table (#90848)
Tom Owerse7e80f8e5b01
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md b/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.mdindex ecdac995f3df..4bcdcc79ee5d 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/COVERAGE_GAPS_APPENDIX.md@@ -9500,10 +9500,11 @@ Note: api.getzep.com/api/v2/openapi.json returns 401, so I diffed against the do## ZonkaFeedback — gaps-Today (3): `contacts`, `responses`, `surveys`+Today (4): `contacts`, `responses`, `survey_links`, `surveys`Diffed against: <https://apidocs.zonkafeedback.com/api/collections/2077940/TVCY7Cby>+- [x] `survey-links` — shareable per-survey link objects from the Survey Links API (GET /survey-links); each carries the URL and tracking code used to attribute a collected response (high)- [ ] `workspaces` — lookup resolving the workspace ID carried on surveys and responses; required to segment reporting by workspace (high)- [ ] `locations` — lookup resolving the location ID on responses - the standard breakdown dimension for multi-site CX programs (high)- [ ] `distribution-logs` — survey send log; pairing it with responses gives delivery, open and response rates instead of responses alone (high)diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/zonka_feedback/canonical_descriptions.py b/products/warehouse_sources/backend/temporal/data_imports/sources/zonka_feedback/canonical_descriptions.pyindex 81a57b5227be..71a24973ca66 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/zonka_feedback/canonical_descriptions.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/zonka_feedback/canonical_descriptions.py@@ -47,4 +47,16 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {"modifiedOn": "The timestamp the contact was last modified, in ISO 8601 UTC.",},},+ "survey_links": {+ "description": "A shareable survey link generated through the Zonka Feedback Survey Links API — a unique URL used to distribute a survey through your own channels and track the response it collects.",+ "docs_url": "https://apidocs.zonkafeedback.com/",+ "columns": {+ "id": "The unique ID of the survey link.",+ "surveyId": "The ID of the survey this link opens.",+ "url": "The unique, shareable URL that opens the survey.",+ "trackingCode": "The short tracking code embedded in the link URL, used to attribute the collected response.",+ "status": "The current state of the link (e.g. active, expired, consumed).",+ "createdOn": "The timestamp the link was created, in ISO 8601 UTC.",+ },+ },}diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/zonka_feedback/settings.py b/products/warehouse_sources/backend/temporal/data_imports/sources/zonka_feedback/settings.pyindex d1f0954ac6ac..67901c0351d3 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/zonka_feedback/settings.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/zonka_feedback/settings.py@@ -18,6 +18,9 @@ ZONKA_FEEDBACK_ENDPOINTS: dict[str, ZonkaFeedbackEndpointConfig] = {"responses": ZonkaFeedbackEndpointConfig(name="responses", path="/responses"),"surveys": ZonkaFeedbackEndpointConfig(name="surveys", path="/surveys"),"contacts": ZonkaFeedbackEndpointConfig(name="contacts", path="/contacts"),+ # Snake_case schema name, hyphenated vendor path — the shareable link objects returned by the+ # Survey Links API. Zonka object IDs live in the `id` field, so the default primary key applies.+ "survey_links": ZonkaFeedbackEndpointConfig(name="survey_links", path="/survey-links"),}ENDPOINTS = tuple(ZONKA_FEEDBACK_ENDPOINTS.keys())diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/zonka_feedback/tests/test_zonka_feedback.py b/products/warehouse_sources/backend/temporal/data_imports/sources/zonka_feedback/tests/test_zonka_feedback.pyindex f8724573668f..43c66410a8bf 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/zonka_feedback/tests/test_zonka_feedback.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/zonka_feedback/tests/test_zonka_feedback.py@@ -240,7 +240,7 @@ class TestCheckAccess:class TestZonkaFeedbackSourceResponse:- @parameterized.expand([("responses",), ("surveys",), ("contacts",)])+ @parameterized.expand([("responses",), ("surveys",), ("contacts",), ("survey_links",)])def test_source_response_shape(self, endpoint: str) -> None:response = _source(_make_manager(), endpoint=endpoint)assert response.name == endpoint