-
Notifications
You must be signed in to change notification settings - Fork 982
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
Clarify which node / resource types support node_color
#4493
Conversation
Resolves #4492
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
hey @dbeatty10 ! could i ask you to review this pr to make sure it addresses your issues? |
hey @dbeatty10 wanted to check in on what your thoughts were on this pr? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add example code for node_color: color_id
for each of these node types?
- models
- seeds
- snapshots
- analyses
Per #4492 (comment), these are the (4) node / resource types that support using node_color
.
And also make sure the example configuration appears in both of these file examples for each node type?
dbt_project.yml
schema.yml
So (8) places total 😅
Here's the only one out of the eight that exists currently:
models/schema.yml
version: 2
models:
- name: model_name
docs:
show: true | false
node_color: "black"
To be consistent with example code for other configs/properties, we'd probably want to change "black"
to a placeholder like color_id
.
Co-authored-by: Doug Beatty <[email protected]>
hey @dbeatty10 amazing feedback! i've added it here and folded it all in. one thing i think we should add:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the same suggestion (4) times -- once for each of the (4) *-properties.md
files.
Didn't make the same suggestion for resource-configs/docs.md
because it isn't currently using the <...>
convention.
@@ -206,7 +211,7 @@ models: | |||
|
|||
The `docs` attribute now supports `node_color` to customize the display color of some node types in the DAG within dbt docs. You can define node colors in the files below and apply overrides where needed. | |||
|
|||
`node_color` hiearchy: | |||
`node_color` hierarchy: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eagle eyes! 🦅
node_color
Co-authored-by: Doug Beatty <[email protected]>
Co-authored-by: Doug Beatty <[email protected]>
Co-authored-by: Doug Beatty <[email protected]>
Co-authored-by: Doug Beatty <[email protected]>
Good catch! Makes sense to do both of these:
|
clarifies which node type supports
node_color
. Resolves #4492