Skip to content

Commit

Permalink
Merge pull request #18 from fivetran/MagicBot_2a56cdbb88
Browse files Browse the repository at this point in the history
[MagicBot] Bumping package version
  • Loading branch information
fivetran-joemarkiewicz authored Jul 27, 2021
2 parents bc449a6 + 8f10211 commit c8506ae
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 15 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,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
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +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)
# Salesforce ([docs](https://dbt-salesforce.netlify.app/))

This package models Salesforce data from [Fivetran's connector](https://fivetran.com/docs/applications/salesforce). It uses data in the format described by [this ERD](https://docs.google.com/presentation/d/1fB6aCiX_C1lieJf55TbS2v1yv9sp-AHNNAh2x7jnJ48/edit#slide=id.g3cb9b617d1_0_237).
Expand All @@ -19,6 +20,14 @@ salesforce\_\_opportunity\_enhanced|Each record represents an opportunity, enric
## Installation Instructions
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/salesforce
version: [">=0.4.0", "<0.5.0"]
```
## Configuration
By default, this package looks for your Salesforce data in the `salesforce` schema of your [target database](https://docs.getdbt.com/docs/running-a-dbt-project/using-the-command-line-interface/configure-your-profile). If this is not where your Salesforce data is, add the following configuration to your `dbt_project.yml` file:

Expand Down
16 changes: 4 additions & 12 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
config-version: 2

name: 'salesforce'
version: '0.3.0'

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

version: '0.4.0'
require-dbt-version: [">=0.20.0"]
models:
salesforce:
materialized: table
intermediate:
materialized: ephemeral

vars:
salesforce:
account: "{{ ref('stg_salesforce__account') }}"
opportunity: "{{ ref('stg_salesforce__opportunity') }}"
user: "{{ ref('stg_salesforce__user') }}"
user_role: "{{ ref('stg_salesforce__user_role') }}"

# Use to add more field to the opportunity enhanced table.
# Note these columns must be present in the downstream account table or user table
opportunity_enhanced_pass_through_columns: []

clean-targets:
- target
- dbt_modules
- target
- dbt_modules
2 changes: 1 addition & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'salesforce_integration_tests'
version: '0.3.0'
version: '0.4.0'
config-version: 2

profile: 'integration_tests'
Expand Down
4 changes: 3 additions & 1 deletion integration_tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
dbt==0.19.0
dbt==0.20.0
dbt-spark==0.20.0
dbt-spark[PyHive]==0.20.0
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/salesforce_source
version: [">=0.2.1", "<0.3.0"]
version: [">=0.3.0", "<0.4.0"]

0 comments on commit c8506ae

Please sign in to comment.