-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
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.