Closed akerone closed 7 months ago
Thanks for proposing this idea @akerone ! 🧠
We don't view this as the preview of dbt docs generate
. Instead, you can do any extra post-processing steps like in your example.
@akerone Thx for the code, I used it to create dbt docs with multiple projects with amazing success ;)
Hi @Nic3Guy ! I'm glad you could find it. I hope the title is descriptive enough to find for all of us that use "Option 4: Separate Team Repositories + One Documentation Repository".
Since it seems it won't be integrated into dbt, we'll have to keep close tabs on the release notes of each dbt release. Any changes to the structure of manifest.json
may break this script.
Is this your first time submitting a feature request?
Describe the feature
When having multiple projects and one documentation repository, many of those projects may use tables from others as sources. Right now, it is not possible to track down this in the dbt docs Lineage Graph.
We'd like to see the full lineage of a table across multiple projects.
Describe alternatives you've considered
The alternative is going to the "Database" tab, look for the source, find the repeated name, and click on the right one to find the model.
Who will this benefit?
This will benefit anyone who uses
dbt docs generate
with multiple projects in the packages.ymlAre you interested in contributing this feature?
Yes, check the code below.
Anything else?
The following python script creates a new version of the manifest.json that solves this issue in dbt 1.7.8
This is working for me as an extra step, but I think that it sould be integrated as a --option of the
dbt docs generate
command.