: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 Float rate cards and currencies tables (#90071)
Tom Owers42b4653572fa
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 c5e1d7e5e940..fd7f03c8c100 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@@ -3130,19 +3130,19 @@ Note: The Flexmail public API is contact-management only - it exposes no campaig## FloatApp — gaps-Today (18): `accounts`, `clients`, `deleted_logged_time`, `deleted_tasks`, `deleted_timeoffs`, `departments`, `holidays`, `logged_time`, `milestones`, `people`, `phases`, `project_tasks`, `projects`, `roles`, `status`, `tasks`, `timeoff_types`, `timeoffs`+Today (20): `accounts`, `clients`, `currencies`, `deleted_logged_time`, `deleted_tasks`, `deleted_timeoffs`, `departments`, `holidays`, `logged_time`, `milestones`, `people`, `phases`, `project_tasks`, `projects`, `rate_cards`, `roles`, `status`, `tasks`, `timeoff_types`, `timeoffs`Diffed against: <https://developer.float.com/swagger-api-v3.yaml>- [ ] `/project-stages` — lookup table resolving the stage IDs carried on the projects we already sync (high)-- [ ] `/rate-cards` — lookup for the rate card IDs on people/projects; required to turn logged hours into billable value (high)+- [x] `/rate-cards` — lookup for the rate card IDs on people/projects; required to turn logged hours into billable value (high)- [ ] `/reports/people` — Float's headline utilization/capacity report per person, pre-aggregated (high)- [ ] `/reports/projects` — per-project scheduled vs logged vs billable breakdown (medium)- [ ] `/project-expenses` — non-labor project cost, needed for true project margin alongside logged_time (medium)- [ ] `/public-holidays` — region public holidays; distinct from the team /holidays table already synced, needed for correct capacity math (medium)-- [ ] `/currencies` — lookup for currency codes on rate cards and project budgets (low)+- [x] `/currencies` — lookup for currency codes on rate cards and project budgets (low)-Note: Machine-readable OpenAPI at /swagger-api-v3.yaml enumerates 26 resources; PostHog covers 18. /project-templates was excluded as config.+Note: Machine-readable OpenAPI at /swagger-api-v3.yaml enumerates 26 resources; PostHog covers 20. /project-templates was excluded as config.## Flowlu — **thin**diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/float_app/canonical_descriptions.py b/products/warehouse_sources/backend/temporal/data_imports/sources/float_app/canonical_descriptions.pyindex 14d4c4f86020..c70f6f30a6e6 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/float_app/canonical_descriptions.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/float_app/canonical_descriptions.py@@ -200,6 +200,27 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {"end_date": "The holiday's end date.",},},+ "rate_cards": {+ "description": "A rate card defining bill rates by role, applied to projects to turn scheduled hours into billable value.",+ "docs_url": _DOCS_URL,+ "columns": {+ "rate_card_id": "Unique identifier for the rate card.",+ "name": "The rate card's name.",+ "currency_code": "ISO 4217 currency the card's rates are expressed in; defaults to the company currency.",+ "roles": "The per-role bill rates, each pairing a role_id with its bill_rate.",+ "client_ids": "The ids of the clients this rate card applies to.",+ },+ },+ "currencies": {+ "description": "A currency the workspace bills in, with its exchange rate against the company's base currency.",+ "docs_url": _DOCS_URL,+ "columns": {+ "currency_id": "Unique identifier for the currency entry.",+ "source_currency": "The company's base currency (ISO 4217); set automatically.",+ "target_currency": "The billing currency (ISO 4217, e.g. CAD); fixed after creation.",+ "fx_rate": "The exchange rate from the source currency to the target currency.",+ },+ },"deleted_tasks": {"description": "Tombstone log of deleted allocations (tasks), for reconciling deletions since a cursor.","docs_url": _DOCS_URL,diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/float_app/float_app.posthog.com.md b/products/warehouse_sources/backend/temporal/data_imports/sources/float_app/float_app.posthog.com.mdindex f8b40026d242..249d2fa9e57b 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/float_app/float_app.posthog.com.md+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/float_app/float_app.posthog.com.md@@ -16,8 +16,9 @@ import AlphaRelease from "../\_snippets/alpha-release.mdx"[Float](https://www.float.com/) is a resource-management and team-scheduling platform for capacityplanning. This source syncs your people, accounts, clients, departments, projects, phases,-allocations, milestones, logged time, time off, and holidays into the PostHog data warehouse so you-can join scheduling and capacity data with your product and revenue data.+allocations, milestones, logged time, time off, holidays, rate cards, and currencies into the+PostHog data warehouse so you can join scheduling and capacity data with your product and revenue+data.## Prerequisitesdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/float_app/settings.py b/products/warehouse_sources/backend/temporal/data_imports/sources/float_app/settings.pyindex 43cc3dacfae9..8cb4146bff18 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/float_app/settings.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/float_app/settings.py@@ -57,6 +57,8 @@ FLOAT_ENDPOINTS: dict[str, FloatEndpointConfig] = {"status": FloatEndpointConfig(name="status", path="/status", primary_keys=["status_id"]),"roles": FloatEndpointConfig(name="roles", path="/roles", primary_keys=["id"]),"holidays": FloatEndpointConfig(name="holidays", path="/holidays", primary_keys=["holiday_id"]),+ "rate_cards": FloatEndpointConfig(name="rate_cards", path="/rate-cards", primary_keys=["rate_card_id"]),+ "currencies": FloatEndpointConfig(name="currencies", path="/currencies", primary_keys=["currency_id"]),# Delete Log endpoints — cursor pagination, append-only tombstones. Niche, so off by default."deleted_tasks": FloatEndpointConfig(name="deleted_tasks",