From f14db1bf902dd29fe0a9825a03b11c254a37b68a Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Sat, 7 Oct 2023 14:06:48 -0600 Subject: [PATCH 1/2] `enabled` config for semantic models --- .../reference/resource-configs/enabled.md | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/website/docs/reference/resource-configs/enabled.md b/website/docs/reference/resource-configs/enabled.md index b6d0961ee60..233c1d2e8af 100644 --- a/website/docs/reference/resource-configs/enabled.md +++ b/website/docs/reference/resource-configs/enabled.md @@ -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', }, ] }> @@ -250,6 +251,45 @@ exposures: + + + + +Support for disabling semantic models was added in dbt Core v1.7 + + + + + + + +```yaml +semantic_models: + [](/reference/resource-configs/resource-path): + [+](/reference/resource-configs/plus-prefix)enabled: true | false + +``` + + + + + +```yaml +version: 2 + +semantic_models: + - name: [] + [config](/reference/resource-properties/config): + enabled: true | false + +``` + + + + + + + ## Definition From bc43d6dc41b6c250fd67f968fb54c9528c9eb0d7 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Sat, 7 Oct 2023 15:38:06 -0600 Subject: [PATCH 2/2] Clarify the definition --- website/docs/reference/resource-configs/enabled.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/reference/resource-configs/enabled.md b/website/docs/reference/resource-configs/enabled.md index 233c1d2e8af..98648fbf032 100644 --- a/website/docs/reference/resource-configs/enabled.md +++ b/website/docs/reference/resource-configs/enabled.md @@ -293,7 +293,7 @@ semantic_models: ## Definition -An optional configuration for disabling models, seeds, snapshots, and tests. +An optional configuration for enabling or disabling a resource. * Default: true