Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .changes/1.8.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: 1.8.0
pr_number: 89
schema_data_changes:
entries:
- models:
- '`intercom__conversation_enhanced`'
- '`intercom__conversation_metrics`'
- '`stg_intercom__conversation_history`'
change_type: Removed field/model
old: '`assignee_type` / `conversation_assignee_type`'
is_breaking: true
notes: Removes the deprecated field. Use `is_assignee_admin` instead.
- models:
- '`intercom__contact_enhanced`'
- '`stg_intercom__contact_history`'
change_type: Changed data type
old: '`admin_id` is an integer'
new: '`admin_id` is a string'
is_breaking: true
notes: Intercom API sends the contact `owner_id` as a string, and we populate
`admin_id` from it.
- models:
- '`stg_intercom__article_history`'
change_type: Deprecated field
old: '`parent_type`'
new: Field now marked as deprecated.
is_breaking: false
notes: Intercom API v2.16 no longer returns article `parent_type`, and Fivetran
removes the column from the `article_history` source table. The field returns
null once the source column is gone. We plan to remove it in a future release.
under_the_hood:
- description: Converts `assignee_id` from `0` to null in `stg_intercom__conversation_history`.
Intercom API updates return `0` for unassigned conversations, so this keeps unassigned
conversations null in the staging and end models, as before.
date: '2026-10-26'
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# dbt_intercom v1.8.0

