Skip to content

Commit

Permalink
Feature/3997 profiles test selection flag (#4270)
Browse files Browse the repository at this point in the history
* Address 3997. Test selection flag can be in profile.yml.

* Per Jerco's 4104 PR unresolved comments, unify i.s. predicate and add env var.

* Couple of flake8 touchups.

* Classier error handling using enum semantics.

* Cherry-pick in part of Gerda's commit to hopefully avoid a future merge conflict.

* Add 3997 to changelog.

Co-authored-by: Mila Page <versusfacit@users.noreply.github.com>

automatic commit by git-black, original commits:
  39f350f
  5d1b104
  • Loading branch information
VersusFacit authored and iknox-fa committed Feb 8, 2022
1 parent 1678e99 commit 460b72f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/dbt/graph/selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ def get_nodes_from_criteria(

neighbors = self.collect_specified_neighbors(spec, collected)
direct_nodes, indirect_nodes = self.expand_selection(
selected=(collected | neighbors),
indirect_selection=spec.indirect_selection
selected=(collected | neighbors), indirect_selection=spec.indirect_selection
)
return direct_nodes, indirect_nodes

Expand Down

0 comments on commit 460b72f

Please sign in to comment.