From b63c24b0e765d82e44ddc5101f55c8d9e2526e80 Mon Sep 17 00:00:00 2001 From: Antonio Curado Date: Tue, 26 Apr 2022 21:14:04 +0100 Subject: [PATCH 1/6] Adds missing is_deleted field in deal when using custom columns --- models/stg_hubspot__deal.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/models/stg_hubspot__deal.sql b/models/stg_hubspot__deal.sql index 30c5eef..2f79921 100644 --- a/models/stg_hubspot__deal.sql +++ b/models/stg_hubspot__deal.sql @@ -33,6 +33,7 @@ with base as ( {% else %} -- just default columns + explicitly configured passthrough columns _fivetran_synced, + is_deleted, deal_id, cast(deal_pipeline_id as {{ dbt_utils.type_string() }}) as deal_pipeline_id, cast(deal_pipeline_stage_id as {{ dbt_utils.type_string() }}) as deal_pipeline_stage_id, From 1827ccb6e2b2845ebdd63c37a9ab5c6580a6be55 Mon Sep 17 00:00:00 2001 From: Antonio Curado Date: Tue, 26 Apr 2022 21:16:49 +0100 Subject: [PATCH 2/6] Update stg_hubspot__company.sql --- models/stg_hubspot__company.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/stg_hubspot__company.sql b/models/stg_hubspot__company.sql index 59dede4..0b88ab4 100644 --- a/models/stg_hubspot__company.sql +++ b/models/stg_hubspot__company.sql @@ -36,6 +36,7 @@ with base as ( {% else %} -- just default columns + explicitly configured passthrough columns _fivetran_synced, + is_deleted, property_name as company_name, property_description as description, property_createdate as created_at, @@ -59,4 +60,4 @@ with base as ( ) select * -from fields \ No newline at end of file +from fields From 9e1322778a62acce9bf5173849a15922b3a1a7bf Mon Sep 17 00:00:00 2001 From: Antonio Curado Date: Tue, 26 Apr 2022 21:19:07 +0100 Subject: [PATCH 3/6] Update stg_hubspot__company.sql From 6cde5ca84a826d036a9cfdbd3baf36fae82e5d53 Mon Sep 17 00:00:00 2001 From: Antonio Curado Date: Tue, 26 Apr 2022 21:19:41 +0100 Subject: [PATCH 4/6] Update stg_hubspot__company.sql From 3a072bfd77f5e52cf6d00a6ea6f53d9f2a03a837 Mon Sep 17 00:00:00 2001 From: Antonio Curado Date: Tue, 26 Apr 2022 21:22:29 +0100 Subject: [PATCH 5/6] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7143612..c06265b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # dbt_hubspot_source v0.5.4 ## Fixes - Updated the README to reference the proper `hubspot_email_event_spam_report_enabled` variable name. ([#59](https://github.com/fivetran/dbt_hubspot_source/pull/59)) +- Adds missing is_deleted field when using custom columns([#61](https://github.com/fivetran/dbt_hubspot_source/pull/61)) ## Contributors - [@cmcau](https://github.com/cmcau) ([#59](https://github.com/fivetran/dbt_hubspot_source/pull/59)) From 3ab848121692fc54da5466e2eeb50fb0e41a0883 Mon Sep 17 00:00:00 2001 From: fivetran-joemarkiewicz Date: Wed, 27 Apr 2022 08:41:31 -0500 Subject: [PATCH 6/6] updated CHANGELOG for contribution recognition --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c06265b..5a8f7eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,11 @@ # dbt_hubspot_source v0.5.4 ## Fixes - Updated the README to reference the proper `hubspot_email_event_spam_report_enabled` variable name. ([#59](https://github.com/fivetran/dbt_hubspot_source/pull/59)) -- Adds missing is_deleted field when using custom columns([#61](https://github.com/fivetran/dbt_hubspot_source/pull/61)) +- Adds missing `is_deleted` field when using custom columns. ([#61](https://github.com/fivetran/dbt_hubspot_source/pull/61)) ## Contributors - [@cmcau](https://github.com/cmcau) ([#59](https://github.com/fivetran/dbt_hubspot_source/pull/59)) +- [@ABCurado](https://github.com/ABCurado) ([#61](https://github.com/fivetran/dbt_hubspot_source/pull/61)) # dbt_hubspot_source v0.5.3 ## Under the Hood