From 6f1e134d36c2124332442259db05152636209eca Mon Sep 17 00:00:00 2001 From: jeffsloan Date: Wed, 28 Apr 2021 17:46:15 -0400 Subject: [PATCH 1/4] Filter out test and deleted Stripe customers from tmp view --- models/tmp/stg_stripe__customer_tmp.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/tmp/stg_stripe__customer_tmp.sql b/models/tmp/stg_stripe__customer_tmp.sql index 414e3ee3..a042783f 100644 --- a/models/tmp/stg_stripe__customer_tmp.sql +++ b/models/tmp/stg_stripe__customer_tmp.sql @@ -1,2 +1,4 @@ select * from {{ var('customer') }} +where livemode = TRUE + and is_deleted = FALSE \ No newline at end of file From 65181de318e336802ab455fb466d62af886bbc09 Mon Sep 17 00:00:00 2001 From: jeffsloan Date: Thu, 29 Apr 2021 19:18:18 -0400 Subject: [PATCH 2/4] Adjust true / false evaluations to be warehouse agnostic --- models/tmp/stg_stripe__customer_tmp.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/tmp/stg_stripe__customer_tmp.sql b/models/tmp/stg_stripe__customer_tmp.sql index a042783f..7494cbf7 100644 --- a/models/tmp/stg_stripe__customer_tmp.sql +++ b/models/tmp/stg_stripe__customer_tmp.sql @@ -1,4 +1,4 @@ select * from {{ var('customer') }} -where livemode = TRUE - and is_deleted = FALSE \ No newline at end of file +where livemode + and not is_deleted \ No newline at end of file From f7dda72bc6f397c275c90742d375f0a79db0a0e9 Mon Sep 17 00:00:00 2001 From: fivetran-joemarkiewicz Date: Wed, 9 Jun 2021 11:06:44 -0500 Subject: [PATCH 3/4] version upgrade changes --- 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 108635f1..f890cc4d 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,7 +1,7 @@ config-version: 2 name: 'stripe_source' -version: '0.3.1' +version: '0.3.2' require-dbt-version: [">=0.18.0", "<0.20.0"] models: diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 711365f6..a2dd95b2 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,7 +1,7 @@ config-version: 2 name: 'stripe_source_integration_tests' -version: '0.3.1' +version: '0.3.2' require-dbt-version: [">=0.18.0", "<0.20.0"] profile: 'integration_tests' From 34385bad46a0aefb5bda06b5740b146f3c637b45 Mon Sep 17 00:00:00 2001 From: fivetran-joemarkiewicz Date: Wed, 9 Jun 2021 14:33:23 -0500 Subject: [PATCH 4/4] coalesce additions --- models/tmp/stg_stripe__customer_tmp.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/tmp/stg_stripe__customer_tmp.sql b/models/tmp/stg_stripe__customer_tmp.sql index 7494cbf7..34ac2f04 100644 --- a/models/tmp/stg_stripe__customer_tmp.sql +++ b/models/tmp/stg_stripe__customer_tmp.sql @@ -1,4 +1,4 @@ select * from {{ var('customer') }} -where livemode - and not is_deleted \ No newline at end of file +where coalesce(livemode, true) + and not coalesce(is_deleted, false) \ No newline at end of file