Skip to content

Commit

Permalink
Merge pull request #9 from fivetran/MagicBot_767e0bb9a3
Browse files Browse the repository at this point in the history
[MagicBot] Bumping package version
  • Loading branch information
fivetran-sheringuyen authored Dec 22, 2021
2 parents 75afd1e + 80a574b commit bd39aa5
Show file tree
Hide file tree
Showing 19 changed files with 46 additions and 29 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 @@ -71,4 +72,4 @@ jobs:
- save_cache:
key: deps2-{{ .Branch }}
paths:
- "venv"
- "venv"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
target/
dbt_modules/
logs/
.DS_Store
.DS_Store
dbt_packages/
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# dbt_mailchimp_source v0.3.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_mailchimp_source v0.2.0

## 🚨 Breaking Change 🚨
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)
# Mailchimp (Source)

This package models Mailchimp data from [Fivetran's connector](https://fivetran.com/docs/applications/mailchimp). It uses data in the format described by [this ERD](https://fivetran.com/docs/applications/mailchimp/#schemainformation).
Expand All @@ -21,7 +21,7 @@ Add the following to your `packages.yml` file:
# packages.yml
packages:
- package: fivetran/mailchimp_source
version: [">=0.2.0", "<0.3.0"]
version: [">=0.3.0", "<0.4.0"]
```
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.
Expand Down
45 changes: 23 additions & 22 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
name: 'mailchimp_source'
version: '0.2.0'
version: '0.3.0'

config-version: 2

models:
mailchimp_source:
+materialized: table
+schema: stg_mailchimp
tmp:
+materalized: view
mailchimp_source:
+materialized: table
+schema: stg_mailchimp
tmp:
+materalized: view

vars:
mailchimp_source:
automation: "{{ source('mailchimp','automation') }}"
automation_email: "{{ source('mailchimp','automation_email') }}"
automation_recipient: "{{ source('mailchimp','automation_recipient') }}"
automation_recipient_activity: "{{ source('mailchimp','automation_recipient_activity') }}"
campaign: "{{ source('mailchimp','campaign') }}"
campaign_recipient: "{{ source('mailchimp','campaign_recipient') }}"
campaign_recipient_activity: "{{ source('mailchimp','campaign_recipient_activity') }}"
mailchimp_segment: "{{ source('mailchimp','segment') }}"
segment_member: "{{ source('mailchimp','segment_member') }}"
list: "{{ source('mailchimp','list') }}"
member: "{{ source('mailchimp','member') }}"
unsubscribe: "{{ source('mailchimp','unsubscribe') }}"
mailchimp__members_pass_through_columns: []
mailchimp_using_segments: True
mailchimp_using_automations: True
mailchimp_source:
automation: "{{ source('mailchimp','automation') }}"
automation_email: "{{ source('mailchimp','automation_email') }}"
automation_recipient: "{{ source('mailchimp','automation_recipient') }}"
automation_recipient_activity: "{{ source('mailchimp','automation_recipient_activity') }}"
campaign: "{{ source('mailchimp','campaign') }}"
campaign_recipient: "{{ source('mailchimp','campaign_recipient') }}"
campaign_recipient_activity: "{{ source('mailchimp','campaign_recipient_activity') }}"
mailchimp_segment: "{{ source('mailchimp','segment') }}"
segment_member: "{{ source('mailchimp','segment_member') }}"
list: "{{ source('mailchimp','list') }}"
member: "{{ source('mailchimp','member') }}"
unsubscribe: "{{ source('mailchimp','unsubscribe') }}"
mailchimp__members_pass_through_columns: []
mailchimp_using_segments: true
mailchimp_using_automations: true
require-dbt-version: [">=1.0.0", "<2.0.0"]
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.2
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.
4 changes: 2 additions & 2 deletions 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"]
- package: fivetran/fivetran_utils
version: [">=0.3.0", "<0.4.0"]

0 comments on commit bd39aa5

Please sign in to comment.