From e781afb87253c86c7781df2ce7da96b44c0dfe44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Thu, 1 Aug 2024 08:55:27 -0600 Subject: [PATCH] fix: Address dbt deprecation warning by moving config from the profiles to `dbt_project.yml` --- dbt_ext/dbt_files/bundle/transform/dbt_project.yml | 3 +++ dbt_ext/dbt_files/profiles/duckdb/profiles.yml | 3 --- dbt_ext/dbt_files/profiles/postgres/profiles.yml | 3 --- dbt_ext/dbt_files/profiles/redshift/profiles.yml | 3 --- dbt_ext/dbt_files/profiles/snowflake/profiles.yml | 3 --- 5 files changed, 3 insertions(+), 12 deletions(-) diff --git a/dbt_ext/dbt_files/bundle/transform/dbt_project.yml b/dbt_ext/dbt_files/bundle/transform/dbt_project.yml index cd7403d..5fc618f 100644 --- a/dbt_ext/dbt_files/bundle/transform/dbt_project.yml +++ b/dbt_ext/dbt_files/bundle/transform/dbt_project.yml @@ -3,6 +3,9 @@ version: '1.0' profile: meltano config-version: 2 require-dbt-version: [">=1.0.0", "<2.0.0"] +flags: + send_anonymous_usage_stats: False + use_colors: True model-paths: - models analysis-paths: diff --git a/dbt_ext/dbt_files/profiles/duckdb/profiles.yml b/dbt_ext/dbt_files/profiles/duckdb/profiles.yml index 1819f18..3cad674 100644 --- a/dbt_ext/dbt_files/profiles/duckdb/profiles.yml +++ b/dbt_ext/dbt_files/profiles/duckdb/profiles.yml @@ -1,6 +1,3 @@ -config: - send_anonymous_usage_stats: False - use_colors: True meltano: target: "{{ env_var('MELTANO_ENVIRONMENT', 'dev') }}" outputs: diff --git a/dbt_ext/dbt_files/profiles/postgres/profiles.yml b/dbt_ext/dbt_files/profiles/postgres/profiles.yml index 72f69d9..df9912f 100644 --- a/dbt_ext/dbt_files/profiles/postgres/profiles.yml +++ b/dbt_ext/dbt_files/profiles/postgres/profiles.yml @@ -1,7 +1,4 @@ # Postgres config reference: -config: - send_anonymous_usage_stats: False - use_colors: True meltano: target: "{{ env_var('MELTANO_ENVIRONMENT', 'dev') }}" outputs: diff --git a/dbt_ext/dbt_files/profiles/redshift/profiles.yml b/dbt_ext/dbt_files/profiles/redshift/profiles.yml index 19762ed..e0b358d 100644 --- a/dbt_ext/dbt_files/profiles/redshift/profiles.yml +++ b/dbt_ext/dbt_files/profiles/redshift/profiles.yml @@ -1,6 +1,3 @@ -config: - send_anonymous_usage_stats: False - use_colors: True meltano: target: "{{ env_var('MELTANO_ENVIRONMENT', 'dev') }}" outputs: diff --git a/dbt_ext/dbt_files/profiles/snowflake/profiles.yml b/dbt_ext/dbt_files/profiles/snowflake/profiles.yml index a5e52a1..a0373c9 100644 --- a/dbt_ext/dbt_files/profiles/snowflake/profiles.yml +++ b/dbt_ext/dbt_files/profiles/snowflake/profiles.yml @@ -2,9 +2,6 @@ # # Warning: Do not store credentials in this file unless you've take the necessary steps to remove # this file from your git commit. -config: - send_anonymous_usage_stats: False - use_colors: True meltano: target: "{{ env_var('MELTANO_ENVIRONMENT', 'dev') }}" # The default profile name if no other profile is selected. outputs: