diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 552f698..9387b23 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -3,7 +3,7 @@ steps: key: "run-dbt-postgres" plugins: - docker#v3.13.0: - image: "python:3.8" + image: "python:3.10.13" shell: [ "/bin/bash", "-e", "-c" ] environment: - "BASH_ENV=/tmp/.bashrc" @@ -18,7 +18,7 @@ steps: key: "run_dbt_snowflake" plugins: - docker#v3.13.0: - image: "python:3.8" + image: "python:3.10.13" shell: [ "/bin/bash", "-e", "-c" ] environment: - "BASH_ENV=/tmp/.bashrc" @@ -35,7 +35,7 @@ steps: key: "run_dbt_bigquery" plugins: - docker#v3.13.0: - image: "python:3.8" + image: "python:3.10.13" shell: [ "/bin/bash", "-e", "-c" ] environment: - "BASH_ENV=/tmp/.bashrc" @@ -47,7 +47,7 @@ steps: key: "run_dbt_redshift" plugins: - docker#v3.13.0: - image: "python:3.8" + image: "python:3.10.13" shell: [ "/bin/bash", "-e", "-c" ] environment: - "BASH_ENV=/tmp/.bashrc" @@ -62,7 +62,7 @@ steps: key: "run_dbt_databricks" plugins: - docker#v3.13.0: - image: "python:3.8" + image: "python:3.10.13" shell: [ "/bin/bash", "-e", "-c" ] environment: - "BASH_ENV=/tmp/.bashrc" diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh index f3fa052..868c39b 100644 --- a/.buildkite/scripts/run_models.sh +++ b/.buildkite/scripts/run_models.sh @@ -17,6 +17,7 @@ echo `pwd` cd integration_tests dbt deps dbt seed --target "$db" --full-refresh +dbt source freshness --target "$db" || echo "...Only verifying freshness runs…" dbt run --target "$db" --full-refresh dbt test --target "$db" dbt run --vars '{asana__using_tags: false, asana__using_task_tags: false, asana_tag_identifier: missing, asana_task_tag_identifier: missing}' --target "$db" --full-refresh diff --git a/CHANGELOG.md b/CHANGELOG.md index 6179514..ab6212c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,29 @@ +# dbt_asana v0.9.0 +[PR #40](https://github.com/fivetran/dbt_asana/pull/40) includes the following updates: + +## Breaking Change for dbt Core < 1.9.6 + +> *Note: This is not relevant to Fivetran Quickstart users.* + +Migrated `freshness` from a top-level source property to a source `config` in alignment with [recent updates](https://github.com/dbt-labs/dbt-core/issues/11506) from dbt Core ([Asana Source v0.9.0](https://github.com/fivetran/dbt_asana_source/releases/tag/v0.9.0)). This will resolve the following deprecation warning that users running dbt >= 1.9.6 may have received: + +``` +[WARNING]: Deprecated functionality +Found `freshness` as a top-level property of `asana` in file +`models/src_asana.yml`. The `freshness` top-level property should be moved +into the `config` of `asana`. +``` + +**IMPORTANT:** Users running dbt Core < 1.9.6 will not be able to utilize freshness tests in this release or any subsequent releases, as older versions of dbt will not recognize freshness as a source `config` and therefore not run the tests. + +If you are using dbt Core < 1.9.6 and want to continue running Asana freshness tests, please elect **one** of the following options: + 1. (Recommended) Upgrade to dbt Core >= 1.9.6 + 2. Do not upgrade your installed version of the `asana` package. Pin your dependency on v0.8.3 in your `packages.yml` file. + 3. Utilize a dbt [override](https://docs.getdbt.com/reference/resource-properties/overrides) to overwrite the package's `asana` source and apply freshness via the previous release top-level property route. This will require you to copy and paste the entirety of the previous release `src_asana.yml` file and add an `overrides: asana_source` property. + +## Under the Hood +- Updates to ensure integration tests use latest version of dbt. + # dbt_asana v0.8.3 [PR #39](https://github.com/fivetran/dbt_asana/pull/39) includes the following updates: @@ -110,4 +136,4 @@ PR [#19](https://github.com/fivetran/dbt_asana/pull/19) introduced the following - 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_asana v0.1.0 -> v0.4.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! \ No newline at end of file diff --git a/README.md b/README.md index d9eb46c..d2e4071 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Include the following asana package version in your `packages.yml` file. ```yaml packages: - package: fivetran/asana - version: [">=0.8.0", "<0.9.0"] # we recommend using ranges to capture non-breaking changes automatically + version: [">=0.9.0", "<0.10.0"] # we recommend using ranges to capture non-breaking changes automatically ``` Do NOT include the `asana_source` package in this file. The transformation package itself has a dependency on it and will install the source package as well. @@ -127,7 +127,7 @@ This dbt package is dependent on the following dbt packages. These dependencies ```yml packages: - package: fivetran/asana_source - version: [">=0.8.0", "<0.9.0"] + version: [">=0.9.0", "<0.10.0"] - package: fivetran/fivetran_utils version: [">=0.4.0", "<0.5.0"] diff --git a/dbt_project.yml b/dbt_project.yml index fd3109d..bfcc303 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,6 +1,6 @@ config-version: 2 name: 'asana' -version: 0.8.3 +version: 0.9.0 require-dbt-version: [">=1.3.0", "<2.0.0"] models: asana: diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index 887ecdd..b74d77c 100644 --- a/integration_tests/ci/sample.profiles.yml +++ b/integration_tests/ci/sample.profiles.yml @@ -2,10 +2,6 @@ # HEY! This file is used in the dbt package integrations tests with Buildkite. # You should __NEVER__ check credentials into version control. Thanks for reading :) -config: - send_anonymous_usage_stats: False - use_colors: True - integration_tests: target: redshift outputs: diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index ed123ab..836ad80 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,6 +1,6 @@ config-version: 2 name: 'asana_integration_tests' -version: 0.8.3 +version: 0.9.0 profile: 'integration_tests' vars: asana_schema: asana_integrations_tests_03 @@ -84,4 +84,7 @@ seeds: dispatch: - macro_namespace: dbt_utils - search_order: ['spark_utils', 'dbt_utils'] \ No newline at end of file + search_order: ['spark_utils', 'dbt_utils'] + +flags: + send_anonymous_usage_stats: False diff --git a/integration_tests/requirements.txt b/integration_tests/requirements.txt index 96aef56..c9f6024 100644 --- a/integration_tests/requirements.txt +++ b/integration_tests/requirements.txt @@ -5,3 +5,4 @@ dbt-postgres>=1.3.0,<2.0.0 dbt-spark>=1.3.0,<2.0.0 dbt-spark[PyHive]>=1.3.0,<2.0.0 dbt-databricks>=1.3.0,<2.0.0 +certifi==2025.1.31 diff --git a/packages.yml b/packages.yml index e10a2c9..e171080 100644 --- a/packages.yml +++ b/packages.yml @@ -1,3 +1,3 @@ packages: - package: fivetran/asana_source - version: [">=0.8.0", "<0.9.0"] \ No newline at end of file + version: [">=0.9.0", "<0.10.0"]