Skip to content

Commit

Permalink
Merge branch 'current' into mwong-add-cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Feb 11, 2025
2 parents 5670434 + 28cd957 commit 38a7366
Show file tree
Hide file tree
Showing 117 changed files with 8,898 additions and 5,216 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/website/docs/docs/supported-data-platforms.md @dbt-labs/product-docs @amychen1776
/website/docs/reference/warehouse-setups @dbt-labs/product-docs @amychen1776
# `resource-configs` contains more than just warehouse setups
/website/docs/reference/resource-configs/*-configs.md @dbt-labs/product-docs @amychen1776
/website/docs/reference/resource-configs/*-configs.md @dbt-labs/product-docs
/website/docs/guides/advanced/adapter-development @dbt-labs/product-docs @amychen1776

/website/docs/guides/building-packages @dbt-labs/product-docs @amychen1776
Expand Down
23 changes: 0 additions & 23 deletions website/.swcrc

This file was deleted.

10 changes: 6 additions & 4 deletions website/api/get-discourse-comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ const PREVIEW_ENV = 'deploy-preview-'
// Set API endpoint and headers
let discourse_endpoint = `https://discourse.getdbt.com`
let headers = {
'Accept': 'application/json',
'Api-Key': DISCOURSE_DEVBLOG_API_KEY,
'Api-Username': DISCOURSE_USER_SYSTEM,
}
Accept: "application/json",
"Api-Key": DISCOURSE_DEVBLOG_API_KEY,
"Api-Username": DISCOURSE_USER_SYSTEM,
// Cache comments in the browser (max-age) & CDN (s-maxage) for 1 day
"Cache-Control": "max-age=86400, s-maxage=86400 stale-while-revalidate",
};

async function getDiscourseComments(request, response) {
let topicId, comments, DISCOURSE_TOPIC_ID;
Expand Down
10 changes: 6 additions & 4 deletions website/api/get-discourse-topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ async function getDiscourseTopics(request, response) {
// Set API endpoint and headers
let discourse_endpoint = `https://discourse.getdbt.com`
let headers = {
'Accept': 'application/json',
'Api-Key': DISCOURSE_API_KEY,
'Api-Username': DISCOURSE_USER,
}
Accept: "application/json",
"Api-Key": DISCOURSE_API_KEY,
"Api-Username": DISCOURSE_USER,
// Cache topics in the browser (max-age) & CDN (s-maxage) for 1 day
"Cache-Control": "max-age=86400, s-maxage=86400 stale-while-revalidate",
};

const query = buildQueryString(body)
if(!query) throw new Error('Unable to build query string.')
Expand Down
184 changes: 0 additions & 184 deletions website/blog/2022-04-19-dbt-cloud-postman-collection.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Here’s the challenge: monitoring tools, by their nature, look backward. They

[dbt Cloud](https://www.getdbt.com/product/dbt-cloud) unifies these perspectives into a single [control plane](https://www.getdbt.com/blog/data-control-plane-introduction), bridging proactive and retrospective capabilities:

- **Proactive planning**: In dbt, you declare the desired [state](https://docs.getdbt.com/reference/node-selection/syntax#state-selection) of your data before jobs even run — your architectural plans are baked into the pipeline.
- **Proactive planning**: In dbt, you declare the desired [state](https://docs.getdbt.com/reference/node-selection/state-selection) of your data before jobs even run — your architectural plans are baked into the pipeline.
- **Retrospective insights**: dbt Cloud surfaces [job logs](https://docs.getdbt.com/docs/deploy/run-visibility), performance metrics, and test results, providing the same level of insight as traditional monitoring tools.

But the real power lies in how dbt integrates these two perspectives. Transformation logic (the plans) and monitoring (the inspections) are tightly connected, creating a continuous feedback loop where issues can be identified and resolved faster, and pipelines can be optimized more effectively.
Expand Down
8 changes: 4 additions & 4 deletions website/blog/ctas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
subheader: Catch up on Coalesce 2024 and register to access a select number of on-demand sessions.
button_text: Register and watch
url: https://coalesce.getdbt.com/register/online
- name: sdf_webinar_2025
header: Accelerating dbt with SDF
subheader: Join leaders from dbt Labs and SDF Labs for insights and a live Q&A.
- name: spring_launch_2025
header: 2025 dbt Cloud Launch Showcase
subheader: Join us on March 19th or 20th to hear from our executives and product leaders about the latest features landing in dbt.
button_text: Save your seat
url: https://www.getdbt.com/resources/webinars/accelerating-dbt-with-sdf
url: https://www.getdbt.com/resources/webinars/2025-dbt-cloud-launch-showcase
2 changes: 1 addition & 1 deletion website/blog/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
featured_image: ""

# This CTA lives in right sidebar on blog index
featured_cta: "sdf_webinar_2025"
featured_cta: "spring_launch_2025"

# Show or hide hero title, description, cta from blog index
show_title: true
Expand Down
14 changes: 5 additions & 9 deletions website/docs/best-practices/best-practice-workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,8 @@ where created_at >= dateadd('day', -3, current_date)
{% endif %}
```

### Use hooks to manage privileges on objects that dbt creates
Use `grant` statements from [hooks](/docs/build/hooks-operations) to ensure that permissions are applied to the objects created by dbt. By codifying these grant statements in hooks, you can version control and repeatably apply these permissions.


:::info Recommended grant statements

We've shared the exact grant statements we use over on [Discourse](https://discourse.getdbt.com/t/the-exact-grant-statements-we-use-in-a-dbt-project/430)

:::
### Use grants to manage privileges on objects that dbt creates
Use `grants` in [resource configs](/reference/resource-configs/grants) to ensure that permissions are applied to the objects created by dbt. By codifying these grant statements, you can version control and repeatably apply these permissions.

### Separate source-centric and business-centric transformations
When modeling data, we frequently find there are two stages:
Expand All @@ -208,3 +201,6 @@ We find it most useful to separate these two types of transformations into diffe

### Managing whitespace generated by Jinja
If you're using macros or other pieces of Jinja in your models, your compiled SQL (found in the `target/compiled` directory) may contain unwanted whitespace. Check out the [Jinja documentation](http://jinja.pocoo.org/docs/2.10/templates/#whitespace-control) to learn how to control generated whitespace.

## Related docs
- [Updating our permissioning guidelines: grants as configs in dbt Core v1.2](https://docs.getdbt.com/blog/configuring-grants)
2 changes: 1 addition & 1 deletion website/docs/docs/build/analyses.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Analyses"
description: "Read this tutorial to learn how to use custom analyses when building in dbt."
description: "Configure SQL files in dbt to create compiled code used for analyses."
id: "analyses"
pagination_next: null
---
Expand Down
2 changes: 1 addition & 1 deletion website/docs/docs/build/custom-aliases.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Custom aliases"
description: "Read this tutorial to learn how to use custom aliases when building in dbt."
description: "Configure custom aliases to override default naming conventions for models and other resources in dbt."
id: "custom-aliases"
---

Expand Down
1 change: 1 addition & 0 deletions website/docs/docs/build/custom-schemas.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Custom schemas"
description: "Configure custom schemas for your dbt model's tables and views in the database."
id: "custom-schemas"
pagination_next: "docs/build/custom-databases"
---
Expand Down
2 changes: 1 addition & 1 deletion website/docs/docs/build/data-tests.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Add data tests to your DAG"
sidebar_label: "Data tests"
description: "Read this tutorial to learn how to use data tests when building in dbt."
description: "Configure dbt data tests to assess the quality of your input data and ensure accuracy in resulting datasets."
pagination_next: "docs/build/unit-tests"
pagination_prev: null
search_weight: "heavy"
Expand Down
Loading

0 comments on commit 38a7366

Please sign in to comment.