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
25 changes: 0 additions & 25 deletions .buildkite/hooks/pre-command

This file was deleted.

74 changes: 0 additions & 74 deletions .buildkite/pipeline.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .buildkite/scripts/run_models.sh

This file was deleted.

50 changes: 0 additions & 50 deletions integration_tests/ci/sample.profiles.yml

This file was deleted.

38 changes: 38 additions & 0 deletions integration_tests/ci/test_scenarios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Only set if not using default adapter ranges
# dbt_adapter_versions:
# snowflake: ">=1.3.0,<2.0.0"
# bigquery: ">=1.3.0,<2.0.0"
# postgres: ">=1.3.0,<2.0.0"
# redshift: ">=1.3.0,<2.0.0"
# databricks: ">=1.6.0,<2.0.0"

schema_variable_name: "intercom_schema"

include_databricks_sql: false
include_sqlserver: false
include_dbt_compile: true

test_scenarios:
- name: "Default"
vars: {}
include_incremental: false

- name: "optional features disabled"
vars:
intercom__using_articles: false
intercom__using_contact_company: false
intercom__using_company_tags: false
intercom__using_contact_tags: false
intercom__using_conversation_tags: false
intercom__using_team: false
include_incremental: false

- name: "collection history disabled"
vars:
intercom__using_collection_history: false
include_incremental: false

- name: "help center history disabled"
vars:
intercom__using_help_center_history: false
include_incremental: false
19 changes: 17 additions & 2 deletions integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ seeds:
show: False
intercom_integration_tests:
+quote_columns: "{{ true if target.type == 'redshift' else false }}"
+column_types:
_fivetran_synced: timestamp
admin_data:
+column_types:
id: "{{ 'varchar(100)' if target.type in ('redshift', 'postgres') else 'string'}}"
_fivetran_synced: timestamp
article_history_data:
+column_types:
id: "{{ 'varchar(100)' if target.type in ('redshift', 'postgres') else 'string' }}"
Expand All @@ -54,6 +53,7 @@ seeds:
_fivetran_start: timestamp
_fivetran_end: timestamp
_fivetran_active: boolean
_fivetran_synced: timestamp
collection_history_data:
+quote_columns: true
+enabled: "{{ true if target.type != 'snowflake' else false }}"
Expand All @@ -67,6 +67,7 @@ seeds:
_fivetran_start: timestamp
_fivetran_end: timestamp
_fivetran_active: boolean
_fivetran_synced: timestamp
collection_history_data_snowflake:
+quote_columns: true
+enabled: "{{ true if target.type == 'snowflake' else false }}"
Expand All @@ -81,26 +82,30 @@ seeds:
_FIVETRAN_START: timestamp
_FIVETRAN_END: timestamp
_FIVETRAN_ACTIVE: boolean
_FIVETRAN_SYNCED: timestamp
company_history_data:
+column_types:
created_at: timestamp
updated_at: timestamp
_fivetran_start: timestamp
_fivetran_end: timestamp
_fivetran_active: boolean
_fivetran_synced: timestamp
company_tag_history_data:
+column_types:
company_updated_at: timestamp
tag_id: "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"
_fivetran_start: timestamp
_fivetran_end: timestamp
_fivetran_active: boolean
_fivetran_synced: timestamp
contact_company_history_data:
+column_types:
contact_updated_at: timestamp
_fivetran_start: timestamp
_fivetran_end: timestamp
_fivetran_active: boolean
_fivetran_synced: timestamp
contact_history_data:
+column_types:
created_at: timestamp
Expand All @@ -112,20 +117,23 @@ seeds:
_fivetran_start: timestamp
_fivetran_end: timestamp
_fivetran_active: boolean
_fivetran_synced: timestamp
contact_tag_history_data:
+column_types:
contact_updated_at: timestamp
tag_id: "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"
_fivetran_start: timestamp
_fivetran_end: timestamp
_fivetran_active: boolean
_fivetran_synced: timestamp
conversation_contact_history_data:
+column_types:
conversation_id: "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"
conversation_updated_at: timestamp
_fivetran_start: timestamp
_fivetran_end: timestamp
_fivetran_active: boolean
_fivetran_synced: timestamp
conversation_history_data:
+column_types:
id: "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"
Expand All @@ -137,6 +145,7 @@ seeds:
_fivetran_start: timestamp
_fivetran_end: timestamp
_fivetran_active: boolean
_fivetran_synced: timestamp
conversation_part_history_data:
+column_types:
id: "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"
Expand All @@ -149,6 +158,7 @@ seeds:
_fivetran_start: timestamp
_fivetran_end: timestamp
_fivetran_active: boolean
_fivetran_synced: timestamp
conversation_tag_history_data:
+column_types:
conversation_id: "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"
Expand All @@ -157,6 +167,7 @@ seeds:
_fivetran_start: timestamp
_fivetran_end: timestamp
_fivetran_active: boolean
_fivetran_synced: timestamp
help_center_history_data:
+column_types:
id: "{{ 'varchar(100)' if target.type in ('redshift', 'postgres') else 'string' }}"
Expand All @@ -166,16 +177,20 @@ seeds:
_fivetran_start: timestamp
_fivetran_end: timestamp
_fivetran_active: boolean
_fivetran_synced: timestamp
tag_data:
+column_types:
id: "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"
_fivetran_synced: timestamp
team_admin_data:
+column_types:
admin_id: "{{ 'varchar(100)' if target.type in ('redshift', 'postgres') else 'string'}}"
team_id: "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"
_fivetran_synced: timestamp
team_data:
+column_types:
id: "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"
_fivetran_synced: timestamp

dispatch:
- macro_namespace: dbt_utils
Expand Down
Loading