gouline / dbt-metabase

dbt + Metabase integration
https://pypi.org/project/dbt-metabase/
MIT License
442 stars 63 forks source link

Relationships in dbt 1.0.0 #86

Closed soltanianalytics closed 2 years ago

soltanianalytics commented 2 years ago

It appears to me that this logic fails for dbt==1.0.0.

It seems that relationship tests don't contain the related model on the depends_on iterable anymore. It does appear in the refs iterable both pre and post-1.0.0, however only as simple ref string ('my_model_name') instead of a full unique identified (model.[project_name].[model_name]).

Has this been tested yet? Is there a favored approach?

I'd be happy to give this a go on the weekend with a PR, but I don't know the repository well and am wondering if I am simply missing something :)