Skip to content

Commit

Permalink
Merge pull request #32 from fivetran/MagicBot_d15231db0c
Browse files Browse the repository at this point in the history
[MagicBot] Bumping package version
  • Loading branch information
fivetran-joemarkiewicz authored Dec 22, 2021
2 parents 58617c6 + 6cd8dcb commit b567640
Show file tree
Hide file tree
Showing 23 changed files with 53 additions and 35 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- run:
name: "Setup dbt"
command: |
sudo apt install libsasl2-dev
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip setuptools
Expand Down Expand Up @@ -63,4 +64,4 @@ jobs:
- save_cache:
key: deps2-{{ .Branch }}
paths:
- "venv"
- "venv"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
target/
dbt_modules/
logs/

dbt_packages/
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# dbt_stripe_source v0.5.0
🎉 dbt v1.0.0 Compatibility 🎉
## 🚨 Breaking Changes 🚨
- Adjusts the `require-dbt-version` to now be within the range [">=1.0.0", "<2.0.0"]. Additionally, the package has been updated for dbt v1.0.0 compatibility. If you are using a dbt version <1.0.0, you will need to upgrade in order to leverage the latest version of the package.
- For help upgrading your package, I recommend reviewing this GitHub repo's Release Notes on what changes have been implemented since your last upgrade.
- For help upgrading your dbt project to dbt v1.0.0, I recommend reviewing dbt-labs [upgrading to 1.0.0 docs](https://docs.getdbt.com/docs/guides/migration-guide/upgrading-to-1-0-0) for more details on what changes must be made.
- Upgrades the package dependency to refer to the latest `dbt_fivetran_utils`. The latest `dbt_fivetran_utils` package also has a dependency on `dbt_utils` [">=0.8.0", "<0.9.0"].
- Please note, if you are installing a version of `dbt_utils` in your `packages.yml` that is not in the range above then you will encounter a package dependency error.


# dbt_stripe_source v0.4.4

## Features
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +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)
[![Apache License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
# Stripe

This package models Stripe data from [Fivetran's connector](https://fivetran.com/docs/applications/stripe). It uses data in the format described by [this ERD](https://fivetran.com/docs/applications/stripe#schemainformation).
Expand Down Expand Up @@ -27,7 +27,7 @@ Include in your `packages.yml`
```yaml
packages:
- package: fivetran/stripe_source
version: [">=0.4.0", "<0.5.0"]
version: [">=0.5.0", "<0.6.0"]
```
## Configuration
Expand Down
60 changes: 30 additions & 30 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
config-version: 2

name: 'stripe_source'
version: '0.4.4'
require-dbt-version: ">=0.20.0"
version: '0.5.0'
require-dbt-version: [">=1.0.0", "<2.0.0"]

models:
stripe_source:
materialized: table
+schema: stg_stripe
tmp:
materialized: view
stripe_source:
materialized: table
+schema: stg_stripe
tmp:
materialized: view

vars:
stripe_source:
balance_transaction: "{{ source('stripe', 'balance_transaction') }}"
card: "{{ source('stripe', 'card') }}"
charge: "{{ source('stripe', 'charge') }}"
customer: "{{ source('stripe', 'customer') }}"
fee: "{{ source('stripe', 'fee') }}"
invoice: "{{ source('stripe', 'invoice') }}"
invoice_line_item: "{{ source('stripe', 'invoice_line_item') }}"
payment_intent: "{{ source('stripe', 'payment_intent') }}"
payment_method_card: "{{ source('stripe', 'payment_method_card') }}"
payment_method: "{{ source('stripe', 'payment_method') }}"
payout: "{{ source('stripe', 'payout') }}"
plan: "{{ source('stripe', 'plan') }}"
refund: "{{ source('stripe', 'refund') }}"
subscription: "{{ source('stripe', 'subscription') }}"
credit_note: "{{ source('stripe', 'credit_note') }}"
balance_transaction: "{{ source('stripe', 'balance_transaction') }}"
card: "{{ source('stripe', 'card') }}"
charge: "{{ source('stripe', 'charge') }}"
customer: "{{ source('stripe', 'customer') }}"
fee: "{{ source('stripe', 'fee') }}"
invoice: "{{ source('stripe', 'invoice') }}"
invoice_line_item: "{{ source('stripe', 'invoice_line_item') }}"
payment_intent: "{{ source('stripe', 'payment_intent') }}"
payment_method_card: "{{ source('stripe', 'payment_method_card') }}"
payment_method: "{{ source('stripe', 'payment_method') }}"
payout: "{{ source('stripe', 'payout') }}"
plan: "{{ source('stripe', 'plan') }}"
refund: "{{ source('stripe', 'refund') }}"
subscription: "{{ source('stripe', 'subscription') }}"
credit_note: "{{ source('stripe', 'credit_note') }}"
credit_note_line_item: "{{ source('stripe', 'credit_note_line_item') }}"

#Variables to enable or disable models if you do not have the respective table.
using_invoices: True
using_credit_notes: False
using_payment_method: True
using_subscriptions: True
using_invoices: true
using_credit_notes: false
using_payment_method: true
using_subscriptions: true



# variable to exclude or include test data (based on `livemode`)
using_livemode: True
using_livemode: true

# variable to disable the filter within invoice line item
using_invoice_line_sub_filter: True
using_invoice_line_sub_filter: true
7 changes: 6 additions & 1 deletion integration_tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
dbt~=0.20.0
dbt-snowflake==1.0.0
dbt-bigquery==1.0.0
dbt-redshift==1.0.0
dbt-postgres==1.0.0
dbt-spark==1.0.0
dbt-spark[PyHive]==1.0.0
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages:
- package: fivetran/fivetran_utils
version: [">=0.2.0", "<0.3.0"]
version: [">=0.3.0", "<0.4.0"]

0 comments on commit b567640

Please sign in to comment.