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

1.5 Feature deprecations for target and logs #3129

Merged
merged 2 commits into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions website/docs/reference/project-configs/log-path.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,26 @@ In the manner of a ["global" config](global-configs), the log path can be set in
2. `DBT_LOG_PATH` environment variable
3. `log-path` in `dbt_project.yml`

<VersionBlock firstVersion="1.5">

:::warning Feature deprecation

As of dbt version 1.5, setting the `log-path` in the `dbt_project.yml` is deprecated. Backward compatibility is still supported in 1.5 but will be removed in a future update. Migrate to the CLI flag or environment variable methods to avoid potential errors or disruptions.

:::

The precedence order is: CLI flag > env var > `dbt_project.yml(deprecated)`

</VersionBlock>

<VersionBlock lastVersion="1.4">

The precedence order is: CLI flag > env var > `dbt_project.yml`

</VersionBlock>

Copy link
Collaborator

Choose a reason for hiding this comment

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

I didn't realize we could nest these version blocks!

</VersionBlock>

## Examples
### Write logs to a subdirectory named `dbt_logs` instead of `logs`

Expand Down
16 changes: 16 additions & 0 deletions website/docs/reference/project-configs/target-path.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,26 @@ In the manner of a ["global" config](global-configs), the target path can be set
2. `DBT_TARGET_PATH` environment variable
3. `target-path` in `dbt_project.yml`

<VersionBlock firstVersion="1.5">

:::warning Feature deprecation

As of dbt version 1.5, setting the `target-path` in the `dbt_project.yml` is deprecated. Backward compatibility is still supported in 1.5 but will be removed in a future update. Migrate to the CLI flag or environment variable methods to avoid potential errors or disruptions.

:::

The precedence order is: CLI flag > env var > `dbt_project.yml(deprecated)`

</VersionBlock>

<VersionBlock lastVersion="1.4">

The precedence order is: CLI flag > env var > `dbt_project.yml`

</VersionBlock>

</VersionBlock>

## Examples
### Use a subdirectory named `compiled` for compiled files

Expand Down