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.

feat(warehouse): add productive pipelines, line items, task lists, service types (#126780)

Tom Owers65872baee0ee
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.md
index cebf4c57e9dc..96e7ec00eb9d 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
@@ -9769,11 +9769,11 @@ Today (12): `bookings`, `companies`, `contact_entries`, `deals`, `expenses`, `in
Diffed against: <https://developer.productive.io/reference/download_spec?format=json>
- [ ] `Deal statuses (GET /api/v2/deal_statuses)` — resolve deal stage identifiers and compare pipeline outcomes (high)
-- [ ] `Pipelines (GET /api/v2/pipelines)` — resolve pipeline identifiers in deals and group sales results by pipeline (high)
+- [x] `Pipelines (GET /api/v2/pipelines)` — resolve pipeline identifiers in deals and group sales results by pipeline (high)
- [ ] `Workflow statuses (GET /api/v2/workflow_statuses)` — resolve task status identifiers into lifecycle categories and names (high)
-- [ ] `Service types (GET /api/v2/service_types)` — resolve service categories for revenue and work analysis (high)
-- [ ] `Task lists (GET /api/v2/task_lists)` — resolve task list identifiers and group work within projects (high)
-- [ ] `Line items (GET /api/v2/line_items)` — analyze invoice quantities, prices, taxes, and links to services or expenses (high)
+- [x] `Service types (GET /api/v2/service_types)` — resolve service categories for revenue and work analysis (high)
+- [x] `Task lists (GET /api/v2/task_lists)` — resolve task list identifiers and group work within projects (high)
+- [x] `Line items (GET /api/v2/line_items)` — analyze invoice quantities, prices, taxes, and links to services or expenses (high)
- [ ] `Salaries (GET /api/v2/salaries)` — analyze labor cost rates and working capacity by person (medium)
- [ ] `Revenue distributions (GET /api/v2/revenue_distributions)` — track deal revenue allocation across reporting periods (medium)
- [ ] `Purchase orders (GET /api/v2/purchase_orders)` — compare committed purchases with expenses and project budgets (medium)
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/productive/canonical_descriptions.py b/products/warehouse_sources/backend/temporal/data_imports/sources/productive/canonical_descriptions.py
index 725cf8f537c3..effc6de7e5c5 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/productive/canonical_descriptions.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/productive/canonical_descriptions.py
@@ -27,6 +27,10 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {
"description": "Client billing documents and their payment and delivery status.",
"docs_url": "https://developer.productive.io/reference/resources/invoices",
},
+ "line_items": {
+ "description": "Invoice lines with quantities, unit prices, discounts, taxes, and links to the billed service or expense.",
+ "docs_url": "https://developer.productive.io/reference/resources/line-items",
+ },
"payments": {
"description": "Amounts received against invoices.",
"docs_url": "https://developer.productive.io/reference/resources/payments",
@@ -35,14 +39,26 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {
"description": "Employees, contractors, contacts, and placeholders in the organization.",
"docs_url": "https://developer.productive.io/reference/resources/people",
},
+ "pipelines": {
+ "description": "Sales and production pipelines that group deals and budgets into stages.",
+ "docs_url": "https://developer.productive.io/reference/resources/pipelines",
+ },
"projects": {
"description": "Workspaces organizing client and internal work, including tasks and budgets.",
"docs_url": "https://developer.productive.io/reference/resources/projects",
},
+ "service_types": {
+ "description": "Categories of work assigned to services, such as design or development.",
+ "docs_url": "https://developer.productive.io/reference/resources/service-types",
+ },
"services": {
"description": "Deal and budget line items defining billing rates and rules for tracking work.",
"docs_url": "https://developer.productive.io/reference/resources/services",
},
+ "task_lists": {
+ "description": "Task groupings inside a project's folders.",
+ "docs_url": "https://developer.productive.io/reference/resources/task-lists",
+ },
"tasks": {
"description": "Assigned project work items with workflow status and links to services for time tracking.",
"docs_url": "https://developer.productive.io/reference/resources/tasks",
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/productive/settings.py b/products/warehouse_sources/backend/temporal/data_imports/sources/productive/settings.py
index 16f9756045dd..d4876b52186b 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/productive/settings.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/productive/settings.py
@@ -21,10 +21,14 @@ ENDPOINTS: dict[str, ProductiveEndpoint] = {
"deals": ProductiveEndpoint(path="deals"),
"expenses": ProductiveEndpoint(path="expenses"),
"invoices": ProductiveEndpoint(path="invoices"),
+ "line_items": ProductiveEndpoint(path="line_items", partition_key="id", partition_mode="md5"),
"payments": ProductiveEndpoint(path="payments", partition_key="id", partition_mode="md5"),
"people": ProductiveEndpoint(path="people"),
+ "pipelines": ProductiveEndpoint(path="pipelines"),
"projects": ProductiveEndpoint(path="projects"),
+ "service_types": ProductiveEndpoint(path="service_types", partition_key="id", partition_mode="md5"),
"services": ProductiveEndpoint(path="services", partition_key="id", partition_mode="md5"),
+ "task_lists": ProductiveEndpoint(path="task_lists", partition_key="id", partition_mode="md5"),
"tasks": ProductiveEndpoint(path="tasks"),
"time_entries": ProductiveEndpoint(path="time_entries"),
}
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/productive/tests/test_productive.py b/products/warehouse_sources/backend/temporal/data_imports/sources/productive/tests/test_productive.py
index a0705b383a17..947289130205 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/productive/tests/test_productive.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/productive/tests/test_productive.py
@@ -27,10 +27,14 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.productive
"deals",
"expenses",
"invoices",
+ "line_items",
"payments",
"people",
+ "pipelines",
"projects",
+ "service_types",
"services",
+ "task_lists",
"tasks",
"time_entries",
],