Skip to content

Commit

Permalink
Merge pull request #43 from fivetran/disable_freshness
Browse files Browse the repository at this point in the history
Disable freshness tests for disabled source tables
  • Loading branch information
fivetran-jamie authored Jun 15, 2021
2 parents d44a926 + 79bbbae commit 8d435fc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
target/
dbt_modules/
logs/
.DS_Store
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'hubspot_source'
version: '0.3.2'
version: '0.3.3'
config-version: 2
require-dbt-version: [">=0.18.0", "<0.20.0"]

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

name: 'hubspot_source_integration_tests'
version: '0.3.2'
version: '0.3.3'
profile: 'integration_tests'
config-version: 2

Expand Down
7 changes: 6 additions & 1 deletion models/src_hubspot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ sources:
warn_after: {count: 84, period: hour}
error_after: {count: 168, period: hour}
description: Each record represents a contact in Hubspot.
meta:
is_enabled: "{{ var('hubspot_marketing_enabled', true) }} and {{ var('hubspot_contact_enabled', true) }}"
columns:
- name: id
description: The ID of the contact.
Expand Down Expand Up @@ -259,7 +261,6 @@ sources:

- name: contact_list_member
description: Each record represents a 'link' between a contact and a contact list.

columns:
- name: _fivetran_deleted
description: '{{ doc("_fivetran_deleted") }}'
Expand All @@ -281,6 +282,8 @@ sources:
warn_after: {count: 84, period: hour}
error_after: {count: 168, period: hour}
description: Each record represents a change to contact record in Hubspot.
meta:
is_enabled: "{{ var('hubspot_marketing_enabled', true) }} and {{ var('hubspot_contact_property_enabled', true) }}"
columns:
- name: _fivetran_synced
description: '{{ doc("_fivetran_synced") }}'
Expand Down Expand Up @@ -501,6 +504,8 @@ sources:
warn_after: {count: 84, period: hour}
error_after: {count: 168, period: hour}
description: Each record represents an email event in Hubspot.
meta:
is_enabled: "{{ var('hubspot_email_event_enabled', true) }} and {{ var('hubspot_marketing_enabled', true) }}"
columns:
- name: _fivetran_synced
description: '{{ doc("_fivetran_synced") }}'
Expand Down

0 comments on commit 8d435fc

Please sign in to comment.