-
Notifications
You must be signed in to change notification settings - Fork 79
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
[Feature] Display the model-level constraints in the documentation generated by dbt #507
Comments
Thanks for reaching out @salimmoulouel ! It sounds like you have two asks (please correct me if I'm misunderstanding!):
Assuming that complete documentation is your main ask here, I'm going to transfer this issue to dbt-docs for further consideration. 1. Display the model-level constraints in the documentation generated by dbtYou want the documentation website ( 2. Multiple primary key constraints at the column levelI don't remember off the top of my head, but I think there are technical reasons for us not supporting this. Feel free to open up a separate issue for this one if you'd like, but I'm guessing we'd close as "won't do".
|
For the initial request: |
Currently, the docs have five main sections:
And none of those sections includes model-level constraints like these: Does that sound right? If so, would adding a new section for model-level constraints solve this for you? |
Here's the files + commands I'm using to see how this is behaving currently:
|
sorry for the late answer, i Think yes, that would be perfect, thank you. |
Do you believe this is a challenge we can resolve in the coming days? This matter pertains to a proof of concept (POC) that, if successful, will guide several teams within our company toward adopting dbt. |
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days. |
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers. |
Adding primary key and foreign key in dbt docs is needed by a lot of users. |
Is this your first time submitting a feature request?
Describe the feature
When I run dbt docs generate, it fails to include constraints defined at the model level in the documentation. For instance, if I establish a primary key at the model level, this information isn't reflected in the documentation. Instead, it only appears when I define the primary key at the column constraint level. However, because I'm utilizing dbt-bigquery, I'm restricted to declaring only one primary key field at the column level. This necessitates the declaration of primary keys at the model level, thereby creating a discrepancy in the documentation.
Describe alternatives you've considered
To enhance the documentation process in dbt for dbt-bigquery, consider implementing the ability to define multiple primary key constraints at the column level while also ensuring that primary key constraints established at the model level are accurately reported in the documentation. This improvement would streamline the documentation process and provide comprehensive information about the primary keys used in the data models.
Who will this benefit?
No response
Are you interested in contributing this feature?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: