Skip to content

Commit

Permalink
fixed issue with manifest schema changes not implemented for deepcopy…
Browse files Browse the repository at this point in the history
… overlooked arg order
  • Loading branch information
emmyoop committed Oct 1, 2021
1 parent 5799973 commit 332d23c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/dbt/contracts/graph/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,6 @@ def _matches(self, model: N) -> bool:

def search(self, haystack) -> Optional[N]:
"""Find an entry in the given iterable by name."""
# breakpoint()
for model in haystack.values():
if self._matches(model):
return model
Expand Down Expand Up @@ -738,7 +737,7 @@ def deepcopy(self):
exposures={k: _deepcopy(v) for k, v in self.exposures.items()},
selectors={k: _deepcopy(v) for k, v in self.selectors.items()},
metadata=self.metadata,
disabled=[_deepcopy(n) for n in self.disabled],
disabled={k: _deepcopy(v) for k, v in self.disabled.items()},
files={k: _deepcopy(v) for k, v in self.files.items()},
state_check=_deepcopy(self.state_check),
)
Expand Down Expand Up @@ -1042,12 +1041,12 @@ def __reduce_ex__(self, protocol):
self.docs,
self.exposures,
self.selectors,
self.disabled,
self.files,
self.metadata,
self.flat_graph,
self.state_check,
self.source_patches,
self.disabled,
self._doc_lookup,
self._source_lookup,
self._ref_lookup,
Expand Down

0 comments on commit 332d23c

Please sign in to comment.