From ba560be86763e229ad34f91baacc2eb3d6bd8d76 Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez Date: Wed, 4 Aug 2021 11:29:22 -0700 Subject: [PATCH 1/4] dynamically enable freshness tests --- models/src_zendesk.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/models/src_zendesk.yml b/models/src_zendesk.yml index 817d9bb..bd2b6bc 100644 --- a/models/src_zendesk.yml +++ b/models/src_zendesk.yml @@ -89,6 +89,8 @@ sources: - name: domain_name description: Domain names associated with an organization. An organization may have multiple domain names. + meta: + is_enabled: "{{ var('using_domain_names', true) }}" columns: - name: organization_id description: Reference to the organization @@ -115,6 +117,7 @@ sources: - name: organization_tag description: The tags associated with an organization. An organization may have multiple tags. + freshness: null columns: - name: organization_id description: Reference to the organization @@ -185,6 +188,8 @@ sources: - name: user_tag description: Table containing all tags associated with a user. Only present if your account has user tagging enabled. + meta: + is_enabled: "{{ var('using_user_tags', true) }}" columns: - name: user_id description: Reference to the user @@ -217,6 +222,8 @@ sources: - name: schedule description: The support schedules created with different business hours and holidays. freshness: null + meta: + is_enabled: "{{ var('using_schedules', true) }}" columns: - name: id description: ID automatically assigned to the schedule upon creation @@ -242,6 +249,8 @@ sources: - name: ticket_form_history description: Ticket forms allow an admin to define a subset of ticket fields for display to both agents and end users. + meta: + is_enabled: "{{ var('using_ticket_form_history', true) }}" columns: - name: id description: Automatically assigned when creating ticket form From 9c618176078e94e72363b983c0066fd8e95d9a5f Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez Date: Wed, 4 Aug 2021 11:31:19 -0700 Subject: [PATCH 2/4] update package version --- 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 9382a67..c084907 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,7 +1,7 @@ config-version: 2 name: 'zendesk_source' -version: '0.4.0' +version: '0.4.1' require-dbt-version: ">=0.20.0" diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index ea9105d..efd77f7 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.4.0' +version: '0.4.1' profile: 'integration_tests' From 3b4d3322ecc9daa3c882f735382a79034bdee68e Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez Date: Wed, 4 Aug 2021 15:29:27 -0700 Subject: [PATCH 3/4] remove variable configs, they all have default values --- dbt_project.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index c084907..4c80c54 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -28,11 +28,4 @@ vars: ticket_schedule: "{{ source('zendesk', 'ticket_schedule') }}" ticket_tag: "{{ source('zendesk', 'ticket_tag') }}" user_tag: "{{ source('zendesk', 'user_tag') }}" - user: "{{ source('zendesk', 'user') }}" - - using_schedules: True - using_domain_names: True - using_user_tags: True - using_ticket_form_history: True - using_organization_tags: True - using_satisfaction_ratings: True + user: "{{ source('zendesk', 'user') }}" \ No newline at end of file From e27fa0132ac34615eb73f604c64197747ff0543b Mon Sep 17 00:00:00 2001 From: Jamie Rodriguez Date: Fri, 6 Aug 2021 11:31:40 -0700 Subject: [PATCH 4/4] organization tags --- models/src_zendesk.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/src_zendesk.yml b/models/src_zendesk.yml index bd2b6bc..cd70221 100644 --- a/models/src_zendesk.yml +++ b/models/src_zendesk.yml @@ -117,7 +117,8 @@ sources: - name: organization_tag description: The tags associated with an organization. An organization may have multiple tags. - freshness: null + meta: + is_enabled: "{{ var('using_organization_tags', true) }}" columns: - name: organization_id description: Reference to the organization