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(data-warehouse): add four missing hellobaton tables (#111299)

Tom Owers83c490cb3231
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 9222a4d85b7f..67648bab750a 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
@@ -3972,7 +3972,7 @@ Note: Helicone's API is POST-query shaped rather than REST-collection shaped, so
## Hellobaton — gaps
-Today (15): `activity`, `companies`, `custom_field_values`, `custom_fields`, `milestones`, `phases`, `project_attachments`, `project_phases`, `project_users`, `projects`, `task_attachments`, `tasks`, `templates`, `time_entries`, `users`
+Today (19): `activity`, `comments`, `companies`, `custom_field_options`, `custom_field_values`, `custom_fields`, `departments`, `milestones`, `phases`, `project_attachments`, `project_phases`, `project_users`, `projects`, `task_attachments`, `task_deliverables`, `tasks`, `templates`, `time_entries`, `users`
Diffed against: <https://app.hellobaton.com/api/swagger.json>
@@ -3980,10 +3980,10 @@ Diffed against: <https://app.hellobaton.com/api/swagger.json>
- [x] `custom_field_values` — the actual custom field data on projects (the endpoint returns project values only); without it custom fields are invisible (high)
- [x] `custom_fields` — lookup table naming and typing the custom field ids carried by custom_field_values (high)
- [x] `project_phases` — per-project phase instances with dates — the state/transition history behind project progress (high)
-- [ ] `comments` — collaboration events on projects and tasks, the main activity signal alongside activity (high)
-- [ ] `custom_field_options` — lookup resolving picklist option ids stored in custom_field_values (medium)
-- [ ] `departments` — lookup table resolving the department ids on users and projects (medium)
-- [ ] `task_deliverables` — deliverable line items hanging off the tasks we already sync (medium)
+- [x] `comments` — collaboration events on projects and tasks, the main activity signal alongside activity (high)
+- [x] `custom_field_options` — lookup resolving picklist option ids stored in custom_field_values (medium)
+- [x] `departments` — lookup table resolving the department ids on users and projects (medium)
+- [x] `task_deliverables` — deliverable line items hanging off the tasks we already sync (medium)
- [ ] `milestone_feedback` — customer feedback tied to the milestones we already sync (medium)
- [ ] `external_tasks` — tasks mirrored from integrated systems, needed for a complete task picture (medium)
- [ ] `time_entry_aggregates` — pre-rolled time totals for utilization reporting without re-aggregating time_entries (low)
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/hellobaton/canonical_descriptions.py b/products/warehouse_sources/backend/temporal/data_imports/sources/hellobaton/canonical_descriptions.py
index 2617a274ee3f..84609bb8e012 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/hellobaton/canonical_descriptions.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/hellobaton/canonical_descriptions.py
@@ -26,6 +26,21 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {
"modified": "Timestamp when the activity event was last modified.",
},
},
+ "comments": {
+ "description": "Comments left by users on projects and tasks.",
+ "docs_url": _DOCS_URL,
+ "columns": {
+ "id": "Unique identifier for the comment.",
+ "author": "User who wrote the comment.",
+ "task": "Task the comment was left on, if any.",
+ "project": "Project the comment belongs to.",
+ "content": "Plain-text body of the comment.",
+ "content_html": "HTML body of the comment.",
+ "is_internal": "Whether the comment is visible to internal team members only.",
+ "created": "Timestamp when the comment was created.",
+ "modified": "Timestamp when the comment was last modified.",
+ },
+ },
"companies": {
"description": "Companies (customer accounts) tracked in Baton.",
"docs_url": _DOCS_URL,
@@ -58,6 +73,20 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {
"modified": "Timestamp when the custom field was last modified.",
},
},
+ "custom_field_options": {
+ "description": "Selectable options of picklist custom fields. Join `field` to custom_fields for the field it belongs to.",
+ "docs_url": _DOCS_URL,
+ "columns": {
+ "id": "Unique identifier for the custom field option.",
+ "field": "Custom field the option belongs to.",
+ "value": "Display value of the option.",
+ "default": "Whether the option is selected by default.",
+ "archived": "Whether the option is archived.",
+ "created_by": "User who created the option.",
+ "created": "Timestamp when the option was created.",
+ "modified": "Timestamp when the option was last modified.",
+ },
+ },
"custom_field_values": {
"description": "Custom field values set on projects. Join `field` to custom_fields for the field name and type.",
"docs_url": _DOCS_URL,
@@ -73,6 +102,17 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {
"modified": "Timestamp when the value was last modified.",
},
},
+ "departments": {
+ "description": "Departments that users can be assigned to.",
+ "docs_url": _DOCS_URL,
+ "columns": {
+ "id": "Unique identifier for the department.",
+ "title": "Department name.",
+ "created_by": "User who created the department.",
+ "created": "Timestamp when the department was created.",
+ "modified": "Timestamp when the department was last modified.",
+ },
+ },
"milestones": {
"description": "Milestones within a project — grouped deliverables with a target completion date.",
"docs_url": _DOCS_URL,
@@ -219,6 +259,16 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {
"modified": "Timestamp when the attachment was last modified.",
},
},
+ "task_deliverables": {
+ "description": "Deliverables attached to tasks.",
+ "docs_url": _DOCS_URL,
+ "columns": {
+ "id": "Unique identifier for the task deliverable.",
+ "task": "Task the deliverable belongs to.",
+ "created_by": "User who created the deliverable.",
+ "type": "Kind of deliverable.",
+ },
+ },
"templates": {
"description": "Project templates used to spin up new implementation projects.",
"docs_url": _DOCS_URL,
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/hellobaton/settings.py b/products/warehouse_sources/backend/temporal/data_imports/sources/hellobaton/settings.py
index 779f44ed6bc1..5dd02bdc8207 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/hellobaton/settings.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/hellobaton/settings.py
@@ -21,9 +21,12 @@ class HellobatonEndpointConfig:
# tap and Airbyte connector both ship full-refresh only, so every endpoint is full refresh here.
HELLOBATON_ENDPOINTS: dict[str, HellobatonEndpointConfig] = {
"activity": HellobatonEndpointConfig(name="activity", path="/activity/"),
+ "comments": HellobatonEndpointConfig(name="comments", path="/comments/"),
"companies": HellobatonEndpointConfig(name="companies", path="/companies/"),
"custom_fields": HellobatonEndpointConfig(name="custom_fields", path="/custom_fields/"),
+ "custom_field_options": HellobatonEndpointConfig(name="custom_field_options", path="/custom_field_options/"),
"custom_field_values": HellobatonEndpointConfig(name="custom_field_values", path="/custom_field_values/"),
+ "departments": HellobatonEndpointConfig(name="departments", path="/departments/"),
"milestones": HellobatonEndpointConfig(name="milestones", path="/milestones/"),
"phases": HellobatonEndpointConfig(name="phases", path="/phases/"),
"projects": HellobatonEndpointConfig(name="projects", path="/projects/"),
@@ -33,6 +36,10 @@ HELLOBATON_ENDPOINTS: dict[str, HellobatonEndpointConfig] = {
"project_users": HellobatonEndpointConfig(name="project_users", path="/project_users/"),
"tasks": HellobatonEndpointConfig(name="tasks", path="/tasks/"),
"task_attachments": HellobatonEndpointConfig(name="task_attachments", path="/task_attachments/"),
+ # Task deliverables carry no timestamp at all.
+ "task_deliverables": HellobatonEndpointConfig(
+ name="task_deliverables", path="/task_deliverables/", partition_key=None
+ ),
# Templates carry no non-null created/modified timestamp, so there's no stable partition key.
"templates": HellobatonEndpointConfig(name="templates", path="/templates/", partition_key=None),
# Time entries have no `created` field; `reference_date` is the stable non-null date they cover.
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/hellobaton/tests/test_hellobaton.py b/products/warehouse_sources/backend/temporal/data_imports/sources/hellobaton/tests/test_hellobaton.py
index a7912698690b..7bc000c8b86d 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/hellobaton/tests/test_hellobaton.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/hellobaton/tests/test_hellobaton.py
@@ -195,6 +195,7 @@ class TestPartitioning:
# No stable non-null creation timestamp, so partitioning would rewrite partitions.
("project_phases", None),
("templates", None),
+ ("task_deliverables", None),
],
)
def test_partitions_only_on_a_stable_field(self, endpoint: str, expected_keys: list[str] | None) -> None: