-
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
Provide test name and kwargs in test nodes in the manifest #1154
Comments
This is prioritized for our Wilt Chamberlain release. If you want to feel sad, have a look at the code responsible for rendering column tests in the docs site. The docs site needs to parse test attributes out of generated test names because dbt is not currently encoding this information in the manifest in a structured way. In order to delete all of this code, as well as support accepted_values tests, we should add a structured dict to
The docs site is going to need to semantically know what In the future, I'd like to make schema tests capable of generating their own descriptions. This would help us render custom schema test information in the docs site. Out of scope for this particular issue, but worth keeping in mind. Feature spec:Include a
eg:
I think ideally, the This will enable us to add accepted values to the docs site, as well as clean up some really gnarly code around relationships tests. For custom data tests, that field should look like:
|
Kicking this out of Wilt Chamberlain and into Louisa May Alcott |
…nclude-name-kwargs add test metadata for schema tests, add test tests (#1154)
fyi the corresponding fix for this in the autogenerated docs site was merged and will be live in 0.15.0 Thanks for the initial request - hope you're doing well @foundinblank :) |
Feature
Feature description
In the documentation website, the columns box shows three different types of built-in schema tests: P, U, N (primary key, unique, not_null). But not for the fourth built-in schema test,
accepted_values
. It also doesn't show any custom schema tests.Who will this benefit?
Anyone who uses
accepted_values
and was expecting to see it in their docs site! For custom schema tests, a single letter would need to be defined...or just stuff the name of it into the Tests column. 🙂Link to code: https://github.com/fishtown-analytics/dbt-docs/blob/master/src/app/docs/model.html#L126-L134
The text was updated successfully, but these errors were encountered: