diff --git a/.changes/unreleased/Features-20230623-141155.yaml b/.changes/unreleased/Features-20230623-141155.yaml new file mode 100644 index 0000000..ad34fe3 --- /dev/null +++ b/.changes/unreleased/Features-20230623-141155.yaml @@ -0,0 +1,6 @@ +kind: Features +body: Add full_refresh, which and invocation_command to comment +time: 2023-06-23T14:11:55.151949-07:00 +custom: + Author: NiallRees + PR: "15" diff --git a/macros/query_comment.sql b/macros/query_comment.sql index c7ba22a..2b18b1d 100644 --- a/macros/query_comment.sql +++ b/macros/query_comment.sql @@ -23,8 +23,16 @@ node_resource_type=node.resource_type, node_meta=node.config.meta, node_tags=node.tags, + full_refresh=flags.FULL_REFRESH, + which=flags.WHICH, ) -%} + {%- if flags.INVOCATION_COMMAND -%} + {%- do comment_dict.update( + invocation_command=flags.INVOCATION_COMMAND + ) -%} + {%- endif -%} + {%- if node.resource_type != ('seed') -%} {# Otherwise this throws an error saying 'Seeds cannot depend on other nodes.' #} {%- if node.refs is defined -%} {% set refs = [] %}