From abcd367f0ad5a057ae86e734d92fef972850d6c2 Mon Sep 17 00:00:00 2001 From: Estelle Wolski Date: Thu, 20 Apr 2023 12:34:33 -0400 Subject: [PATCH 1/3] [Modeling] added back deleted groups + defined is_deleted field --- models/stg_zendesk__group.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/stg_zendesk__group.sql b/models/stg_zendesk__group.sql index c85af24..b8600e7 100644 --- a/models/stg_zendesk__group.sql +++ b/models/stg_zendesk__group.sql @@ -29,10 +29,10 @@ final as ( select id as group_id, - name + name, + _fivetran_deleted as is_deleted from fields - where not coalesce(_fivetran_deleted, false) ) select * From 0c4a2cf461f5ff135627ec5ece3a42a0d8740cac Mon Sep 17 00:00:00 2001 From: Estelle Wolski Date: Thu, 20 Apr 2023 12:35:26 -0400 Subject: [PATCH 2/3] [Deps] bumped version up (patch) --- dbt_project.yml | 2 +- integration_tests/dbt_project.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index ec5b886..26d40ab 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,6 +1,6 @@ config-version: 2 name: 'zendesk_source' -version: '0.8.1' +version: '0.8.2' require-dbt-version: [">=1.3.0", "<2.0.0"] models: zendesk_source: diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 37b2a33..304e664 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,7 +1,7 @@ config-version: 2 name: 'zendesk_source_integration_tests' -version: '0.8.1' +version: '0.8.2' profile: 'integration_tests' From 31804bef8375eda09127172885e216590e9c9f77 Mon Sep 17 00:00:00 2001 From: Estelle Wolski Date: Thu, 20 Apr 2023 12:36:25 -0400 Subject: [PATCH 3/3] [Docs] updated CHANGELOG.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8edd030..64cf546 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# dbt_zendesk_source v0.8.2 +## Bug Fixes +- Enable historical modeling: updated the `stg_zendesk__group` model to keep deleted groups. Added `is_deleted` tag to enable filtering in downstream models. +## Contributors +- [Estelle Wolski](https://github.com/EstelleBarnoud) ([#36](https://github.com/fivetran/dbt_zendesk_source/pull/36)) + # dbt_zendesk_source v0.8.1 ## Bug Fixes - Updated the dbt-utils dispatch within the `stg_zendesk__ticket_schedule_tmp` model to properly dispatch `dbt` as opposed to `dbt_utils` for the cross-db-macros. ([#32](https://github.com/fivetran/dbt_zendesk_source/pull/32))