From b8ec1c9d639378a58b5b0a40c787391e2a98ea05 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Sat, 7 Oct 2023 13:45:27 -0600 Subject: [PATCH 1/6] Exposures tab for `meta` config --- website/docs/reference/resource-configs/meta.md | 1 + 1 file changed, 1 insertion(+) diff --git a/website/docs/reference/resource-configs/meta.md b/website/docs/reference/resource-configs/meta.md index d24c5fbaee1..a82836c7d8f 100644 --- a/website/docs/reference/resource-configs/meta.md +++ b/website/docs/reference/resource-configs/meta.md @@ -14,6 +14,7 @@ default_value: {} { label: 'Tests', value: 'tests', }, { label: 'Analyses', value: 'analyses', }, { label: 'Macros', value: 'macros', }, + { label: 'Exposures', value: 'exposures', }, ] }> From 7b74bc932c503546be03846b921adb64a3787975 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Sat, 7 Oct 2023 13:53:57 -0600 Subject: [PATCH 2/6] Tab for `semantic_models` --- .../docs/reference/resource-configs/meta.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/website/docs/reference/resource-configs/meta.md b/website/docs/reference/resource-configs/meta.md index a82836c7d8f..7e9d7208e74 100644 --- a/website/docs/reference/resource-configs/meta.md +++ b/website/docs/reference/resource-configs/meta.md @@ -15,6 +15,7 @@ default_value: {} { label: 'Analyses', value: 'analyses', }, { label: 'Macros', value: 'macros', }, { label: 'Exposures', value: 'exposures', }, + { label: 'Semantic models', value: 'semantic_models', }, ] }> @@ -173,6 +174,24 @@ exposures: + + + + +```yml +version: 2 + +semantic_models: + - name: semantic_model_name + config: + meta: {} + +``` + + + + + ## Definition From abfd0b2c7fb56c5ace29f109549b6dd1044afc48 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Sat, 7 Oct 2023 14:44:19 -0600 Subject: [PATCH 3/6] Add version blocks for `meta` for semantic models --- website/docs/reference/resource-configs/meta.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/website/docs/reference/resource-configs/meta.md b/website/docs/reference/resource-configs/meta.md index 7e9d7208e74..5f63323bed2 100644 --- a/website/docs/reference/resource-configs/meta.md +++ b/website/docs/reference/resource-configs/meta.md @@ -176,6 +176,14 @@ exposures: + + +Support for grouping semantic models was added in dbt Core v1.7 + + + + + ```yml @@ -190,6 +198,8 @@ semantic_models: + + From bee4a9bcd2d0d419b18e099947553ab74cac4960 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Sat, 7 Oct 2023 15:26:06 -0600 Subject: [PATCH 4/6] Clarify that `meta` is no longer "always" available as a top-level key --- website/docs/reference/resource-configs/meta.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/reference/resource-configs/meta.md b/website/docs/reference/resource-configs/meta.md index 5f63323bed2..e5ea037c331 100644 --- a/website/docs/reference/resource-configs/meta.md +++ b/website/docs/reference/resource-configs/meta.md @@ -207,7 +207,7 @@ semantic_models: ## Definition The `meta` field can be used to set metadata for a resource. This metadata is compiled into the `manifest.json` file generated by dbt, and is viewable in the auto-generated documentation. -Depending on the resource you're configuring, `meta` may be available within the `config` property, or as a top-level key. (For backwards compatibility, `meta` is always supported as a top-level key, though without the capabilities of config inheritance.) +Depending on the resource you're configuring, `meta` may be available within the config property, and/or as a top-level key. (For backwards compatibility, `meta` is often (but not always) supported as a top-level key, though without the capabilities of `config` inheritance.) ## Examples From 1c2c186927b60df2fa99a51cf32833d8f9448a46 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Tue, 7 Nov 2023 19:37:23 -0700 Subject: [PATCH 5/6] Restore preexisting backtick'ing --- website/docs/reference/resource-configs/meta.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/reference/resource-configs/meta.md b/website/docs/reference/resource-configs/meta.md index 199b31167bf..639615e7000 100644 --- a/website/docs/reference/resource-configs/meta.md +++ b/website/docs/reference/resource-configs/meta.md @@ -205,7 +205,7 @@ semantic_models: ## Definition The `meta` field can be used to set metadata for a resource. This metadata is compiled into the `manifest.json` file generated by dbt, and is viewable in the auto-generated documentation. -Depending on the resource you're configuring, `meta` may be available within the config property, and/or as a top-level key. (For backwards compatibility, `meta` is often (but not always) supported as a top-level key, though without the capabilities of `config` inheritance.) +Depending on the resource you're configuring, `meta` may be available within the `config` property, and/or as a top-level key. (For backwards compatibility, `meta` is often (but not always) supported as a top-level key, though without the capabilities of config inheritance.) ## Examples From caf1d5f13ac1ff41b28fd532c5cf3d3f5e7f0ba8 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Tue, 7 Nov 2023 19:44:27 -0700 Subject: [PATCH 6/6] `meta` for semantic models in `dbt_project.yml` --- website/docs/reference/resource-configs/meta.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/docs/reference/resource-configs/meta.md b/website/docs/reference/resource-configs/meta.md index 639615e7000..9ccf2cc60dc 100644 --- a/website/docs/reference/resource-configs/meta.md +++ b/website/docs/reference/resource-configs/meta.md @@ -196,6 +196,8 @@ semantic_models: +The `meta` config can also be defined under the `semantic-models` config block in `dbt_project.yml`. See [configs and properties](/reference/configs-and-properties) for details. +