: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(data-warehouse): list bugsnag tables in public docs (#69985)
Tom Owers2868e8cdc2aa
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/bugsnag/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/bugsnag/source.pyindex 59eaaa2f393e..e4ccb22eac0b 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/bugsnag/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/bugsnag/source.py@@ -36,6 +36,8 @@ from products.warehouse_sources.backend.types import ExternalDataSourceType@SourceRegistry.registerclass BugsnagSource(ResumableSource[BugsnagSourceConfig, BugsnagResumeConfig]):+ lists_tables_without_credentials = True # static endpoint catalog — safe for public docs+@propertydef source_type(self) -> ExternalDataSourceType:return ExternalDataSourceType.BUGSNAGdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/bugsnag/tests/test_bugsnag_source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/bugsnag/tests/test_bugsnag_source.pyindex e5b020337981..7b57f1efcda3 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/bugsnag/tests/test_bugsnag_source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/bugsnag/tests/test_bugsnag_source.py@@ -92,6 +92,18 @@ class TestBugsnagSource:schemas = self.source.get_schemas(MagicMock(), team_id=self.team_id, names=["errors", "projects"])assert {s.name for s in schemas} == {"errors", "projects"}+ def test_publishes_table_catalog_for_public_docs(self) -> None:+ # `lists_tables_without_credentials` gates whether the static endpoint catalog reaches the+ # posthog.com "Supported tables" section. Dropping the flag (or making get_schemas require+ # credentials) would silently empty that section, so assert the catalog flows through with+ # canonical descriptions attached.+ tables = self.source.get_documented_tables()+ names = {t["name"] for t in tables}+ assert set(ENDPOINTS).issubset(names)+ errors = next(t for t in tables if t["name"] == "errors")+ assert "Full refresh" in errors["sync_methods"]+ assert errors["description"]+@mock.patch("products.warehouse_sources.backend.temporal.data_imports.sources.bugsnag.source.validate_bugsnag_credentials")