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

enabled config for semantic models #4219

Merged
merged 5 commits into from
Nov 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions website/docs/reference/resource-configs/enabled.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,20 +261,26 @@ Support for disabling semantic models has been added in dbt Core v1.7

<VersionBlock firstVersion="1.7">

<File name='semantic_models.yml'>

```yml
semantic_models:
- name: semantic_people
model: ref('people')
config:
enabled: false
<File name='dbt_project.yml'>

```yaml
semantic-models:
[<resource-path>](/reference/resource-configs/resource-path):
[+](/reference/resource-configs/plus-prefix)enabled: true | false
```

</File>

The `enabled` configuration can be nested under the `config` key.
<File name='models/semantic_models.yml'>

```yaml
semantic_models:
- name: [<semantic_model_name>]
[config](/reference/resource-properties/config):
enabled: true | false
```

</File>

</VersionBlock>

Expand All @@ -283,7 +289,7 @@ The `enabled` configuration can be nested under the `config` key.
</Tabs>

## Definition
An optional configuration for disabling models, seeds, snapshots, tests, and semantic models.
An optional configuration for enabling or disabling a resource.

* Default: true

Expand Down
Loading