From d46491003f3d0a5f927f708b6b37fece67584890 Mon Sep 17 00:00:00 2001
From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com>
Date: Sat, 7 Oct 2023 15:49:50 -0600
Subject: [PATCH 1/4] `config` for semantic models
---
.../reference/resource-properties/config.md | 28 +++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/website/docs/reference/resource-properties/config.md b/website/docs/reference/resource-properties/config.md
index e6021def852..a42cf0cd9d5 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,33 @@ 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
+```
+
+
+
+
+
+
+
The `config` property allows you to configure resources at the same time you're defining properties in YAML files.
From ea80af1e52a60f54572c90064610834f7c75fcb7 Mon Sep 17 00:00:00 2001
From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com>
Date: Sat, 7 Oct 2023 16:06:00 -0600
Subject: [PATCH 2/4] Add a "Definition" header (like other similar pages)
---
website/docs/reference/resource-properties/config.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/website/docs/reference/resource-properties/config.md b/website/docs/reference/resource-properties/config.md
index a42cf0cd9d5..5279ee3774e 100644
--- a/website/docs/reference/resource-properties/config.md
+++ b/website/docs/reference/resource-properties/config.md
@@ -212,4 +212,5 @@ semantic_models:
+## Definition
The `config` property allows you to configure resources at the same time you're defining properties in YAML files.
From 38bbc84a97ff0405f8e922e8434166748073208e Mon Sep 17 00:00:00 2001
From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com>
Date: Sat, 11 Nov 2023 07:20:12 -0700
Subject: [PATCH 3/4] Enabled, group, and meta configs for semantic models
---
website/docs/reference/resource-properties/config.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/website/docs/reference/resource-properties/config.md b/website/docs/reference/resource-properties/config.md
index 5279ee3774e..e8dc0364b32 100644
--- a/website/docs/reference/resource-properties/config.md
+++ b/website/docs/reference/resource-properties/config.md
@@ -202,6 +202,8 @@ semantic_models:
- name:
config:
enabled: true | false
+ group:
+ meta: {dictionary}
```
From e594470abe1e425667813d7d8cff22b80f2f891a Mon Sep 17 00:00:00 2001
From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com>
Date: Sat, 11 Nov 2023 07:21:39 -0700
Subject: [PATCH 4/4] Match name of tab item with similar pages
---
website/docs/reference/resource-properties/config.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/website/docs/reference/resource-properties/config.md b/website/docs/reference/resource-properties/config.md
index e8dc0364b32..55d2f64d9ff 100644
--- a/website/docs/reference/resource-properties/config.md
+++ b/website/docs/reference/resource-properties/config.md
@@ -16,7 +16,7 @@ datatype: "{dictionary}"
{ label: 'Sources', value: 'sources', },
{ label: 'Metrics', value: 'metrics', },
{ label: 'Exposures', value: 'exposures', },
- { label: 'Semantic models', value: 'semantic_models', },
+ { label: 'Semantic models', value: 'semantic models', },
]
}>
@@ -183,7 +183,7 @@ exposures:
-
+