Skip to content

[CT-2054] Add deprecation warnings for LOG_PATH and TARGET_PATH in dbt_project.yml #6882

@ChenyuLInx

Description

@ChenyuLInx

Issue

Currently, user would be able to set log-path and target-path in dbt_project.yml.

But since we initialize all of the flags before loading the project object, we need to
manually load the project object from a profile dir(link), read out the log-path and set it there.

One other issue with this setup is that dbt-server would load the project object before
invoking the rest of the core functionality, during that process we are actually calling
get_flags function
with will create a global flag. This causes circular dependency between
project and flags.

Solution

Move log_path and target-path out of dbt_project and move them into user_config that's
currently in profiles.yml. This would be a breaking change for certain user but clean up the
circular dependency of project and Flags.

Acceptance Criteria

LOG_PATH and TARGET_PATH are no longer being specified in dbt_project.yml, Flags no longer depend on project object.

Metadata

Metadata

Assignees

Labels

tech_debtBehind-the-scenes changes, with little direct impact on end-user functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions