Skip to content

Commit

Permalink
Er/1607 source paths (#4008)
Browse files Browse the repository at this point in the history
* WIP to replace source_path with model_path

* updated some test to point to new testing branches

https://github.com/dbt-labs/dbt-integration-project needs updates to get all tests working

* deprecate souce_paths but not remove fully

* added deprecation test for path deprecation

* replace data-pathswith seed-paths: ['seeds']

ypdated tests to use default directory of 'seeds' instead of 'data'

* added test for exception when paths incorectly defined

source-paths and data-paths have been deprecated in favor of model-paths and seed-paths.  You can still use the deprecated keys but you cannot define both the deprecated and new keys since we wouldn't know how to handle it.

* fixed test naming issue

* fix formatting issues, standardize names

* updated branches for dbt-integration-project

* updated changelog

* synced up rpc deletion messed up when merging

* changelog updates

automatic commit by git-black, original commits:
  0e9a679
  1620a17
  • Loading branch information
emmyoop authored and iknox-fa committed Feb 8, 2022
1 parent 70e4233 commit 9b22f7e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/dbt/task/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ def __is_protected_path(self, path):
This function identifies protected paths, so as not to clean them.
"""
abs_path = os.path.abspath(path)
protected_paths = self.config.model_paths + \
self.config.test_paths + ['.']
protected_paths = self.config.model_paths + self.config.test_paths + ["."]
protected_abs_paths = [os.path.abspath(p) for p in protected_paths]
return abs_path in set(protected_abs_paths) or self.__is_project_path(abs_path)

Expand Down

0 comments on commit 9b22f7e

Please sign in to comment.