Skip to content

Commit

Permalink
Merge pull request #21 from fivetran/MagicBot_8ccfdd643d
Browse files Browse the repository at this point in the history
[MagicBot] Bumping package version
  • Loading branch information
fivetran-reneeli authored Dec 20, 2021
2 parents deb5cce + 1d54843 commit e61de90
Show file tree
Hide file tree
Showing 46 changed files with 81 additions and 69 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"
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/
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# dbt_quickbooks_source (next release)
# dbt_quickbooks_source v0.4.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_quickbooks_source v0.1.0 -> v0.3.0
Refer to the relevant release notes on the Github repository for specific details for the previous releases. Thank you!
Refer to the relevant release notes on the Github repository for specific details for the previous releases. Thank you!
7 changes: 2 additions & 5 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) ![dbt logo and version](https://img.shields.io/static/v1?logo=dbt&label=dbt-version&message=>=1.0.0,<2.0.0&color=orange)
# QuickBooks Source

This package models QuickBooks data from [Fivetran's connector](https://fivetran.com/docs/applications/quickbooks). It uses data in the format described by [this ERD](https://fivetran.com/docs/applications/quickbooks#schemainformation).
Expand All @@ -18,17 +18,14 @@ This package contains staging models, designed to work simultaneously with our [
* ID primary keys are prefixed with the name of the table. For example, the account table's ID column is renamed to `account_id`.

## Installation Instructions

`dbt_quickbooks_source` currently supports `dbt 0.20.x`.

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.

Include in your `packages.yml`

```yaml
packages:
- package: fivetran/quickbooks_source
version: [">=0.3.0", "<0.4.0"]
version: [">=0.4.0", "<0.5.0"]
```
## Configuration
Expand Down
118 changes: 59 additions & 59 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
config-version: 2

name: 'quickbooks_source'
version: '0.3.0'
version: '0.4.0'

require-dbt-version: ">=0.20.0"
require-dbt-version: [">=1.0.0", "<2.0.0"]

models:
quickbooks_source:
Expand All @@ -14,64 +14,64 @@ models:

vars:
quickbooks_source:
account: "{{ source('quickbooks','account') }}"
address: "{{ source('quickbooks','address') }}"
bill_line: "{{ source('quickbooks','bill_line') }}"
bill_linked_txn: "{{ source('quickbooks','bill_linked_txn') }}"
bill_payment_line: "{{ source('quickbooks','bill_payment_line') }}"
bill_payment: "{{ source('quickbooks','bill_payment') }}"
bill: "{{ source('quickbooks','bill') }}"
bundle_item: "{{ source('quickbooks','bundle_item') }}"
bundle: "{{ source('quickbooks','bundle') }}"
credit_memo_line: "{{ source('quickbooks','credit_memo_line') }}"
credit_memo: "{{ source('quickbooks','credit_memo') }}"
customer: "{{ source('quickbooks','customer') }}"
department: "{{ source('quickbooks','department') }}"
deposit_line: "{{ source('quickbooks','deposit_line') }}"
deposit: "{{ source('quickbooks','deposit') }}"
estimate: "{{ source('quickbooks','estimate') }}"
estimate_line: "{{ source('quickbooks','estimate_line') }}"
invoice_line: "{{ source('quickbooks','invoice_line') }}"
invoice_line_bundle: "{{ source('quickbooks','invoice_line_bundle') }}"
invoice_linked_txn: "{{ source('quickbooks','invoice_linked_txn') }}"
invoice: "{{ source('quickbooks','invoice') }}"
item: "{{ source('quickbooks','item') }}"
journal_entry_line: "{{ source('quickbooks','journal_entry_line') }}"
journal_entry: "{{ source('quickbooks','journal_entry') }}"
payment_line: "{{ source('quickbooks','payment_line') }}"
payment: "{{ source('quickbooks','payment') }}"
purchase_line: "{{ source('quickbooks','purchase_line') }}"
purchase: "{{ source('quickbooks','purchase') }}"
purchase_order_line: "{{ source('quickbooks','purchase_order_line') }}"
purchase_order: "{{ source('quickbooks','purchase_order') }}"
purchase_order_linked_txn: "{{ source('quickbooks','purchase_order_linked_txn') }}"
refund_receipt_line: "{{ source('quickbooks','refund_receipt_line') }}"
refund_receipt: "{{ source('quickbooks','refund_receipt') }}"
sales_receipt_line: "{{ source('quickbooks','sales_receipt_line') }}"
sales_receipt: "{{ source('quickbooks','sales_receipt') }}"
transfer: "{{ source('quickbooks','transfer') }}"
vendor_credit_line: "{{ source('quickbooks','vendor_credit_line') }}"
vendor_credit: "{{ source('quickbooks','vendor_credit') }}"
vendor: "{{ source('quickbooks','vendor') }}"
account: "{{ source('quickbooks','account') }}"
address: "{{ source('quickbooks','address') }}"
bill_line: "{{ source('quickbooks','bill_line') }}"
bill_linked_txn: "{{ source('quickbooks','bill_linked_txn') }}"
bill_payment_line: "{{ source('quickbooks','bill_payment_line') }}"
bill_payment: "{{ source('quickbooks','bill_payment') }}"
bill: "{{ source('quickbooks','bill') }}"
bundle_item: "{{ source('quickbooks','bundle_item') }}"
bundle: "{{ source('quickbooks','bundle') }}"
credit_memo_line: "{{ source('quickbooks','credit_memo_line') }}"
credit_memo: "{{ source('quickbooks','credit_memo') }}"
customer: "{{ source('quickbooks','customer') }}"
department: "{{ source('quickbooks','department') }}"
deposit_line: "{{ source('quickbooks','deposit_line') }}"
deposit: "{{ source('quickbooks','deposit') }}"
estimate: "{{ source('quickbooks','estimate') }}"
estimate_line: "{{ source('quickbooks','estimate_line') }}"
invoice_line: "{{ source('quickbooks','invoice_line') }}"
invoice_line_bundle: "{{ source('quickbooks','invoice_line_bundle') }}"
invoice_linked_txn: "{{ source('quickbooks','invoice_linked_txn') }}"
invoice: "{{ source('quickbooks','invoice') }}"
item: "{{ source('quickbooks','item') }}"
journal_entry_line: "{{ source('quickbooks','journal_entry_line') }}"
journal_entry: "{{ source('quickbooks','journal_entry') }}"
payment_line: "{{ source('quickbooks','payment_line') }}"
payment: "{{ source('quickbooks','payment') }}"
purchase_line: "{{ source('quickbooks','purchase_line') }}"
purchase: "{{ source('quickbooks','purchase') }}"
purchase_order_line: "{{ source('quickbooks','purchase_order_line') }}"
purchase_order: "{{ source('quickbooks','purchase_order') }}"
purchase_order_linked_txn: "{{ source('quickbooks','purchase_order_linked_txn') }}"
refund_receipt_line: "{{ source('quickbooks','refund_receipt_line') }}"
refund_receipt: "{{ source('quickbooks','refund_receipt') }}"
sales_receipt_line: "{{ source('quickbooks','sales_receipt_line') }}"
sales_receipt: "{{ source('quickbooks','sales_receipt') }}"
transfer: "{{ source('quickbooks','transfer') }}"
vendor_credit_line: "{{ source('quickbooks','vendor_credit_line') }}"
vendor_credit: "{{ source('quickbooks','vendor_credit') }}"
vendor: "{{ source('quickbooks','vendor') }}"

#Variables if your company utilizes the below parent and child transactional tables.
using_address: True
using_bill: True
using_credit_memo: True
using_department: True
using_deposit: True
using_estimate: True
using_invoice: True
using_invoice_bundle: True
using_journal_entry: True
using_payment: True
using_refund_receipt: True
using_transfer: True
using_vendor_credit: True
using_sales_receipt: True
using_purchase_order: False
using_address: true
using_bill: true
using_credit_memo: true
using_department: true
using_deposit: true
using_estimate: true
using_invoice: true
using_invoice_bundle: true
using_journal_entry: true
using_payment: true
using_refund_receipt: true
using_transfer: true
using_vendor_credit: true
using_sales_receipt: true
using_purchase_order: false

clean-targets:
- target
- dbt_modules
- target
- dbt_modules
- dbt_packages
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.
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 e61de90

Please sign in to comment.