Skip to content

Commit

Permalink
Merge pull request #9 from fivetran/test/distribution-contact
Browse files Browse the repository at this point in the history
Updated test for `stg_qualtrics__distribution_contact`
  • Loading branch information
fivetran-avinash authored Aug 26, 2024
2 parents 36dfc65 + 41c1400 commit 4fb31e2
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 51 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ dbt_modules/
logs/
env/
package-lock.yml
dbt_packages/
dbt_packages/
.DS_Store
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# v0.2.1 dbt_qualtrics_source
# dbt_qualtrics_source v0.2.2
[PR #9](https://github.com/fivetran/dbt_qualtrics_source/pull/9) includes the following updates:

## Bug Fix
- Updated unique combination of columns test on `stg_qualtrics__distribution_contact` to include `contact_lookup_id`. [This is due to a connector update](https://fivetran.com/docs/connectors/applications/qualtrics/changelog#january2024) that changes the primary composite key of the `distribution_contact` source table to include `contact_lookup_id`. ([PR #8](https://github.com/fivetran/dbt_qualtrics_source/pull/8))

## Contributors
- [@dmcmtntp](https://github.com/dmcmtntp) ([PR #8](https://github.com/fivetran/dbt_qualtrics_source/pull/8))

# dbt_qualtrics_source v0.2.1

[PR #6](https://github.com/fivetran/dbt_qualtrics_source/pull/6) includes the following updates:

Expand All @@ -9,7 +18,7 @@
## Under the Hood
- Updated the integration tests seed `survey_response` to test both possible values for `finished`.

# v0.2.0 dbt_qualtrics_source
# dbt_qualtrics_source v0.2.0

[PR #5](https://github.com/fivetran/dbt_qualtrics_source/pull/5) includes the following updates:

Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'qualtrics_source'
version: '0.2.1'
version: '0.2.2'
config-version: 2
require-dbt-version: [">=1.3.0", "<2.0.0"]

Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

47 changes: 10 additions & 37 deletions docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/run_results.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions integration_tests/ci/sample.profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ integration_tests:
pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}"
dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}"
port: 5439
schema: qualtrics_source_integration_tests_02
schema: qualtrics_source_integration_tests_03
threads: 8
bigquery:
type: bigquery
method: service-account-json
project: 'dbt-package-testing'
schema: qualtrics_source_integration_tests_02
schema: qualtrics_source_integration_tests_03
threads: 8
keyfile_json: "{{ env_var('GCLOUD_SERVICE_KEY') | as_native }}"
snowflake:
Expand All @@ -33,7 +33,7 @@ integration_tests:
role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}"
database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}"
warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}"
schema: qualtrics_source_integration_tests_02
schema: qualtrics_source_integration_tests_03
threads: 8
postgres:
type: postgres
Expand All @@ -42,13 +42,13 @@ integration_tests:
pass: "{{ env_var('CI_POSTGRES_DBT_PASS') }}"
dbname: "{{ env_var('CI_POSTGRES_DBT_DBNAME') }}"
port: 5432
schema: qualtrics_source_integration_tests_02
schema: qualtrics_source_integration_tests_03
threads: 8
databricks:
catalog: "{{ env_var('CI_DATABRICKS_DBT_CATALOG') }}"
host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}"
http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}"
schema: qualtrics_source_integration_tests_02
schema: qualtrics_source_integration_tests_03
threads: 2
token: "{{ env_var('CI_DATABRICKS_DBT_TOKEN') }}"
type: databricks
4 changes: 2 additions & 2 deletions integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: 'qualtrics_source_integration_tests'
version: '0.2.1'
version: '0.2.2'
profile: 'integration_tests'
config-version: 2

vars:
qualtrics_schema: qualtrics_source_integration_tests_02
qualtrics_schema: qualtrics_source_integration_tests_03
qualtrics__using_core_contacts: true
qualtrics__using_core_mailing_lists: true

Expand Down
1 change: 1 addition & 0 deletions models/stg_qualtrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ models:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- contact_id
- contact_lookup_id
- distribution_id
- source_relation
columns:
Expand Down

0 comments on commit 4fb31e2

Please sign in to comment.