Skip to content
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

Merged
merged 15 commits into from
Jan 10, 2024

Conversation

mirnawong1
Copy link
Contributor

@mirnawong1 mirnawong1 commented Nov 16, 2023

clarifies which node type supports node_color. Resolves #4492

@mirnawong1 mirnawong1 requested a review from a team as a code owner November 16, 2023 16:38
Copy link

vercel bot commented Nov 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2024 6:00pm

@github-actions github-actions bot added content Improvements or additions to content size: x-small This change will take under 3 hours to fix. Docs team Authored by the Docs team @dbt Labs labels Nov 16, 2023
@mirnawong1
Copy link
Contributor Author

hey @dbeatty10 ! could i ask you to review this pr to make sure it addresses your issues?

@mirnawong1
Copy link
Contributor Author

hey @dbeatty10 wanted to check in on what your thoughts were on this pr?

Copy link
Contributor

@dbeatty10 dbeatty10 left a 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.

website/docs/reference/resource-configs/docs.md Outdated Show resolved Hide resolved
@github-actions github-actions bot added size: small This change will take 1 to 2 days to address and removed size: x-small This change will take under 3 hours to fix. labels Jan 10, 2024
@mirnawong1
Copy link
Contributor Author

hey @dbeatty10 amazing feedback! i've added it here and folded it all in. one thing i think we should add:

  • it looks like the ide dag doesn't reflect the node color changes and you need to run dbt docs generate to see them. is that right? if so, it's pretty manual and i wonder if i should let product know and also flag this in the docs that they should run the command to see it.

Copy link
Contributor

@dbeatty10 dbeatty10 left a 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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eagle eyes! 🦅

website/docs/reference/analysis-properties.md Outdated Show resolved Hide resolved
website/docs/reference/model-properties.md Outdated Show resolved Hide resolved
website/docs/reference/seed-properties.md Outdated Show resolved Hide resolved
website/docs/reference/snapshot-properties.md Outdated Show resolved Hide resolved
@dbeatty10 dbeatty10 changed the title Update docs.md Clarify which node / resource types support node_color Jan 10, 2024
@dbeatty10
Copy link
Contributor

one thing i think we should add:

  • it looks like the ide dag doesn't reflect the node color changes and you need to run dbt docs generate to see them. is that right? if so, it's pretty manual and i wonder if i should let product know and also flag this in the docs that they should run the command to see it.

Good catch! Makes sense to do both of these:

  1. Add any relevant instructions how to make any changes display (i.e., re-run dbt docs generate)
  2. Let product know

@mirnawong1 mirnawong1 enabled auto-merge January 10, 2024 17:54
@mirnawong1 mirnawong1 merged commit bcebadf into current Jan 10, 2024
7 checks passed
@mirnawong1 mirnawong1 deleted the mirnawong1-patch-12 branch January 10, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs January-2024 size: small This change will take 1 to 2 days to address
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update docs for node_color
3 participants