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

Semantic model configs #4231

Merged
merged 9 commits into from
Oct 11, 2023
24 changes: 24 additions & 0 deletions website/docs/reference/resource-configs/enabled.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ default_value: true
{ label: 'Sources', value: 'sources', },
{ label: 'Metrics', value: 'metrics', },
{ label: 'Exposures', value: 'exposures', },
{ label: 'Semantic models', value: 'semantic models', },
]
}>
<TabItem value="models">
Expand Down Expand Up @@ -250,6 +251,29 @@ exposures:

</TabItem>

<TabItem value="semantic models">

<File name='semantic_models.yml'>

```yml
semantic_models:
- name: semantic_people
model: ref('people')
config:
matthewshaver marked this conversation as resolved.
Show resolved Hide resolved
enabled: false

```

</File>

<VersionBlock firstVersion="1.7">

The `enabled` configuration can be nested under the `config` key.

</VersionBlock>

</TabItem>

</Tabs>

## Definition
matthewshaver marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
32 changes: 32 additions & 0 deletions website/docs/reference/resource-configs/group.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This functionality is new in v1.5.
{ label: 'Tests', value: 'tests', },
{ label: 'Analyses', value: 'analyses', },
{ label: 'Metrics', value: 'metrics', },
{ label: 'Semantic models', value: 'semantic models', },
]
}>
<TabItem value="models">
Expand Down Expand Up @@ -265,6 +266,37 @@ metrics:

</TabItem>

<TabItem value="semantic models">

<File name='schema.yml'>

```yml
semantic_models:
- name: model_name
group: finance

```

</File>

<File name='dbt_project.yml'>

```yml
semantic_models:
[<resource-path>](resource-path):
+group: finance
```

</File>

<VersionBlock firstVersion="1.7">

The `group` configuration can be nested under the `config` key.

</VersionBlock>

</TabItem>

</Tabs>

## Definition
Expand Down
24 changes: 24 additions & 0 deletions website/docs/reference/resource-configs/meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ default_value: {}
{ label: 'Tests', value: 'tests', },
{ label: 'Analyses', value: 'analyses', },
{ label: 'Macros', value: 'macros', },
{ label: 'Semantic Models', value: 'semantic models', },
]
}>
<TabItem value="models">
Expand Down Expand Up @@ -172,6 +173,28 @@ exposures:

</TabItem>

<TabItem value="semantic models">
matthewshaver marked this conversation as resolved.
Show resolved Hide resolved

<File name='semantic_models.yml'>

```yml
semantic_models:
- name: semantic_people
model: ref('people')
config:
meta: {<dictionary>}

```
<VersionBlock firstVersion="1.7">

The `meta` configuration can be nested under the `config` key.

</VersionBlock>

</File>

</TabItem>

</Tabs>

## Definition
Expand Down Expand Up @@ -248,3 +271,4 @@ select 1 as id
```

</File>

Loading