Skip to content

Commit

Permalink
Merge branch 'current' into project-order
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewshaver authored Nov 13, 2023
2 parents 5d55661 + af6e2d1 commit 30020d2
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 19 deletions.
43 changes: 25 additions & 18 deletions website/docs/reference/resource-configs/group.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ Support for grouping models was added in dbt Core v1.5

```yml
models:

[<resource-path>](resource-path):
+group: finance
+group: GROUP_NAME

```


Expand All @@ -46,8 +48,9 @@ models:
version: 2

models:
- name: model_name
group: finance
- name: MODEL_NAME
group: GROUP

```

</File>
Expand All @@ -57,7 +60,7 @@ models:
```sql

{{ config(
group='finance'
group='GROUP_NAME'
) }}

select ...
Expand Down Expand Up @@ -85,7 +88,7 @@ Support for grouping seeds was added in dbt Core v1.5
```yml
models:
[<resource-path>](resource-path):
+group: finance
+group: GROUP_NAME
```
</File>
Expand All @@ -94,8 +97,8 @@ models:
```yml
seeds:
- name: [<seed-name>]
group: finance
- name: [SEED_NAME]
group: GROUP_NAME
```
</File>
Expand All @@ -120,7 +123,7 @@ Support for grouping snapshots was added in dbt Core v1.5
```yml
snapshots:
[<resource-path>](resource-path):
+group: finance
+group: GROUP_NAME
```
</File>
Expand All @@ -131,7 +134,7 @@ snapshots:
{% snapshot [snapshot_name](snapshot_name) %}

{{ config(
group='finance'
group='GROUP_NAME'
) }}

select ...
Expand Down Expand Up @@ -161,7 +164,7 @@ Support for grouping tests was added in dbt Core v1.5
```yml
tests:
[<resource-path>](resource-path):
+group: finance
+group: GROUP_NAME
```
</File>
Expand All @@ -176,7 +179,7 @@ version: 2
tests:
- <test_name>:
config:
group: finance
group: GROUP_NAME
```
</File>
Expand All @@ -187,7 +190,7 @@ version: 2
{% test <testname>() %}

{{ config(
group='finance'
group='GROUP_NAME'
) }}

select ...
Expand All @@ -202,7 +205,7 @@ select ...

```sql
{{ config(
group='finance'
group='GROUP_NAME'
) }}
```

Expand All @@ -220,8 +223,8 @@ select ...
version: 2

analyses:
- name: <analysis_name>
group: finance
- name: ANALYSIS_NAME
group: GROUP_NAME
```
</File>
Expand All @@ -244,7 +247,7 @@ Support for grouping metrics was added in dbt Core v1.5
```yaml
metrics:
[<resource-path>](resource-path):
[+](plus-prefix)group: finance
[+](plus-prefix)group: GROUP_NAME
```
</File>
Expand All @@ -255,8 +258,8 @@ metrics:
version: 2

metrics:
- name: [<metric-name>]
group: finance
- name: [METRIC_NAME]
group: GROUP_NAME

```

Expand All @@ -280,20 +283,24 @@ Support for grouping semantic models has been added in dbt Core v1.7.
<File name='dbt_project.yml'>

```yaml

semantic-models:
[<resource-path>](resource-path):
[+](plus-prefix)group: GROUP_NAME

```

</File>

<File name='models/semantic_models.yml'>

```yaml

semantic_models:
- name: SEMANTIC_MODEL_NAME
group: GROUP_NAME


```

</File>
Expand Down
17 changes: 16 additions & 1 deletion website/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@
"destination": "/guides/debug-errors",
"permanent": true
},
{
"source": "/guides/best-practices/how-we-mesh/mesh-1-intro",
"destination": "/best-practices/how-we-mesh/mesh-1-intro",
"permanent": true
},
{
"source": "/guides/best-practices/how-we-mesh/mesh-2-structures",
"destination": "/best-practices/how-we-mesh/mesh-2-structures",
"permanent": true
},
{
"source": "/guides/best-practices/how-we-mesh/mesh-3-implementation",
"destination": "/best-practices/how-we-mesh/mesh-3-implementation",
"permanent": true
},
{
"source": "/guides/best-practices/how-we-build-our-metrics/semantic-layer-1-intro",
"destination": "/best-practices/how-we-build-our-metrics/semantic-layer-1-intro",
Expand Down Expand Up @@ -434,7 +449,7 @@
},
{
"source": "/guides/orchestration/set-up-ci/lint-on-push",
"destination": "/guides/set-up-ci",
"destination": " /guides/set-up-ci",
"permanent": true
},
{
Expand Down

0 comments on commit 30020d2

Please sign in to comment.