From 00d5be7e8cb8654d47dc2cc0bb3782ca61a0532c Mon Sep 17 00:00:00 2001 From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> Date: Wed, 6 Mar 2024 15:54:27 -0500 Subject: [PATCH 1/6] Updating v1.8 beta docs --- website/docs/docs/build/unit-tests.md | 2 +- .../docs/dbt-versions/core-upgrade/01-upgrading-to-v1.8.md | 1 - website/snippets/core-versions-table.md | 5 +++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/website/docs/docs/build/unit-tests.md b/website/docs/docs/build/unit-tests.md index ac68a2b24e4..ce833481640 100644 --- a/website/docs/docs/build/unit-tests.md +++ b/website/docs/docs/build/unit-tests.md @@ -11,7 +11,7 @@ keywords: Support for unit testing dbt models is available to dbt Cloud customers who have chosen to ["Keep on latest version"](/docs/dbt-versions/upgrade-dbt-version-in-cloud#keep-on-latest-version). This feature is currently available in beta, and supports all dbt-Labs-maintained adapters, with more adapter availability rolling out through March. -For dbt Core, unit tests will be available in v1.8, planned for spring 2024. The v1.8.0-b1 release of `dbt-core` & dbt Labs-maintained adapters is available as of February 29. +For dbt Core, the v1.8.0-b1 release of `dbt-core` & dbt Labs-maintained adapters are available now. ::: diff --git a/website/docs/docs/dbt-versions/core-upgrade/01-upgrading-to-v1.8.md b/website/docs/docs/dbt-versions/core-upgrade/01-upgrading-to-v1.8.md index 45445c0093b..bbdb8b4a108 100644 --- a/website/docs/docs/dbt-versions/core-upgrade/01-upgrading-to-v1.8.md +++ b/website/docs/docs/dbt-versions/core-upgrade/01-upgrading-to-v1.8.md @@ -10,7 +10,6 @@ displayed_sidebar: "docs" - Changelog (coming soon) - [dbt Core CLI Installation guide](/docs/core/installation-overview) - [Cloud upgrade guide](/docs/dbt-versions/upgrade-dbt-version-in-cloud) -- Release schedule (coming soon) ## What to know before upgrading diff --git a/website/snippets/core-versions-table.md b/website/snippets/core-versions-table.md index 302168f4b9c..41e3876e9f3 100644 --- a/website/snippets/core-versions-table.md +++ b/website/snippets/core-versions-table.md @@ -1,7 +1,8 @@ ### Latest releases -| dbt Core | Initial release | Support level and end date | -|:----------------------------------------------------:|:---------------:|:-------------------------------------:| +| dbt Core | Initial release | Support level and end date | +|:-------------------------------------------------------------:|:---------------:|:-------------------------------------:| +| [**v1.8**](/docs/dbt-versions/core-upgrade/upgrading-to-v1.8) | April 2024 | Beta | | [**v1.7**](/docs/dbt-versions/core-upgrade/upgrading-to-v1.7) | Nov 2, 2023 | Active — Nov 1, 2024 | | [**v1.6**](/docs/dbt-versions/core-upgrade/upgrading-to-v1.6) | Jul 31, 2023 | Critical — Jul 30, 2024 | | [**v1.5**](/docs/dbt-versions/core-upgrade/upgrading-to-v1.5) | Apr 27, 2023 | Critical — Apr 27, 2024 | From 6cb0f2b0f265cf719a4d5510d949a896491cc42e Mon Sep 17 00:00:00 2001 From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com> Date: Wed, 6 Mar 2024 16:03:28 -0500 Subject: [PATCH 2/6] Update website/docs/docs/build/unit-tests.md Co-authored-by: Mirna Wong <89008547+mirnawong1@users.noreply.github.com> --- website/docs/docs/build/unit-tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/docs/build/unit-tests.md b/website/docs/docs/build/unit-tests.md index ce833481640..0d2f29d0962 100644 --- a/website/docs/docs/build/unit-tests.md +++ b/website/docs/docs/build/unit-tests.md @@ -11,7 +11,7 @@ keywords: Support for unit testing dbt models is available to dbt Cloud customers who have chosen to ["Keep on latest version"](/docs/dbt-versions/upgrade-dbt-version-in-cloud#keep-on-latest-version). This feature is currently available in beta, and supports all dbt-Labs-maintained adapters, with more adapter availability rolling out through March. -For dbt Core, the v1.8.0-b1 release of `dbt-core` & dbt Labs-maintained adapters are available now. +For dbt Core, the v1.8.0-b1 release of `dbt-core` and dbt Labs-maintained adapters are available now. ::: From 225be9c2339d461f6bb13f3c798fea6fdb43dd68 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Fri, 8 Mar 2024 18:25:57 -0500 Subject: [PATCH 3/6] Handle `v` keyword argument for model versions --- website/docs/reference/dbt-jinja-functions/builtins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/reference/dbt-jinja-functions/builtins.md b/website/docs/reference/dbt-jinja-functions/builtins.md index 7d970b9d5e1..a5538b27ac8 100644 --- a/website/docs/reference/dbt-jinja-functions/builtins.md +++ b/website/docs/reference/dbt-jinja-functions/builtins.md @@ -31,7 +31,7 @@ From dbt v1.5 and higher, use the following macro to extract user-provided argum ``` {% macro ref() %} -- extract user-provided positional and keyword arguments - {% set version = kwargs.get('version') %} + {% set version = kwargs.get('version') or kwargs.get('v') %} {% set packagename = none %} {%- if (varargs | length) == 1 -%} {% set modelname = varargs[0] %} From e5586b9bb9c207374cbc535a5c0202cbdf5a0fd9 Mon Sep 17 00:00:00 2001 From: ialdg <39755524+ialdg@users.noreply.github.com> Date: Sat, 9 Mar 2024 14:54:58 +0100 Subject: [PATCH 4/6] Update custom-generic-tests.md I introduced a place holder text for you to replace with the actual URL link to the proper Github website since the present link doesn't work. Regards. IL. --- website/docs/best-practices/custom-generic-tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/best-practices/custom-generic-tests.md b/website/docs/best-practices/custom-generic-tests.md index e96fc864ee6..b94c41f9464 100644 --- a/website/docs/best-practices/custom-generic-tests.md +++ b/website/docs/best-practices/custom-generic-tests.md @@ -6,7 +6,7 @@ displayText: Writing custom generic data tests hoverSnippet: Learn how to write your own custom generic data tests. --- -dbt ships with [Not Null](/reference/resource-properties/data-tests#not-null), [Unique](/reference/resource-properties/data-tests#unique), [Relationships](/reference/resource-properties/data-tests#relationships), and [Accepted Values](/reference/resource-properties/data-tests#accepted-values) generic data tests. (These used to be called "schema tests," and you'll still see that name in some places.) Under the hood, these generic data tests are defined as `test` blocks (like macros) in a globally accessible dbt project. You can find the source code for these tests in the [global project](https://github.com/dbt-labs/dbt-core/tree/main/core/dbt/include/global_project/macros/generic_test_sql). +dbt ships with [Not Null](/reference/resource-properties/data-tests#not-null), [Unique](/reference/resource-properties/data-tests#unique), [Relationships](/reference/resource-properties/data-tests#relationships), and [Accepted Values](/reference/resource-properties/data-tests#accepted-values) generic data tests. (These used to be called "schema tests," and you'll still see that name in some places.) Under the hood, these generic data tests are defined as `test` blocks (like macros) in a globally accessible dbt project. You can find the source code for these tests in the [global project](REPLACE_THIS_TEXT_FOR_AN_URL_THAT_WORKS_BECAUSE_THE_OLD_ONE_FAILS). :::info There are tons of generic data tests defined in open source packages, such as [dbt-utils](https://hub.getdbt.com/dbt-labs/dbt_utils/latest/) and [dbt-expectations](https://hub.getdbt.com/calogica/dbt_expectations/latest/) — the test you're looking for might already be here! From 1c7dda1690d43b89372d2603a632d0b821346cd6 Mon Sep 17 00:00:00 2001 From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com> Date: Sun, 10 Mar 2024 16:16:51 -0600 Subject: [PATCH 5/6] Add AlloyDB to data platforms available within dbt Cloud --- .../docs/docs/cloud/connect-data-platform/about-connections.md | 1 + 1 file changed, 1 insertion(+) diff --git a/website/docs/docs/cloud/connect-data-platform/about-connections.md b/website/docs/docs/cloud/connect-data-platform/about-connections.md index d388bae4549..5f111de312e 100644 --- a/website/docs/docs/cloud/connect-data-platform/about-connections.md +++ b/website/docs/docs/cloud/connect-data-platform/about-connections.md @@ -7,6 +7,7 @@ pagination_next: "docs/cloud/connect-data-platform/connect-microsoft-fabric" pagination_prev: null --- dbt Cloud can connect with a variety of data platform providers including: +- [AlloyDB](/docs/cloud/connect-data-platform/connect-redshift-postgresql-alloydb) - [Amazon Redshift](/docs/cloud/connect-data-platform/connect-redshift-postgresql-alloydb) - [Apache Spark](/docs/cloud/connect-data-platform/connect-apache-spark) - [Databricks](/docs/cloud/connect-data-platform/connect-databricks) From abf24ba7e4031ade0f127ca8701e2ec3ff87e29b Mon Sep 17 00:00:00 2001 From: Mirna Wong <89008547+mirnawong1@users.noreply.github.com> Date: Mon, 11 Mar 2024 10:51:29 +0000 Subject: [PATCH 6/6] Update website/docs/best-practices/custom-generic-tests.md --- website/docs/best-practices/custom-generic-tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/best-practices/custom-generic-tests.md b/website/docs/best-practices/custom-generic-tests.md index b94c41f9464..17b15870688 100644 --- a/website/docs/best-practices/custom-generic-tests.md +++ b/website/docs/best-practices/custom-generic-tests.md @@ -6,7 +6,7 @@ displayText: Writing custom generic data tests hoverSnippet: Learn how to write your own custom generic data tests. --- -dbt ships with [Not Null](/reference/resource-properties/data-tests#not-null), [Unique](/reference/resource-properties/data-tests#unique), [Relationships](/reference/resource-properties/data-tests#relationships), and [Accepted Values](/reference/resource-properties/data-tests#accepted-values) generic data tests. (These used to be called "schema tests," and you'll still see that name in some places.) Under the hood, these generic data tests are defined as `test` blocks (like macros) in a globally accessible dbt project. You can find the source code for these tests in the [global project](REPLACE_THIS_TEXT_FOR_AN_URL_THAT_WORKS_BECAUSE_THE_OLD_ONE_FAILS). +dbt ships with [Not Null](/reference/resource-properties/data-tests#not-null), [Unique](/reference/resource-properties/data-tests#unique), [Relationships](/reference/resource-properties/data-tests#relationships), and [Accepted Values](/reference/resource-properties/data-tests#accepted-values) generic data tests. (These used to be called "schema tests," and you'll still see that name in some places.) Under the hood, these generic data tests are defined as `test` blocks (like macros). :::info There are tons of generic data tests defined in open source packages, such as [dbt-utils](https://hub.getdbt.com/dbt-labs/dbt_utils/latest/) and [dbt-expectations](https://hub.getdbt.com/calogica/dbt_expectations/latest/) — the test you're looking for might already be here!