[PR #89](https://github.com/fivetran/dbt_intercom/pull/89) includes the following updates:

## Schema/Data Change
**3 total changes • 2 possible breaking changes**

| Data Model(s) | Change type | Old | New | Notes |
| ------------- | ----------- | --- | --- | ----- |
| `intercom__conversation_enhanced`<br>`intercom__conversation_metrics`<br>`stg_intercom__conversation_history`<br>(Breaking) | Removed field/model | `assignee_type` / `conversation_assignee_type` | | Removes the deprecated field. Use `is_assignee_admin` instead. |
| `intercom__contact_enhanced`<br>`stg_intercom__contact_history`<br>(Breaking) | Changed data type | `admin_id` is an integer | `admin_id` is a string | Intercom API sends the contact `owner_id` as a string, and we populate `admin_id` from it. |
| `stg_intercom__article_history` | Deprecated field | `parent_type` | Field now marked as deprecated. | Intercom API v2.16 no longer returns article `parent_type`, and Fivetran removes the column from the `article_history` source table. The field returns null once the source column is gone. We plan to remove it in a future release. |

## Under the Hood
- Converts `assignee_id` from `0` to null in `stg_intercom__conversation_history`. Intercom API updates return `0` for unassigned conversations, so this keeps unassigned conversations null in the staging and end models, as before.

# dbt_intercom v1.7.1

[PR #87](https://github.com/fivetran/dbt_intercom/pull/87) includes the following updates:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Include the following intercom package version in your `packages.yml` file:
```yaml
packages:
- package: fivetran/intercom
version: [">=1.7.0", "<1.8.0"]
version: [">=1.8.0", "<1.9.0"]
```
### Define database and schema variables
#### Option A: Single connection
Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config-version: 2
name: 'intercom'
version: '1.7.1'
version: '1.8.0'
require-dbt-version: [">=1.3.0", "<3.0.0"]
models:
intercom:
Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'intercom_integration_tests'
version: '1.7.1'
version: '1.8.0'
profile: 'integration_tests'
config-version: 2

Expand Down Expand Up @@ -109,6 +109,7 @@ seeds:
contact_history_data:
+column_types:
created_at: timestamp
admin_id: "{{ 'varchar(100)' if target.type in ('redshift', 'postgres') else 'string'}}"
signed_up_at: timestamp
last_replied_at: timestamp
last_contacted_at: timestamp
Expand Down
9 changes: 0 additions & 9 deletions integration_tests/requirements.txt

This file was deleted.

8 changes: 4 additions & 4 deletions integration_tests/seeds/article_history_data.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
id,collection_id,section_id,author_id,title,description,body,url,type,state,parent_type,default_locale,workspace_id,statistics_type,statistics_views,statistics_conversations,statistics_reactions,statistics_happy_reaction_percentage,statistics_neutral_reaction_percentage,statistics_sad_reaction_percentage,created_at,updated_at,_fivetran_active,_fivetran_start,_fivetran_end,_fivetran_synced
article_001,collection_001,,4077639,Getting Started Guide,A comprehensive guide to getting started,<p>Welcome to our getting started guide...</p>,https://help.example.com/articles/getting-started,article,published,collection,en,ws_001,article_statistics,150,5,20,0.8,0.15,0.05,2023-01-15 10:00:00,2023-06-20 14:30:00,true,2023-01-15 10:00:00,,2023-06-20 15:00:00
article_002,collection_001,,4079659,FAQ - Common Questions,Frequently asked questions,<p>Here are answers to common questions...</p>,https://help.example.com/articles/faq,article,published,collection,en,ws_001,article_statistics,300,12,45,0.75,0.2,0.05,2023-02-01 09:00:00,2023-07-10 11:00:00,true,2023-02-01 09:00:00,,2023-07-10 12:00:00
article_003,collection_002,section_001,4077640,API Reference,Complete API documentation,<p>This document covers our REST API...</p>,https://help.example.com/articles/api-reference,article,published,section,en,ws_001,article_statistics,500,3,30,0.9,0.08,0.02,2023-03-10 08:00:00,2023-08-15 16:45:00,true,2023-03-10 08:00:00,,2023-08-15 17:00:00
article_004,collection_002,,4077639,Troubleshooting Guide,How to resolve common issues,<p>If you encounter problems...</p>,https://help.example.com/articles/troubleshooting,article,draft,collection,en,ws_001,article_statistics,50,1,5,0.6,0.3,0.1,2023-04-20 13:00:00,2023-09-01 10:00:00,true,2023-04-20 13:00:00,,2023-09-01 11:00:00
article_001,collection_001,,4077639,Getting Started Guide,A comprehensive guide to getting started,<p>Welcome to our getting started guide...</p>,https://help.example.com/articles/getting-started,article,published,,en,ws_001,article_statistics,150,5,20,0.8,0.15,0.05,2023-01-15 10:00:00,2023-06-20 14:30:00,true,2023-01-15 10:00:00,,2023-06-20 15:00:00
article_002,collection_001,,4079659,FAQ - Common Questions,Frequently asked questions,<p>Here are answers to common questions...</p>,https://help.example.com/articles/faq,article,published,,en,ws_001,article_statistics,300,12,45,0.75,0.2,0.05,2023-02-01 09:00:00,2023-07-10 11:00:00,true,2023-02-01 09:00:00,,2023-07-10 12:00:00
article_003,collection_002,section_001,4077640,API Reference,Complete API documentation,<p>This document covers our REST API...</p>,https://help.example.com/articles/api-reference,article,published,,en,ws_001,article_statistics,500,3,30,0.9,0.08,0.02,2023-03-10 08:00:00,2023-08-15 16:45:00,true,2023-03-10 08:00:00,,2023-08-15 17:00:00
article_004,collection_002,,4077639,Troubleshooting Guide,How to resolve common issues,<p>If you encounter problems...</p>,https://help.example.com/articles/troubleshooting,article,draft,,en,ws_001,article_statistics,50,1,5,0.6,0.3,0.1,2023-04-20 13:00:00,2023-09-01 10:00:00,true,2023-04-20 13:00:00,,2023-09-01 11:00:00
16 changes: 8 additions & 8 deletions integration_tests/seeds/contact_history_data.csv
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
id,updated_at,_fivetran_active,_fivetran_synced,admin_id,android_app_name,android_app_version,android_device,android_last_seen_at,android_os_version,android_sdk_version,browser,browser_language,browser_version,created_at,custom_onboarding_step,custom_organisation_id,custom_organisation_name,external_id,has_hard_bounced,ios_app_name,ios_app_version,ios_device,ios_last_seen_at,ios_os_version,ios_sdk_version,language_override,last_contacted_at,last_email_clicked_at,last_email_opened_at,last_replied_at,last_seen_at,location_city,location_country,location_region,marked_email_as_spam,os,phone,role,signed_up_at,unsubscribed_from_emails,workspace_id,avatar,custom_job_title,email,name,_fivetran_start,_fivetran_end
5f19187f9c0ca3ba4e5f85a4,2020-07-23 13:43:42,TRUE,2020-09-27 17:50:28.977,,,,,,,,,,,2020-07-23 04:56:31,,,,38562efa-c962-428b-a77a-6321b5370d73,FALSE,,,,,,,,2020-07-23 05:45:04,,,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,,XgyqsB0TWiMCtrwGLrqt0g==,zIM/kdIwgY0S3mi8OSjMHg==,2020-07-23 13:43:42,2020-07-23 13:43:42
5edd3869fc6d3d1112079b14,2020-07-10 16:40:46,TRUE,2020-09-27 17:50:28.958,,,,,,,,,,,2020-06-07 18:56:41,,,,290286e9-0292-4b0f-9a60-0aa41da11c68,FALSE,,,,,,,,2020-07-10 16:39:52,,2020-07-10 16:40:46,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,,sqxIlpfGVehdtt/txcL+5Q==,3DY+flxbF0BtRiZEZOjxxw==,2020-07-10 16:40:46,2020-07-10 16:40:46
5f5777f5910d7e6b26b62cb0,2020-09-08 13:18:24,TRUE,2020-09-27 17:50:30.036,,,,,,,,,,,2020-09-08 12:24:21,,,,da64250e-ff80-4262-89e9-99cd7f00017f,FALSE,,,,,,,,2020-09-08 13:18:24,,,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,,+dbCB8qEh+/E54pDu8Wrpg==,1RlYfKZWnoXoNkhrx00Iow==,2020-09-08 13:18:24,2020-09-08 13:18:24
5ed8f5bb6eb011d49608157f,2020-07-10 17:32:12,TRUE,2020-09-27 17:50:28.184,,,,,,,,,,,2020-06-04 13:23:07,,,,61264a42-3a2e-42e6-a5f1-69c2bd7084e8,FALSE,,,,,,,,2020-07-10 16:39:52,,2020-07-10 17:32:12,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,,8J3SZyt4RjZIfPsXc0J4HA==,BivgW+ZsRU0DS4BK+zwDBA==,2020-07-10 17:32:12,2020-07-10 17:32:12
5ee9bf76aaf738027ba36034,2020-07-10 16:39:52,TRUE,2020-09-27 17:50:28.966,,,,,,,,,,,2020-06-17 07:00:06,,,,a6a8bd81-5eb4-49c9-8cdd-23a2b57c9fa5,FALSE,,,,,,,,2020-07-10 16:39:52,,,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,,s34CUDu895kiTwtirKZqUw==,UVN28d29LbuGsCjbVZyYYg==,2020-07-10 16:39:52,2020-07-10 16:39:52
5eeb6e9e177608d00418f2d1,2020-07-10 18:27:21,TRUE,2020-09-27 17:50:28.967,,,,,,,,,,,2020-06-18 13:39:43,,,,ef1a465d-a2d0-402e-92cc-e985f51ac947,FALSE,,,,,,,,2020-07-10 16:39:52,2020-07-10 18:27:21,2020-07-10 18:27:21,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,,5G14CRrRQtxryD5TKCPtCQ==,KpCpRbIiSYdYUpIUYJl2Sg==,2020-07-10 18:27:21,2020-07-10 18:27:21
5edd386afc6d3d1112079b18,2020-07-10 16:54:58,TRUE,2020-09-27 17:50:28.960,,,,,,,,,,,2020-06-07 18:56:42,,,,86fadf6b-8aca-4fc7-b836-c91e2d1cc2df,FALSE,,,,,,,,2020-07-10 16:39:52,,2020-07-10 16:54:58,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,,rj7gy7aUFE7kDf/leISNNQ==,cuTdPAm7hoBqACNMcA+O/g==,2020-07-10 16:54:58,2020-07-10 16:54:58
5f03c55e8cf7dc02e0f97baa,2020-07-13 22:23:51,TRUE,2020-09-27 17:50:28.971,,,,,,,,,,,2020-07-07 00:44:14,,,,faf02fa4-157d-4198-90a1-cf0a149bb405,FALSE,,,,,,,,2020-07-10 16:39:51,,2020-07-13 22:23:51,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,G949WXHx1QOe1qeFCIft0g==,z4Wop/8T/iGFMfYQ4adUcw==,u7MNmEKpZaEpntcaBWXjfw==,2020-07-13 22:23:51,2020-07-13 22:23:51
5f19187f9c0ca3ba4e5f85a4,2020-07-23 13:43:42,TRUE,2020-09-27 17:50:28.977,4077639,,,,,,,,,,2020-07-23 04:56:31,,,,38562efa-c962-428b-a77a-6321b5370d73,FALSE,,,,,,,,2020-07-23 05:45:04,,,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,,XgyqsB0TWiMCtrwGLrqt0g==,zIM/kdIwgY0S3mi8OSjMHg==,2020-07-23 13:43:42,2020-07-23 13:43:42
5edd3869fc6d3d1112079b14,2020-07-10 16:40:46,TRUE,2020-09-27 17:50:28.958,4109673,,,,,,,,,,2020-06-07 18:56:41,,,,290286e9-0292-4b0f-9a60-0aa41da11c68,FALSE,,,,,,,,2020-07-10 16:39:52,,2020-07-10 16:40:46,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,,sqxIlpfGVehdtt/txcL+5Q==,3DY+flxbF0BtRiZEZOjxxw==,2020-07-10 16:40:46,2020-07-10 16:40:46
5f5777f5910d7e6b26b62cb0,2020-09-08 13:18:24,TRUE,2020-09-27 17:50:30.036,4079659,,,,,,,,,,2020-09-08 12:24:21,,,,da64250e-ff80-4262-89e9-99cd7f00017f,FALSE,,,,,,,,2020-09-08 13:18:24,,,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,,+dbCB8qEh+/E54pDu8Wrpg==,1RlYfKZWnoXoNkhrx00Iow==,2020-09-08 13:18:24,2020-09-08 13:18:24
5ed8f5bb6eb011d49608157f,2020-07-10 17:32:12,TRUE,2020-09-27 17:50:28.184,4077640,,,,,,,,,,2020-06-04 13:23:07,,,,61264a42-3a2e-42e6-a5f1-69c2bd7084e8,FALSE,,,,,,,,2020-07-10 16:39:52,,2020-07-10 17:32:12,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,,8J3SZyt4RjZIfPsXc0J4HA==,BivgW+ZsRU0DS4BK+zwDBA==,2020-07-10 17:32:12,2020-07-10 17:32:12
5ee9bf76aaf738027ba36034,2020-07-10 16:39:52,TRUE,2020-09-27 17:50:28.966,4077639,,,,,,,,,,2020-06-17 07:00:06,,,,a6a8bd81-5eb4-49c9-8cdd-23a2b57c9fa5,FALSE,,,,,,,,2020-07-10 16:39:52,,,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,,s34CUDu895kiTwtirKZqUw==,UVN28d29LbuGsCjbVZyYYg==,2020-07-10 16:39:52,2020-07-10 16:39:52
5eeb6e9e177608d00418f2d1,2020-07-10 18:27:21,TRUE,2020-09-27 17:50:28.967,4109673,,,,,,,,,,2020-06-18 13:39:43,,,,ef1a465d-a2d0-402e-92cc-e985f51ac947,FALSE,,,,,,,,2020-07-10 16:39:52,2020-07-10 18:27:21,2020-07-10 18:27:21,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,,5G14CRrRQtxryD5TKCPtCQ==,KpCpRbIiSYdYUpIUYJl2Sg==,2020-07-10 18:27:21,2020-07-10 18:27:21
5edd386afc6d3d1112079b18,2020-07-10 16:54:58,TRUE,2020-09-27 17:50:28.960,4079659,,,,,,,,,,2020-06-07 18:56:42,,,,86fadf6b-8aca-4fc7-b836-c91e2d1cc2df,FALSE,,,,,,,,2020-07-10 16:39:52,,2020-07-10 16:54:58,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,,rj7gy7aUFE7kDf/leISNNQ==,cuTdPAm7hoBqACNMcA+O/g==,2020-07-10 16:54:58,2020-07-10 16:54:58
5f03c55e8cf7dc02e0f97baa,2020-07-13 22:23:51,TRUE,2020-09-27 17:50:28.971,4077640,,,,,,,,,,2020-07-07 00:44:14,,,,faf02fa4-157d-4198-90a1-cf0a149bb405,FALSE,,,,,,,,2020-07-10 16:39:51,,2020-07-13 22:23:51,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,G949WXHx1QOe1qeFCIft0g==,z4Wop/8T/iGFMfYQ4adUcw==,u7MNmEKpZaEpntcaBWXjfw==,2020-07-13 22:23:51,2020-07-13 22:23:51
5f569df7ad3fcefe03350117,2020-09-07 22:07:39,TRUE,2020-09-27 17:50:30.036,,,,,,,,,,,2020-09-07 20:54:15,,,,72343fbe-4f9f-492b-8772-38f89f543cf4,FALSE,,,,,,,,2020-09-07 21:00:26,2020-09-07 22:07:39,2020-09-07 22:07:39,,,,,,FALSE,,,lead,,FALSE,otyeqd9q,,,SYU2ezEg3mW8vyVnchVcrA==,oSDDQHjs6nuZZw/zpfDwqw==,2020-09-07 22:07:39,2020-09-07 22:07:39
Loading
Loading