Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splitting up global configs into pages #3332

Merged
merged 16 commits into from
Jun 1, 2023
Merged

Conversation

matthewshaver
Copy link
Contributor

What are you changing in this pull request and why?

The global-configs reference guide had become a single page of increasing size. This breaks it down into individual pages which will make the content a little easier to find, especially when using the search functions.

Most of the features in the original one-shot get their own page but some gather multiple sections into a single page. Specifically:
print-output
logs
parsing

Checklist

Uncomment if you're publishing docs for a prerelease version of dbt (delete if not applicable):

  • Add versioning components, as described in Versioning Docs

  • Review the Content style guide and About versioning so my content adheres to these guidelines.

  • Add a checklist item for anything that needs to happen before this PR is merged, such as "needs technical review" or "change base branch."

Adding new pages (delete if not applicable):

  • Add page to website/sidebars.js
  • Provide a unique filename for the new page

Removing or renaming existing pages (delete if not applicable):

  • Remove page from website/sidebars.js
  • Add an entry website/static/_redirects
  • Ran link testing to update the links that point to the deleted page

@matthewshaver matthewshaver requested a review from a team as a code owner May 3, 2023 15:16
@netlify
Copy link

netlify bot commented May 3, 2023

Deploy Preview for docs-getdbt-com ready!

Name Link
🔨 Latest commit 23a23aa
🔍 Latest deploy log https://app.netlify.com/sites/docs-getdbt-com/deploys/6478bb51733e4a00080d0de0
😎 Deploy Preview https://deploy-preview-3332--docs-getdbt-com.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot added content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs labels May 3, 2023
@github-actions github-actions bot added the size: large This change will more than a week to address and might require more than one person label May 3, 2023
@matthewshaver matthewshaver marked this pull request as draft May 3, 2023 15:22
Copy link
Collaborator

@jtcohen6 jtcohen6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matthewshaver Very supportive of splitting up this page into meaningful subsets, and I like the groupings you've chosen!

Meta-level comment: The sub-pages on "CLI flags," "env vars," and "yaml configs" should be presented differently. These aren't about what you can configure, but rather how you can define these configurations. IMO it makes sense to keep these together, possibly still as part of the top-level page.

@dbeatty10
Copy link
Contributor

@matthewshaver Exciting that you are working on this!

The Netlify preview failed, so I could only look at the code and not the actual web pages.

There are a couple issues that would be awesome to address either in this PR or a follow-up:

@matthewshaver matthewshaver marked this pull request as ready for review May 16, 2023 14:12
@github-actions github-actions bot added the guides Knowledge best suited for Guides label May 16, 2023
@dbeatty10
Copy link
Contributor

@matthewshaver how would you feel about converting this into a draft until it's ready for review? i.e., draft until it's able to build in Netlify, etc.

@matthewshaver
Copy link
Contributor Author

@dbeatty10 Just wrapped up those pesky Netlify errors. It should pass on the next check and make the preview available!

@matthewshaver matthewshaver linked an issue May 18, 2023 that may be closed by this pull request
1 task
@matthewshaver matthewshaver changed the base branch from current to mwong-adapters-ref June 1, 2023 15:15
@matthewshaver matthewshaver changed the base branch from mwong-adapters-ref to current June 1, 2023 15:23
@mirnawong1
Copy link
Contributor

approving this for Matt to merge, and he said he'll tackle Doug's feedback in separate pr

Copy link
Contributor

@mirnawong1 mirnawong1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matthewshaver matthewshaver merged commit 3d73eb7 into current Jun 1, 2023
@matthewshaver matthewshaver deleted the global-configs branch June 1, 2023 15:49
dbeatty10 added a commit that referenced this pull request Oct 30, 2023
[Preview](https://docs-getdbt-com-git-dbeatty-global-configs-prec-329ad4-dbt-labs.vercel.app/reference/global-configs/about-global-configs)

resolves #4362

## What are you changing in this pull request and why?

Two things:
1. When quickly scanning docs, make it easy to see the order of
precedence for global configs
1. Include hyperlinks to the three different ways that a global config
can be set ([user
config](https://docs.getdbt.com/reference/global-configs/yaml-configurations),
[environment
variable](https://docs.getdbt.com/reference/global-configs/environment-variable-configs),
[CLI
flag](https://docs.getdbt.com/reference/global-configs/command-line-flags))

### History


[This](https://github.com/dbt-labs/docs.getdbt.com/blob/35a59491ffc6133a26e0c52b9a8e9a3f96d405f3/website/docs/reference/global-configs/about-global-configs.md)
is the current page for "Global Configs", and
[this](https://github.com/dbt-labs/docs.getdbt.com/blob/533637af17b296e17a19eb4582da0123ddc8b572/website/docs/reference/global-configs.md)
was the page prior to
#3332.

### 🎩 

<img width="450" alt="image"
src="https://github.com/dbt-labs/docs.getdbt.com/assets/44704949/2f9657a8-ab70-456e-8cb6-29d7030d1cbb">


## Checklist
- [x] Review the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
and [About
versioning](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
so my content adheres to these guidelines.
- [x] I have verified the preview renders correctly
- [x] I have verified any new links work correctly

---------

Co-authored-by: Matt Shaver <[email protected]>
mirnawong1 added a commit that referenced this pull request Jan 23, 2024
[Preview](https://docs-getdbt-com-git-dbeatty-print-no-print-dbt-labs.vercel.app/reference/global-configs/print-output#suppress-print-messages-in-stdout)

resolves #4776

## What are you changing in this pull request and why?

I checked from v1.7 back to v1.1, and I couldn't get either of these to
work in any version:

Up to 1.5:
```yaml
config:
  no_print: true
```

1.5 and after:
```yaml
config:
  print: false
```

However, the `DBT_NO_PRINT` / `DBT_PRINT` environment variables and
`--no-print` and `--print` CLI flags _do_ work.

So I think the code example for `profiles.yml` was just accidentally
introduced in the following PRs, and we should remove it because it's
not actually an option for any versions.
- #1319
- #3134

For additional context, see:
- [Upgrading to
v1.1](https://docs.getdbt.com/docs/dbt-versions/core-upgrade/upgrading-to-v1.1#advanced-and-experimental-functionality)
- [Upgrading to
v1.5](https://docs.getdbt.com/docs/dbt-versions/core-upgrade/upgrading-to-v1.5#behavior-changes)
- #1102
- dbt-labs/dbt-core#4701
- #3122
- #3332

## Checklist
- [x] Review 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] For [docs
versioning](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#about-versioning),
review how to [version a whole
page](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#adding-a-new-version)
and [version a block of
content](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/single-sourcing-content.md#versioning-blocks-of-content).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs guides Knowledge best suited for Guides size: large This change will more than a week to address and might require more than one person
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split up the Global Configs page
4 participants