From de3897e4af34a3a252aaa1ecc55cd69d346d4734 Mon Sep 17 00:00:00 2001 From: James Schurig Date: Wed, 24 Apr 2024 17:18:42 -0600 Subject: [PATCH 1/3] feat: Add model node name to query tags. --- macros/query_tags.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/macros/query_tags.sql b/macros/query_tags.sql index 9a6b7b3..f62d651 100644 --- a/macros/query_tags.sql +++ b/macros/query_tags.sql @@ -36,6 +36,7 @@ {%- do query_tag.update( app='dbt', dbt_snowflake_query_tags_version='2.3.3', + node=model.name, ) -%} {% if thread_id %} From 9e4a4ef88217987744e538ce96f0f01e4d663dd5 Mon Sep 17 00:00:00 2001 From: James Schurig Date: Wed, 24 Apr 2024 17:22:07 -0600 Subject: [PATCH 2/3] wanted to make the key name consistent with query_comment --- macros/query_tags.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/query_tags.sql b/macros/query_tags.sql index f62d651..12a30c9 100644 --- a/macros/query_tags.sql +++ b/macros/query_tags.sql @@ -36,7 +36,7 @@ {%- do query_tag.update( app='dbt', dbt_snowflake_query_tags_version='2.3.3', - node=model.name, + node_name=model.name, ) -%} {% if thread_id %} From cf1d07f1b5d2caf3c9a6411afa0fc9549d3c3483 Mon Sep 17 00:00:00 2001 From: James Schurig Date: Wed, 24 Apr 2024 17:27:52 -0600 Subject: [PATCH 3/3] Adding changie changelog --- .changes/unreleased/Features-20240424-172713.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changes/unreleased/Features-20240424-172713.yaml diff --git a/.changes/unreleased/Features-20240424-172713.yaml b/.changes/unreleased/Features-20240424-172713.yaml new file mode 100644 index 0000000..de5edb1 --- /dev/null +++ b/.changes/unreleased/Features-20240424-172713.yaml @@ -0,0 +1,6 @@ +kind: Features +body: Added model_name to default query tags +time: 2024-04-24T17:27:13.894775-06:00 +custom: + Author: jnschurig + PR: "25"