: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 four flowlu lookup tables (#109103)
Tom Owersd499b8f26287
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 c3e7bdd6593e..51b520f64aee 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@@ -3272,24 +3272,24 @@ Note: Machine-readable OpenAPI at /swagger-api-v3.yaml enumerates 26 resources;## Flowlu — **thin**-Today (17): `accounts`, `agile_issues`, `agile_sprints`, `customer_payments`, `estimates`, `invoice_items`, `invoices`, `leads`, `pipeline_stages`, `pipelines`, `products`, `project_stages`, `projects`, `tasks`, `timelogs`, `timesheets`, `transactions`+Today (21): `accounts`, `agile_issues`, `agile_sprints`, `agile_stages`, `billing_organizations`, `customer_payments`, `estimates`, `invoice_items`, `invoices`, `lead_sources`, `leads`, `loss_reasons`, `pipeline_stages`, `pipelines`, `products`, `project_stages`, `projects`, `tasks`, `timelogs`, `timesheets`, `transactions`Diffed against: <https://www.flowlu.com/api/json/openapien.json>- [x] `/crm/pipeline_stage/list` — lookup resolving the stage ID on every lead; we sync pipelines but not their stages (high) — added as `pipeline_stages`- [x] `/fin/invoice_item/list` — invoice line items - revenue by product/service instead of invoice totals only (high) — added as `invoice_items`- [x] `/timetracker/timelogs/list` — individual time log entries behind the timesheet rollups already synced (high) — added as `timelogs`-- [x] `/st/stages/list` — lookup resolving project stage IDs on the projects table (high) — added as `project_stages` (Flowlu has three separate stage entities; `/agile/stages` and `/task/stages` remain open)-- [ ] `/crm/source/list` — lookup resolving lead source IDs - core attribution dimension (high)-- [ ] `/agile/stages/list` — lookup resolving the workflow stage on agile_issues (high)+- [x] `/st/stages/list` — lookup resolving project stage IDs on the projects table (high) — added as `project_stages` (Flowlu has three separate stage entities; `/task/stages` remains open)+- [x] `/crm/source/list` — lookup resolving lead source IDs - core attribution dimension (high) — added as `lead_sources`+- [x] `/agile/stages/list` — lookup resolving the workflow stage on agile_issues (high) — added as `agile_stages`- [ ] `/task/stages/list` — lookup resolving task workflow stage IDs (medium)- [ ] `/agile/issue_type/list` — lookup resolving issue type IDs on agile_issues (medium)- [ ] `/fin/estimate_item/list` — estimate line items, the quoted counterpart to invoice items (medium)- [ ] `/st/project_expense/list` — project expenses, needed for project profitability (medium)-- [ ] `/fin/organization/list` — lookup resolving the billing organization on invoices/transactions (medium)-- [ ] `/crm/loss_reason/list` — lookup resolving loss reason IDs on closed-lost leads (medium)+- [x] `/fin/organization/list` — lookup resolving the billing organization on invoices/transactions (medium) — added as `billing_organizations`+- [x] `/crm/loss_reason/list` — lookup resolving loss reason IDs on closed-lost leads (medium) — added as `loss_reasons`-Note: developers.flowlu.com is the API host, not docs (returns 404/api-key errors). The real spec is the ReDoc document at https://www.flowlu.com/api/json/openapien.json: 608 paths, 124 of them `/list` collections. PostHog exposes 17, so this is a small fraction - other untouched clusters include knowledgebase/\*, businessprocess/\*, telephony/calls, im/\* (chat threads and messages), products/pricelist_item and company/absences.+Note: developers.flowlu.com is the API host, not docs (returns 404/api-key errors). The real spec is the ReDoc document at https://www.flowlu.com/api/json/openapien.json: 608 paths, 124 of them `/list` collections. PostHog exposes 21, so this is a small fraction - other untouched clusters include knowledgebase/\*, businessprocess/\*, telephony/calls, im/\* (chat threads and messages), products/pricelist_item and company/absences.## FlyIo — gapsdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/flowlu/canonical_descriptions.py b/products/warehouse_sources/backend/temporal/data_imports/sources/flowlu/canonical_descriptions.pyindex 2ad465e45aa0..6c267218d8e2 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/flowlu/canonical_descriptions.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/flowlu/canonical_descriptions.py@@ -47,6 +47,35 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {"updated_by": "The ID of the user who last changed the stage.",},},+ "lead_sources": {+ "description": "A source an opportunity came from, resolving `source_id` on leads.",+ "docs_url": "https://www.flowlu.com/api/json/openapien.json",+ "columns": {+ "id": "The unique ID of the source.",+ "name": "The source's name.",+ "description": "The source's description.",+ "ordering": "The source's position in the list, sorted ascending.",+ "active": "Whether the source is still in use.",+ "created_date": "When the source was created.",+ "created_by": "The ID of the user who created the source.",+ "updated_date": "When the source was last changed.",+ "updated_by": "The ID of the user who last changed the source.",+ },+ },+ "loss_reasons": {+ "description": "A reason an opportunity was lost, resolving `closing_status_id` on closed-lost leads.",+ "docs_url": "https://www.flowlu.com/api/json/openapien.json",+ "columns": {+ "id": "The unique ID of the loss reason.",+ "name": "The loss reason's name.",+ "ordering": "The loss reason's position in the list, sorted ascending.",+ "active": "Whether the loss reason is still in use.",+ "created_date": "When the loss reason was created.",+ "created_by": "The ID of the user who created the loss reason.",+ "updated_date": "When the loss reason was last changed.",+ "updated_by": "The ID of the user who last changed the loss reason.",+ },+ },"tasks": {"description": "A task in Flowlu's task management module.","docs_url": "https://www.flowlu.com/api/json/openapien.json",@@ -130,6 +159,24 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {"id": "The unique ID of the transaction.",},},+ "billing_organizations": {+ "description": "One of the account's own billing entities, resolving `org_id` on invoices, estimates, and transactions.",+ "docs_url": "https://www.flowlu.com/api/json/openapien.json",+ "columns": {+ "id": "The unique ID of the organization.",+ "name": "The organization's display name.",+ "legal_name": "The organization's legal name.",+ "vat": "The organization's business tax ID.",+ "registration_number": "The organization's business registration number.",+ "tax1": "The first default tax rate, as a percentage.",+ "tax2": "The second default tax rate, as a percentage.",+ "invoice_prefix": "The prefix added to invoice numbers.",+ "estimate_prefix": "The prefix added to estimate numbers.",+ "invoice_due": "The default number of days until an invoice is due.",+ "default_organization": "Whether this is the account's default organization (1) or not (0).",+ "active": "Whether the organization is still in use (1) or inactive (0).",+ },+ },"agile_issues": {"description": "An issue (user story, task, or bug) on a Flowlu agile board.","docs_url": "https://www.flowlu.com/api/json/openapien.json",@@ -146,6 +193,21 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {"name": "The sprint's name.",},},+ "agile_stages": {+ "description": "A stage of an agile workflow, resolving `workflow_stage_id` on agile issues.",+ "docs_url": "https://www.flowlu.com/api/json/openapien.json",+ "columns": {+ "id": "The unique ID of the stage.",+ "name": "The stage's name.",+ "description": "The stage's description.",+ "workflow_id": "The ID of the workflow this stage belongs to.",+ "status": "The stage's status.",+ "ordering": "The stage's position in the workflow, sorted ascending.",+ "color": "The stage's colour as a hex code.",+ "created_date": "When the stage was created.",+ "updated_date": "When the stage was last changed.",+ },+ },"timesheets": {"description": "A time-tracking entry logged against tasks or projects in Flowlu.","docs_url": "https://www.flowlu.com/api/json/openapien.json",diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/flowlu/settings.py b/products/warehouse_sources/backend/temporal/data_imports/sources/flowlu/settings.pyindex 21f8f4bc62fe..af1bf540b323 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/flowlu/settings.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/flowlu/settings.py@@ -24,6 +24,9 @@ FLOWLU_ENDPOINTS: dict[str, FlowluEndpointConfig] = {"leads": FlowluEndpointConfig(name="leads", path="/crm/lead/list"),"pipelines": FlowluEndpointConfig(name="pipelines", path="/crm/pipeline/list"),"pipeline_stages": FlowluEndpointConfig(name="pipeline_stages", path="/crm/pipeline_stage/list"),+ "lead_sources": FlowluEndpointConfig(name="lead_sources", path="/crm/source/list"),+ # Resolves `closing_status_id` on closed-lost opportunities.+ "loss_reasons": FlowluEndpointConfig(name="loss_reasons", path="/crm/loss_reason/list"),"tasks": FlowluEndpointConfig(name="tasks", path="/task/tasks/list"),"projects": FlowluEndpointConfig(name="projects", path="/st/projects/list"),# Flowlu has three separate stage entities; this one is the project stage (`/st/`).@@ -33,8 +36,12 @@ FLOWLU_ENDPOINTS: dict[str, FlowluEndpointConfig] = {"estimates": FlowluEndpointConfig(name="estimates", path="/fin/estimate/list"),"customer_payments": FlowluEndpointConfig(name="customer_payments", path="/fin/customer_payment/list"),"transactions": FlowluEndpointConfig(name="transactions", path="/fin/transaction/list"),+ # The account's own billing entities, resolving `org_id` on invoices, estimates, and transactions.+ "billing_organizations": FlowluEndpointConfig(name="billing_organizations", path="/fin/organization/list"),"agile_issues": FlowluEndpointConfig(name="agile_issues", path="/agile/issues/list"),"agile_sprints": FlowluEndpointConfig(name="agile_sprints", path="/agile/sprints/list"),+ # The agile workflow stage, resolving `workflow_stage_id` on agile issues.+ "agile_stages": FlowluEndpointConfig(name="agile_stages", path="/agile/stages/list"),"timesheets": FlowluEndpointConfig(name="timesheets", path="/timetracker/timesheets/list"),"timelogs": FlowluEndpointConfig(name="timelogs", path="/timetracker/timelogs/list"),"products": FlowluEndpointConfig(name="products", path="/products/product/list"),