From 54fce192191cca139413b1f8ea265c9ac9c9f329 Mon Sep 17 00:00:00 2001
From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com>
Date: Wed, 4 Sep 2024 16:17:18 -0400
Subject: [PATCH 1/5] Removing github login (#6010)
## What are you changing in this pull request and why?
Removing GitHub login from dbt Cloud
- Removed/edited content on the GitHub integration page
- Edited links
- Added a release note
## Checklist
- [ ] I have reviewed the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
so my content adheres to these guidelines.
- [ ] The topic I'm writing about is for specific dbt version(s) and I
have versioned it according to the [version a whole
page](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
and/or [version a block of
content](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-blocks-of-content)
guidelines.
- [ ] I have added checklist item(s) to this list for anything anything
that needs to happen before this PR is merged, such as "needs technical
review" or "change base branch."
---------
Co-authored-by: Ly Nguyen <107218380+nghi-ly@users.noreply.github.com>
---
website/docs/docs/cloud/about-cloud/browsers.md | 2 +-
website/docs/docs/cloud/git/connect-github.md | 9 ++++-----
website/docs/docs/dbt-versions/release-notes.md | 1 +
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/website/docs/docs/cloud/about-cloud/browsers.md b/website/docs/docs/cloud/about-cloud/browsers.md
index 12665bc7b72..1e26d3a6d59 100644
--- a/website/docs/docs/cloud/about-cloud/browsers.md
+++ b/website/docs/docs/cloud/about-cloud/browsers.md
@@ -27,4 +27,4 @@ To improve your experience using dbt Cloud, we suggest that you turn off ad bloc
A session is a period of time during which you’re signed in to a dbt Cloud account from a browser. If you close your browser, it will end your session and log you out. You'll need to log in again the next time you try to access dbt Cloud.
-If you've logged in using [SSO](/docs/cloud/manage-access/sso-overview) or [OAuth](/docs/cloud/git/connect-github#personally-authenticate-with-github), you can customize your maximum session duration, which might vary depending on your identity provider (IdP).
+If you've logged in using [SSO](/docs/cloud/manage-access/sso-overview), you can customize your maximum session duration, which might vary depending on your identity provider (IdP).
diff --git a/website/docs/docs/cloud/git/connect-github.md b/website/docs/docs/cloud/git/connect-github.md
index 4dc4aaf73e9..f230f70e1f6 100644
--- a/website/docs/docs/cloud/git/connect-github.md
+++ b/website/docs/docs/cloud/git/connect-github.md
@@ -7,7 +7,6 @@ sidebar_label: "Connect to GitHub"
Connecting your GitHub account to dbt Cloud provides convenience and another layer of security to dbt Cloud:
-- Log into dbt Cloud using OAuth through GitHub.
- Import new GitHub repositories with a couple clicks during dbt Cloud project setup.
- Clone repos using HTTPS rather than SSH.
- Trigger [Continuous integration](/docs/deploy/continuous-integration)(CI) builds when pull requests are opened in GitHub.
@@ -48,15 +47,15 @@ To connect your dbt Cloud account to your GitHub account:
- Read and write access to Workflows
6. Once you grant access to the app, you will be redirected back to dbt Cloud and shown a linked account success state. You are now personally authenticated.
-7. Ask your team members to [personally authenticate](/docs/cloud/git/connect-github#personally-authenticate-with-github) by connecting their GitHub profiles.
+7. Ask your team members to individually authenticate by connecting their [personal GitHub profiles](#authenticate-your-personal-github-account).
## Limiting repository access in GitHub
If you are your GitHub organization owner, you can also configure the dbt Cloud GitHub application to have access to only select repositories. This configuration must be done in GitHub, but we provide an easy link in dbt Cloud to start this process.
-## Personally authenticate with GitHub
+## Authenticate your personal GitHub account
-Once the dbt Cloud admin has [set up a connection](/docs/cloud/git/connect-github#installing-dbt-cloud-in-your-github-account) to your organization GitHub account, you need to personally authenticate, which improves the security of dbt Cloud by enabling you to log in using OAuth through GitHub.
+After the dbt Cloud administrator [sets up a connection](/docs/cloud/git/connect-github#installing-dbt-cloud-in-your-github-account) to your organization's GitHub account, you need to authenticate using your personal account. You must connect your personal GitHub profile to dbt Cloud to use the [dbt Cloud IDE](/docs/cloud/dbt-cloud-ide/develop-in-the-cloud) and [CLI](/docs/cloud/cloud-cli-installation) and verify your read and write access to the repository.
:::info GitHub profile connection
@@ -77,7 +76,7 @@ To connect a personal GitHub account:
4. Once you approve authorization, you will be redirected to dbt Cloud, and you should now see your connected account.
-The next time you log into dbt Cloud, you will be able to do so via OAuth through GitHub, and if you're on the Enterprise plan, you're ready to use the dbt Cloud IDE or dbt Cloud CLI.
+You can now use the dbt Cloud IDE or dbt Cloud CLI.
## FAQs
diff --git a/website/docs/docs/dbt-versions/release-notes.md b/website/docs/docs/dbt-versions/release-notes.md
index a9db34334ad..57aadba284d 100644
--- a/website/docs/docs/dbt-versions/release-notes.md
+++ b/website/docs/docs/dbt-versions/release-notes.md
@@ -19,6 +19,7 @@ Release notes are grouped by month for both multi-tenant and virtual private clo
\* The official release date for this new format of release notes is May 15th, 2024. Historical release notes for prior dates may not reflect all available features released earlier this year or their tenancy availability.
## August 2024
+- **Behavior change:** GitHub is no longer supported for OAuth login to dbt Cloud. Use a supported [SSO or OAuth provider](/docs/cloud/manage-access/sso-overview) to securely manage access to your dbt Cloud account.
- **New**: You can now configure metrics at granularities at finer time grains, such as hour, minute, or even by the second. This is particularly useful for more detailed analysis and for datasets where high-resolution time data is required, such as minute-by-minute event tracking. Refer to [dimensions](/docs/build/dimensions) for more information about time granularity.
## July 2024
From 3b596ebf18e54894134416fbbb41c0be0714a498 Mon Sep 17 00:00:00 2001
From: Lana <100206579+Lana-hl@users.noreply.github.com>
Date: Thu, 5 Sep 2024 02:41:19 -0600
Subject: [PATCH 2/5] Update set-up-snowflake-oauth.md (#6015)
Adding quotes to `OAUTH_REDIRECT_URI` value as it doesn't work without
the quotes
## What are you changing in this pull request and why?
## Checklist
- [ ] I have reviewed the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
so my content adheres to these guidelines.
- [ ] The topic I'm writing about is for specific dbt version(s) and I
have versioned it according to the [version a whole
page](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
and/or [version a block of
content](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-blocks-of-content)
guidelines.
- [ ] I have added checklist item(s) to this list for anything anything
that needs to happen before this PR is merged, such as "needs technical
review" or "change base branch."
---
website/docs/docs/cloud/manage-access/set-up-snowflake-oauth.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/website/docs/docs/cloud/manage-access/set-up-snowflake-oauth.md b/website/docs/docs/cloud/manage-access/set-up-snowflake-oauth.md
index 3b3b9c2d870..e9c4236438e 100644
--- a/website/docs/docs/cloud/manage-access/set-up-snowflake-oauth.md
+++ b/website/docs/docs/cloud/manage-access/set-up-snowflake-oauth.md
@@ -43,7 +43,7 @@ CREATE OR REPLACE SECURITY INTEGRATION DBT_CLOUD
ENABLED = TRUE
OAUTH_CLIENT = CUSTOM
OAUTH_CLIENT_TYPE = 'CONFIDENTIAL'
- OAUTH_REDIRECT_URI = LOCATED_REDIRECT_URI
+ OAUTH_REDIRECT_URI = 'LOCATED_REDIRECT_URI'
OAUTH_ISSUE_REFRESH_TOKENS = TRUE
OAUTH_REFRESH_TOKEN_VALIDITY = 7776000;
```
From a923185b853f5700b364bbeb02451d5d580e59bb Mon Sep 17 00:00:00 2001
From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com>
Date: Thu, 5 Sep 2024 02:51:19 -0600
Subject: [PATCH 3/5] Fix config names for hooks for `properties.yml` (#6007)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[Preview](https://docs-getdbt-com-git-dbeatty10-patch-1-dbt-labs.vercel.app/reference/seed-configs#general-configurations)
- General configurations > Property file
## What are you changing in this pull request and why?
Fixes per
https://github.com/dbt-labs/dbt-core/issues/10650#issuecomment-2328348338
## 🎩
## Checklist
- [x] I have reviewed the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
so my content adheres to these guidelines.
- [x] The topic I'm writing about applies to all dbt versions
Co-authored-by: Mirna Wong <89008547+mirnawong1@users.noreply.github.com>
---
website/docs/reference/seed-configs.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/website/docs/reference/seed-configs.md b/website/docs/reference/seed-configs.md
index dd733795eef..5d5c39071d6 100644
--- a/website/docs/reference/seed-configs.md
+++ b/website/docs/reference/seed-configs.md
@@ -113,8 +113,8 @@ seeds:
config:
[enabled](/reference/resource-configs/enabled): true | false
[tags](/reference/resource-configs/tags): | []
- [pre-hook](/reference/resource-configs/pre-hook-post-hook): | []
- [post-hook](/reference/resource-configs/pre-hook-post-hook): | []
+ [pre_hook](/reference/resource-configs/pre-hook-post-hook): | []
+ [post_hook](/reference/resource-configs/pre-hook-post-hook): | []
[database](/reference/resource-configs/database):
[schema](/reference/resource-properties/schema):
[alias](/reference/resource-configs/alias):
From 4d1591cd13b9302949e648663ff61ea6052318ed Mon Sep 17 00:00:00 2001
From: Perth Ngarmtrakulchol
Date: Thu, 5 Sep 2024 19:01:49 +1000
Subject: [PATCH 4/5] Add a text in docs to prevent using -- for comment.
(#6006)
The error message (local variable 'connection' referenced before
assignment) when using `--` doesn't indicate the actual syntax error. It
is also not documented
## What are you changing in this pull request and why?
Stumbled upon error from this issue and tried to debug it for few hours
until I realised this error. Adding text in the docs to prevent other
developers finding the same issue.
## Checklist
- [x] I have reviewed the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
so my content adheres to these guidelines.
- [ ] The topic I'm writing about is for specific dbt version(s) and I
have versioned it according to the [version a whole
page](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
and/or [version a block of
content](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-blocks-of-content)
guidelines.
- [x] I have added checklist item(s) to this list for anything anything
that needs to happen before this PR is merged, such as "needs technical
review" or "change base branch."
Co-authored-by: Mirna Wong <89008547+mirnawong1@users.noreply.github.com>
---
website/docs/docs/build/jinja-macros.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/website/docs/docs/build/jinja-macros.md b/website/docs/docs/build/jinja-macros.md
index fc4a0cad3e8..bc91e3674c9 100644
--- a/website/docs/docs/build/jinja-macros.md
+++ b/website/docs/docs/build/jinja-macros.md
@@ -74,7 +74,7 @@ group by 1
You can recognize Jinja based on the delimiters the language uses, which we refer to as "curlies":
- **Expressions `{{ ... }}`**: Expressions are used when you want to output a string. You can use expressions to reference [variables](/reference/dbt-jinja-functions/var) and call [macros](/docs/build/jinja-macros#macros).
- **Statements `{% ... %}`**: Statements don't output a string. They are used for control flow, for example, to set up `for` loops and `if` statements, to [set](https://jinja.palletsprojects.com/en/3.1.x/templates/#assignments) or [modify](https://jinja.palletsprojects.com/en/3.1.x/templates/#expression-statement) variables, or to define macros.
-- **Comments `{# ... #}`**: Jinja comments are used to prevent the text within the comment from executing or outputing a string.
+- **Comments `{# ... #}`**: Jinja comments are used to prevent the text within the comment from executing or outputing a string. Don't use `--` for comment.
When used in a dbt model, your Jinja needs to compile to a valid query. To check what SQL your Jinja compiles to:
* **Using dbt Cloud:** Click the compile button to see the compiled SQL in the Compiled SQL pane
From 2399e86f9b279ffad18f307a7be2f893f19110cb Mon Sep 17 00:00:00 2001
From: Mirna Wong <89008547+mirnawong1@users.noreply.github.com>
Date: Thu, 5 Sep 2024 10:21:20 +0100
Subject: [PATCH 5/5] add model paths callout (#6011)
adding callout to SL best practices and SL quickstart so users know that
sm and metrics should be under the model-path directory.
raised in [internal slack
thread](https://dbt-labs.slack.com/archives/C05K4R7KZ5Z/p1724945059555389?thread_ts=1724777237.590479&cid=C05K4R7KZ5Z)
---
.../semantic-layer-7-semantic-structure.md | 4 ++++
website/docs/guides/sl-snowflake-qs.md | 11 ++++++++++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/website/docs/best-practices/how-we-build-our-metrics/semantic-layer-7-semantic-structure.md b/website/docs/best-practices/how-we-build-our-metrics/semantic-layer-7-semantic-structure.md
index 295d86e9c20..5bfbea82dda 100644
--- a/website/docs/best-practices/how-we-build-our-metrics/semantic-layer-7-semantic-structure.md
+++ b/website/docs/best-practices/how-we-build-our-metrics/semantic-layer-7-semantic-structure.md
@@ -20,6 +20,10 @@ The first thing you need to establish is how you’re going to consistently stru
It’s not terribly difficult to shift between these (it can be done with some relatively straightforward shell scripting), and this is purely a decision based on your developers’ preference (i.e. it has no impact on execution or performance), so don’t feel locked in to either path. Just pick the one that feels right and you can always shift down the road if you change your mind.
+:::tip
+Make sure to save all semantic models and metrics under the directory defined in the [`model-paths`](/reference/project-configs/model-paths) (or a subdirectory of it, like `models/semantic_models/`). If you save them outside of this path, it will result in an empty `semantic_manifest.json` file, and your semantic models or metrics won't be recognized.
+:::
+
## Naming
Next, establish your system for consistent file naming:
diff --git a/website/docs/guides/sl-snowflake-qs.md b/website/docs/guides/sl-snowflake-qs.md
index 6d9f88ab159..7d42aecabc2 100644
--- a/website/docs/guides/sl-snowflake-qs.md
+++ b/website/docs/guides/sl-snowflake-qs.md
@@ -619,6 +619,11 @@ select * from final
In the following steps, semantic models enable you to define how to interpret the data related to orders. It includes entities (like ID columns serving as keys for joining data), dimensions (for grouping or filtering data), and measures (for data aggregations).
1. In the `metrics` sub-directory, create a new file `fct_orders.yml`.
+
+:::tip
+Make sure to save all semantic models and metrics under the directory defined in the [`model-paths`](/reference/project-configs/model-paths) (or a subdirectory of it, like `models/semantic_models/`). If you save them outside of this path, it will result in an empty `semantic_manifest.json` file, and your semantic models or metrics won't be recognized.
+:::
+
2. Add the following code to that newly created file:
@@ -765,7 +770,11 @@ There are different types of metrics you can configure:
Once you've created your semantic models, it's time to start referencing those measures you made to create some metrics:
-Add metrics to your `fct_orders.yml` semantic model file:
+1. Add metrics to your `fct_orders.yml` semantic model file:
+
+:::tip
+Make sure to save all semantic models and metrics under the directory defined in the [`model-paths`](/reference/project-configs/model-paths) (or a subdirectory of it, like `models/semantic_models/`). If you save them outside of this path, it will result in an empty `semantic_manifest.json` file, and your semantic models or metrics won't be recognized.
+:::