-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow references in documentation #1437
Comments
Hey @jdreaver - thanks for the feature request! We're already tracking I think @beckjake or @cmcarthur suggested using You've also mentioned the Are you seeing something different? |
Thanks for the response @drewbanin! Ah I must have totally messed up my original test for the foreign key hyperlink feature. Womp womp. I'll go ahead and follow #1334. Thanks for the heads up! |
Feature
I've only been using
dbt
for a day, and it is fantastic!I searched the documentation and existing issues to see if this feature already exists, but I couldn't find it. If something like this already exists, my apologies, and please close this issue!
Feature description
When documenting a model, I'd like to be able to reference other
dbt
models. For example:Note the sentence
Points to the {{ ref('users') }} table
. Ideally, this would provide two benefits:dbt docs generate
.I'm not sure calling this function
ref()
is the best idea. We might wantdoc_ref()
that allows an argument for the model name likeref
, but also maybe another argument like a column name:Relation to tests
Clearly you can express this relationship via a test:
A test isn't quite sufficient for two reasons:
user_id
but no correspondingusers.id
. This is not uncommon in the data warehousing world when pulling/combining data from different sources.Who will this benefit?
Anyone who uses
dbt
to document their models would benefit from this. It would makedbt
's generated documentation more useful by adding hyperlinks to other models inside documentation and by making sure modifying a model doesn't break any upstream hyperlinks to it.The text was updated successfully, but these errors were encountered: