feat: add docs config for sources#12646
Open
chinar-amrutkar wants to merge 2 commits intodbt-labs:mainfrom
Open
feat: add docs config for sources#12646chinar-amrutkar wants to merge 2 commits intodbt-labs:mainfrom
chinar-amrutkar wants to merge 2 commits intodbt-labs:mainfrom
Conversation
Add 'docs' config (show, node_color) support for sources. This allows users to: 1. Control show/hide behavior in dbt docs for sources 2. Set node_color for source nodes in the lineage graph Also adds source description to catalog metadata. Fixes dbt-labs#12023
Contributor
Additional Artifact Review RequiredChanges to artifact directory files requires at least 2 approvals from core team members. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #12023
Problem
The
docsproperty is not working for sources. Currently, users cannot controlshowor setnode_colorfor sources in dbt docs. This is problematic for users with medallion architecture (bronze > silver > gold) where sources can appear in multiple packages - they need to distinguish sources visually in the lineage graph.Solution
This PR adds
docsconfig support to sources:docs: Docsfield (withshow: boolandnode_color: Optional[str]), matching the existing model configurationChecklist