datnguye / dbterd

Generate the ERD as a code from dbt artifacts
https://dbterd.datnguyen.de/
MIT License
198 stars 28 forks source link

[BUG] dbt run-metadata doesn't work with -s exposure:exposure_name #108

Closed RecMarkoL closed 4 months ago

RecMarkoL commented 4 months ago

Describe the bug When running dbterd run -s exposure:exposure_name I get a diagram of models related to that exposure. Prior to this I've ran dbt deps and dbt compile locally.

When I configure the dbt Cloud connection and run dbterd run-metadata -s exposure:exposure_name it returns nothing. I've tried multiple different syntaxes on the exposure name but can't get it working.

To Reproduce Steps to reproduce the behavior:

  1. Configure dbt Cloud environment
  2. Run dbterd run-metadata -s exposure:exposure_name

Expected behavior Returns a dbml model based on dbt Cloud Discovery API which contains models related to the exposure defined

Desktop (please complete the following information):

datnguye commented 4 months ago

Hi @RecMarkoL thanks for raising the issue. I will try to check it out asap assuming you’re using dbterd latest version, let me know otherwise 🙌

RecMarkoL commented 4 months ago

Yes, I'm using latest version of dbterd

datnguye commented 4 months ago

Thanks @RecMarkoL again! Confirmed it's a bug now 👍

It was a missing of passing the kwargs onto the 'parse tables' function. It's fixed now and will be released as soon as PR merged and get available in 1.13.4

datnguye commented 4 months ago

1.13.4 should be released now! Please help to check it outm feel free to reopen this issue if it's still persisted. Thanks again!