: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 Ashby referrals and sequences tables (#89075)
Tom Owersd53484546fcf
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 7dd946532c56..0166638e920d 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@@ -506,10 +506,12 @@ Note: Diffed against Asana's official OpenAPI spec (3 MB, ~120 GET paths). Also## Ashby — gaps-Today (16): `applications`, `archive_reasons`, `candidate_tags`, `candidates`, `custom_fields`, `departments`, `interview_schedules`, `interviews`, `job_postings`, `jobs`, `locations`, `offers`, `openings`, `projects`, `sources`, `users`+Today (18): `applications`, `archive_reasons`, `candidate_tags`, `candidates`, `custom_fields`, `departments`, `interview_schedules`, `interviews`, `job_postings`, `jobs`, `locations`, `offers`, `openings`, `projects`, `referrals`, `sequences`, `sources`, `users`Diffed against: <https://developers.ashbyhq.com/reference/introduction>+- [x] `referral.list` — candidate referrals tying a referrer to an application/job, a sourcing-attribution table (medium)+- [x] `sequence.list` — candidate enrollments in outreach sequences, with per-stage scheduling (medium)- [ ] `applicationFeedback.list` — interview scorecards and ratings, the core quality signal for hiring analytics (high)- [ ] `application.listHistory` — stage-transition history; without it you cannot compute time-in-stage or funnel conversion (high)- [ ] `interviewStage.list` — lookup resolving the currentInterviewStage ID carried on every synced application (high)@@ -525,6 +527,8 @@ Diffed against: <https://developers.ashbyhq.com/reference/introduction>Note: Ashby's readme.io OpenAPI JSON is not publicly downloadable (404), so the resource list was read from the full reference navigation on the introduction page, filtering on \*.list endpoints. Other list endpoints deliberately excluded as config: communicationTemplate, emailSender, sequenceTemplate, jobBoard, jobTemplate, brand, apiKey, webhook.+Excluded as not table-shaped: `notetakerTranscript.info` is a single-object getter keyed by a `notetakerTranscriptId` (not enumerable, and it returns a transient pre-signed download URL); `candidate.getRecentEmailMessages` is a per-candidate fetch with no durable row id (`recordId` is documented as non-durable) and a silent 200-message snapshot cap, so it does not map to a stable, complete table.+## Asknicely — gapsToday (1): `responses`diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/ashby/canonical_descriptions.py b/products/warehouse_sources/backend/temporal/data_imports/sources/ashby/canonical_descriptions.pyindex 791e03513e8c..25e22c171038 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/ashby/canonical_descriptions.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/ashby/canonical_descriptions.py@@ -190,4 +190,32 @@ CANONICAL_DESCRIPTIONS: CanonicalDescriptions = {authorId="ID of the user who created the project.",),},+ "referrals": {+ "description": "A referral of a candidate for a job in Ashby.",+ "docs_url": "https://developers.ashbyhq.com/reference/referrallist",+ "columns": _columns(+ candidateId="ID of the referred candidate.",+ applicationId="ID of the application created from the referral.",+ jobId="ID of the job the candidate was referred for.",+ referralType="How the referral was made (e.g. Direct).",+ referrer="The user who submitted the referral.",+ sourceFormDefinitionId="ID of the referral form definition used.",+ formDefinition="The referral form's sections and fields.",+ submittedValues="The values submitted on the referral form.",+ ),+ },+ "sequences": {+ "description": "A candidate's enrollment in an outreach sequence in Ashby.",+ # sequence.list objects carry no updatedAt, so this entry omits the shared column.+ "docs_url": "https://developers.ashbyhq.com/reference/sequencelist",+ "columns": {+ "id": _COMMON_COLUMNS["id"],+ "createdAt": _COMMON_COLUMNS["createdAt"],+ "candidateId": "ID of the candidate enrolled in the sequence.",+ "applicationId": "ID of the application the enrollment is associated with.",+ "sequenceTemplateId": "ID of the sequence template this enrollment is based on.",+ "status": "Status of the enrollment (Running, Paused, Completed, Cancelled, Unsubscribed).",+ "stages": "The sequence's stages and their scheduling details.",+ },+ },}diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/ashby/settings.py b/products/warehouse_sources/backend/temporal/data_imports/sources/ashby/settings.pyindex 229b02cce6b7..f882d18f4959 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/ashby/settings.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/ashby/settings.py@@ -47,6 +47,12 @@ ASHBY_ENDPOINTS: dict[str, AshbyEndpointConfig] = {"custom_fields": AshbyEndpointConfig(name="custom_fields", path="customField.list", primary_key=["id"]),"openings": AshbyEndpointConfig(name="openings", path="opening.list", primary_key=["id"]),"projects": AshbyEndpointConfig(name="projects", path="project.list", primary_key=["id"]),+ "referrals": AshbyEndpointConfig(+ name="referrals", path="referral.list", primary_key=["id"], partition_key="createdAt"+ ),+ "sequences": AshbyEndpointConfig(+ name="sequences", path="sequence.list", primary_key=["id"], partition_key="createdAt"+ ),}ENDPOINTS = tuple(ASHBY_ENDPOINTS.keys())