You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues, and I could not find an existing issue for this feature
I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion
Describe the feature
The documentation for defining groups at https://docs.getdbt.com/docs/build/groups only shows a single example of defining a group, deeply nested within models/marts/finance/finance.yml. My natural thought when actually laying out my project (as a dbt beginner) was that it would be best to centrally define the groups, so they can be reused across different model subdirectories. And the most natural place (I thought) to put that was dbt_projects.yml. But I wasn't sure if it was possible, or exactly how it should look, so I Googled and found the idea was considered and rejected in favor of some alternative practices: dbt-labs/dbt-core#8983
The rationale for rejection makes sense, but it leaves the existing documentation with room for improvement IMHO for answering this (I assume?) common question. I think there are multiple areas of documentation improvements that could be considered:
The above-linked issue suggests to place a _groups.yml file in the root of models, or alternatively in a groups directory that is included in model-paths. This would be useful to include as an example in the above-linked documentation for groups. I'm sure many people looking at that page wonder what the best way to centrally define groups would be?
The "How we structure our dbt projects" section doesn't mention groups at all. If there is a best practice to be defined here (and surely there is?) then this section of documentation could mention how to define groups. (For that matter, I don't think it even talks about access modifier best practices at all?)
Describe alternatives you've considered
No response
Who will this benefit?
Anyone new to dbt who wants to know the best practices for centrally defining a list of groups.
Are you interested in contributing this feature?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Is this your first time submitting a feature request?
Describe the feature
The documentation for defining groups at https://docs.getdbt.com/docs/build/groups only shows a single example of defining a group, deeply nested within
models/marts/finance/finance.yml
. My natural thought when actually laying out my project (as a dbt beginner) was that it would be best to centrally define the groups, so they can be reused across different model subdirectories. And the most natural place (I thought) to put that wasdbt_projects.yml
. But I wasn't sure if it was possible, or exactly how it should look, so I Googled and found the idea was considered and rejected in favor of some alternative practices: dbt-labs/dbt-core#8983The rationale for rejection makes sense, but it leaves the existing documentation with room for improvement IMHO for answering this (I assume?) common question. I think there are multiple areas of documentation improvements that could be considered:
_groups.yml
file in the root ofmodels
, or alternatively in agroups
directory that is included inmodel-paths
. This would be useful to include as an example in the above-linked documentation forgroups
. I'm sure many people looking at that page wonder what the best way to centrally define groups would be?groups
at all. If there is a best practice to be defined here (and surely there is?) then this section of documentation could mention how to define groups. (For that matter, I don't think it even talks about access modifier best practices at all?)Describe alternatives you've considered
No response
Who will this benefit?
Anyone new to dbt who wants to know the best practices for centrally defining a list of groups.
Are you interested in contributing this feature?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: