: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): support inflowinventory API version 2026-10-06 (#126928)
Tom Owers65c026cd8446
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/inflowinventory/inflowinventory.py b/products/warehouse_sources/backend/temporal/data_imports/sources/inflowinventory/inflowinventory.pyindex 12869950a2a1..20ba3c465c33 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/inflowinventory/inflowinventory.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/inflowinventory/inflowinventory.py@@ -24,6 +24,7 @@ INFLOWINVENTORY_BASE_URL = "https://cloudapi.inflowinventory.com"INFLOWINVENTORY_API_VERSION_2023_04_01 = "2023-04-01"INFLOWINVENTORY_API_VERSION_2026_07_10 = "2026-07-10"INFLOWINVENTORY_API_VERSION_2026_09_29 = "2026-09-29"+INFLOWINVENTORY_API_VERSION_2026_10_06 = "2026-10-06"# The list endpoints accept up to 100 records per page; the largest page minimises round trips.PAGE_SIZE = 100# inFlow company IDs are GUIDs. Restrict to host/path-safe characters so the credential staysdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/inflowinventory/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/inflowinventory/source.pyindex 6fc3833301b9..6d9b82c9c044 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/inflowinventory/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/inflowinventory/source.py@@ -23,6 +23,7 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.inflowinveINFLOWINVENTORY_API_VERSION_2023_04_01,INFLOWINVENTORY_API_VERSION_2026_07_10,INFLOWINVENTORY_API_VERSION_2026_09_29,+ INFLOWINVENTORY_API_VERSION_2026_10_06,InflowInventoryResumeConfig,inflowinventory_source,validate_credentials,@@ -44,8 +45,9 @@ class InflowinventorySource(ResumableSource[InflowinventorySourceConfig, InflowIINFLOWINVENTORY_API_VERSION_2023_04_01,INFLOWINVENTORY_API_VERSION_2026_07_10,INFLOWINVENTORY_API_VERSION_2026_09_29,+ INFLOWINVENTORY_API_VERSION_2026_10_06,)- default_version = INFLOWINVENTORY_API_VERSION_2026_09_29+ default_version = INFLOWINVENTORY_API_VERSION_2026_10_06api_docs_url = "https://cloudapi.inflowinventory.com/docs"lists_tables_without_credentials = True # static endpoint catalog — safe for public docsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/inflowinventory/tests/test_inflowinventory.py b/products/warehouse_sources/backend/temporal/data_imports/sources/inflowinventory/tests/test_inflowinventory.pyindex 19b263a4d990..e82a408a89cf 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/inflowinventory/tests/test_inflowinventory.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/inflowinventory/tests/test_inflowinventory.py@@ -15,6 +15,7 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.inflowinveINFLOWINVENTORY_API_VERSION_2023_04_01,INFLOWINVENTORY_API_VERSION_2026_07_10,INFLOWINVENTORY_API_VERSION_2026_09_29,+ INFLOWINVENTORY_API_VERSION_2026_10_06,PAGE_SIZE,InflowInventoryResumeConfig,check_access,@@ -83,7 +84,8 @@ class TestPagination:[("legacy", INFLOWINVENTORY_API_VERSION_2023_04_01),("previous", INFLOWINVENTORY_API_VERSION_2026_07_10),- ("current", INFLOWINVENTORY_API_VERSION_2026_09_29),+ ("previous_current", INFLOWINVENTORY_API_VERSION_2026_09_29),+ ("current", INFLOWINVENTORY_API_VERSION_2026_10_06),])def test_resolved_version_reaches_session_header(self, _name: str, api_version: str) -> None:@@ -132,7 +134,8 @@ class TestCheckAccess:[("legacy", INFLOWINVENTORY_API_VERSION_2023_04_01),("previous", INFLOWINVENTORY_API_VERSION_2026_07_10),- ("current", INFLOWINVENTORY_API_VERSION_2026_09_29),+ ("previous_current", INFLOWINVENTORY_API_VERSION_2026_09_29),+ ("current", INFLOWINVENTORY_API_VERSION_2026_10_06),])def test_probe_session_carries_resolved_version(self, _name: str, api_version: str) -> None:diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/inflowinventory/tests/test_inflowinventory_source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/inflowinventory/tests/test_inflowinventory_source.pyindex e92fc90fb2d5..9adeb4a56d8d 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/inflowinventory/tests/test_inflowinventory_source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/inflowinventory/tests/test_inflowinventory_source.py@@ -24,15 +24,16 @@ class TestInflowinventorySource:def test_version_declaration(self) -> None:# New sources default to the current stable version; the legacy pin stays supported so# existing sources keep syncing under their own version.- assert self.source.default_version == "2026-09-29"- assert set(self.source.supported_versions) == {"2023-04-01", "2026-07-10", "2026-09-29"}+ assert self.source.default_version == "2026-10-06"+ assert set(self.source.supported_versions) == {"2023-04-01", "2026-07-10", "2026-09-29", "2026-10-06"}@parameterized.expand([("pinned_legacy", "2023-04-01", "2023-04-01"),("pinned_previous", "2026-07-10", "2026-07-10"),- ("pinned_current", "2026-09-29", "2026-09-29"),- ("unpinned_resolves_to_default", None, "2026-09-29"),+ ("pinned_previous_current", "2026-09-29", "2026-09-29"),+ ("pinned_current", "2026-10-06", "2026-10-06"),+ ("unpinned_resolves_to_default", None, "2026-10-06"),])@mock.patch(