datnguye / dbterd

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

[BUG] --entity-name-format does not apply on refs #92

Closed marvingeerken closed 6 months ago

marvingeerken commented 6 months ago

Describe the bug Hey @datnguye

On the run-metadata command I've been using the --entity-name-format flag. It applies the format on the tables inside the output.dbml file. However it's not applied on the relationships. Hence the dbml compiler like dbdocs complains that it cant find the respective tables.

To Reproduce Steps to reproduce the behavior:

  1. dbterd run-metadata -o "./target/" --entity-name-format table
  2. dbdocs build "./target/output.dbml"

Expected behavior Selected entity-name-format on Refs.

Thanks for looking into it! Best, Marvin

datnguye commented 6 months ago

Thanks @marvingeerken for this finding! 🙌

Let me work it out this weekend 🏃

datnguye commented 6 months ago

@marvingeerken It should be fixed now in 1.11.1 (or 1.10.2)!