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.

fix(data-warehouse): stop sending unsupported limit param to featurebase tags (#110652)

Tom Owersb273418bd7b3
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/settings.py b/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/settings.py
index be3053f8f251..826f8ce93215 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/settings.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/settings.py
@@ -63,9 +63,10 @@ class FeaturebaseEndpointConfig:
full_refresh_params: dict[str, str] = field(default_factory=dict)
# Extra query params merged into every request (e.g. privacy=all).
extra_params: dict[str, str] = field(default_factory=dict)
- # Whether the endpoint paginates with limit/cursor. Boards, post statuses, ticket
- # statuses and ticket categories return everything in one response (a bare JSON array,
- # no `data` envelope).
+ # Whether the endpoint accepts a `limit` query param. Boards, post statuses, ticket
+ # statuses and ticket categories return everything in one response as a bare JSON
+ # array (no `data` envelope); conversation tags return an enveloped response but,
+ # like those, document no query params at all.
paginated: bool = True
partition_key: Optional[str] = None # Stable creation-time field, never updatedAt
primary_keys: list[str] = field(default_factory=lambda: ["id"])
@@ -205,6 +206,9 @@ FEATUREBASE_ENDPOINTS: dict[str, FeaturebaseEndpointConfig] = {
"conversation_tags": FeaturebaseEndpointConfig(
name="conversation_tags",
path="/tags",
+ # Documented with no query parameters at all (not even limit/cursor) — it's the
+ # workspace's whole tag catalog in one enveloped response. Sending `limit` 400s.
+ paginated=False,
),
"surveys": FeaturebaseEndpointConfig(
name="surveys",
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/tests/test_featurebase.py b/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/tests/test_featurebase.py
index 269236683da1..f025bfc59d25 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/tests/test_featurebase.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/tests/test_featurebase.py
@@ -124,6 +124,13 @@ class TestBuildInitialParams:
None,
{},
),
+ (
+ "conversation_tags_has_no_pagination_params",
+ "conversation_tags",
+ False,
+ None,
+ {},
+ ),
(
"tickets_incremental_updated_sweeps_recent_desc",
"tickets",