From 138e3a70b322725b36e14d39aa6d9b14f1e8da57 Mon Sep 17 00:00:00 2001 From: Jeremy Cohen Date: Wed, 14 Jul 2021 08:42:13 -0400 Subject: [PATCH 1/3] Upgrade to dbt v0.20 --- dbt_project.yml | 4 ++-- integration_tests/data/brand_data.csv | 2 +- integration_tests/dbt_project.yml | 3 +-- integration_tests/requirements.txt | 2 +- packages.yml | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index 9f3fa69..9382a67 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,9 +1,9 @@ config-version: 2 name: 'zendesk_source' -version: '0.3.1' +version: '0.4.0' -require-dbt-version: [">=0.18.0", "<0.20.0"] +require-dbt-version: ">=0.20.0" models: zendesk_source: diff --git a/integration_tests/data/brand_data.csv b/integration_tests/data/brand_data.csv index ffdfed0..6c84e8a 100644 --- a/integration_tests/data/brand_data.csv +++ b/integration_tests/data/brand_data.csv @@ -1,2 +1,2 @@ -id,_fivetran_deleted,_fivetran_synced,active,brand_url,default,has_help_center,help_center_state,logo_content_type,logo_content_url,logo_deleted,logo_file_name,logo_height,logo_id,logo_inline,logo_mapped_content_url,logo_size,logo_url,logo_width,name,subdomain,url +id,_fivetran_deleted,_fivetran_synced,active,brand_url,"""default""",has_help_center,help_center_state,logo_content_type,logo_content_url,logo_deleted,logo_file_name,logo_height,logo_id,logo_inline,logo_mapped_content_url,logo_size,logo_url,logo_width,name,subdomain,url 36000,FALSE,2021-02-16 20:08:56,TRUE,5e52582af2ab7c3a6e7fa6856b4cd945,TRUE,TRUE,enabled,image/png,5e52582af2ab7c3a6e7fa6856b4cd945,FALSE,2abdc594c0ad6eb2438448b3cbf7da56,22,3600,FALSE,5e52582af2ab7c3a6e7fa6856b4cd945,1961,5e52582af2ab7c3a6e7fa6856b4cd945,80,2abdc594c0ad6eb2438448b3cbf7da56,2abdc594c0ad6eb2438448b3cbf7da56,5e52582af2ab7c3a6e7fa6856b4cd945 \ No newline at end of file diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index d27ec5a..ea9105d 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,9 +1,8 @@ config-version: 2 name: 'zendesk_source_integration_tests' -version: '0.3.1' +version: '0.4.0' -require-dbt-version: [">=0.18.0", "<0.20.0"] profile: 'integration_tests' vars: diff --git a/integration_tests/requirements.txt b/integration_tests/requirements.txt index 38e8ae6..1b85aa4 100644 --- a/integration_tests/requirements.txt +++ b/integration_tests/requirements.txt @@ -1 +1 @@ -dbt==0.19.0 \ No newline at end of file +dbt~=0.20.0 \ No newline at end of file diff --git a/packages.yml b/packages.yml index f70da7e..14c292e 100644 --- a/packages.yml +++ b/packages.yml @@ -1,3 +1,3 @@ packages: - package: fivetran/fivetran_utils - version: [">=0.1.0", "<0.2.0"] + version: [">=0.2.0", "<0.3.0"] From 1ace1b4590f68efde3ea77d48db0d3b401182ba8 Mon Sep 17 00:00:00 2001 From: Jeremy Cohen Date: Mon, 19 Jul 2021 18:56:58 -0400 Subject: [PATCH 2/3] Rm edit to brand_data.csv --- integration_tests/data/brand_data.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration_tests/data/brand_data.csv b/integration_tests/data/brand_data.csv index 6c84e8a..ffdfed0 100644 --- a/integration_tests/data/brand_data.csv +++ b/integration_tests/data/brand_data.csv @@ -1,2 +1,2 @@ -id,_fivetran_deleted,_fivetran_synced,active,brand_url,"""default""",has_help_center,help_center_state,logo_content_type,logo_content_url,logo_deleted,logo_file_name,logo_height,logo_id,logo_inline,logo_mapped_content_url,logo_size,logo_url,logo_width,name,subdomain,url +id,_fivetran_deleted,_fivetran_synced,active,brand_url,default,has_help_center,help_center_state,logo_content_type,logo_content_url,logo_deleted,logo_file_name,logo_height,logo_id,logo_inline,logo_mapped_content_url,logo_size,logo_url,logo_width,name,subdomain,url 36000,FALSE,2021-02-16 20:08:56,TRUE,5e52582af2ab7c3a6e7fa6856b4cd945,TRUE,TRUE,enabled,image/png,5e52582af2ab7c3a6e7fa6856b4cd945,FALSE,2abdc594c0ad6eb2438448b3cbf7da56,22,3600,FALSE,5e52582af2ab7c3a6e7fa6856b4cd945,1961,5e52582af2ab7c3a6e7fa6856b4cd945,80,2abdc594c0ad6eb2438448b3cbf7da56,2abdc594c0ad6eb2438448b3cbf7da56,5e52582af2ab7c3a6e7fa6856b4cd945 \ No newline at end of file From 2651ee340cb67e974269ae2cf7cd9355b4887c07 Mon Sep 17 00:00:00 2001 From: fivetran-joemarkiewicz Date: Mon, 19 Jul 2021 18:03:28 -0500 Subject: [PATCH 3/3] minor README update for dbt 20 --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index c60f5ed..159ea4c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Apache License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![dbt logo and version](https://img.shields.io/static/v1?logo=dbt&label=dbt-version&message=0.20.x&color=orange) # Zendesk Support (Source) This package models Zendesk Support data from [Fivetran's connector](https://fivetran.com/docs/applications/zendesk). It uses data in the format described by [this ERD](https://fivetran.com/docs/applications/zendesk#schemainformation). @@ -16,8 +17,18 @@ This package contains staging models, designed to work simultaneously with our [ * ID primary keys are prefixed with the name of the table. For example, the ticket table's ID column is renamed `ticket_id`. ## Installation Instructions +`dbt_zendesk_source` currently supports `dbt 0.20.x`. + Check [dbt Hub](https://hub.getdbt.com/) for the latest installation instructions, or [read the dbt docs](https://docs.getdbt.com/docs/package-management) for more information on installing packages. +Include in your `packages.yml` + +```yaml +packages: + - package: fivetran/zendesk_source + version: [">=0.4.0", "<0.5.0"] +``` + ## Configuration By default, this package looks for your Zendesk data in the `zendesk` schema of your [target database](https://docs.getdbt.com/docs/running-a-dbt-project/using-the-command-line-interface/configure-your-profile). If this is not where your Zendesk Support data is, add the following configuration to your `dbt_project.yml` file: