Skip to content

Commit dd3b9fe

Browse files
fix: add deduplication for test_models_owners
Address CodeRabbit review comment: restore the unique filter for test_models_owners to ensure no duplicate owners appear in model_owners, maintaining backward compatibility with the original behavior. Co-Authored-By: Yosef Arbiv <[email protected]>
1 parent 70cbe55 commit dd3b9fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

macros/edr/dbt_artifacts/upload_dbt_tests.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
{% endif %}
146146
{%- endif -%}
147147
{%- endif -%}
148+
{% set test_models_owners = test_models_owners | unique | list %}
148149

149150
{%- if primary_test_model_database is none or primary_test_model_schema is none -%}
150151
{# This is mainly here to support singular test cases with multiple referred models, in this case the tested node is being used to extract the db and schema #}

0 commit comments

Comments
 (0)