From 520c5a27a6737fd39c1d5316b8c5b0e947de96b5 Mon Sep 17 00:00:00 2001
From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com>
Date: Thu, 16 Nov 2023 08:11:33 -0700
Subject: [PATCH] `config` for semantic models (#4221)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
related to: #3997
## What are you changing in this pull request and why?
- Add "Semantic models" tab for `config`
- Add a "Definition" header (like other similar pages, like
[`group`](https://docs.getdbt.com/reference/resource-configs/group),
[`enabled`](https://docs.getdbt.com/reference/resource-configs/enabled),
etc.)
## Other
- Added semantic models & metrics to
[#3957](https://github.com/dbt-labs/docs.getdbt.com/issues/3957)
## 🎩
### Previews
-
[1.6](https://docs-getdbt-com-git-dbeatty-semantic-models-config-dbt-labs.vercel.app/reference/resource-properties/config?version=1.6)
-
[1.7](https://docs-getdbt-com-git-dbeatty-semantic-models-config-dbt-labs.vercel.app/reference/resource-properties/config?version=1.7)
### v1.6
### v1.7
## Checklist
- [x] I have tested that the code examples work
- [x] I have tested that the changes look correct in the Vercel preview
- [x] Review the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
and [About
versioning](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
so my content adheres to these guidelines.
---------
Co-authored-by: mirnawong1 <89008547+mirnawong1@users.noreply.github.com>
---
.../reference/resource-properties/config.md | 31 +++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/website/docs/reference/resource-properties/config.md b/website/docs/reference/resource-properties/config.md
index e6021def852..55d2f64d9ff 100644
--- a/website/docs/reference/resource-properties/config.md
+++ b/website/docs/reference/resource-properties/config.md
@@ -16,6 +16,7 @@ datatype: "{dictionary}"
{ label: 'Sources', value: 'sources', },
{ label: 'Metrics', value: 'metrics', },
{ label: 'Exposures', value: 'exposures', },
+ { label: 'Semantic models', value: 'semantic models', },
]
}>
@@ -182,6 +183,36 @@ exposures:
+
+
+
+
+Support for the `config` property on `semantic_models` was added in dbt Core v1.7
+
+
+
+
+
+
+
+```yml
+version: 2
+
+semantic_models:
+ - name:
+ config:
+ enabled: true | false
+ group:
+ meta: {dictionary}
+```
+
+
+
+
+
+
+
+## Definition
The `config` property allows you to configure resources at the same time you're defining properties in YAML files.