-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Click snapshot as click command (#5972) #6640
Conversation
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, couple nits.
core/dbt/contracts/results.py
Outdated
@@ -207,11 +207,15 @@ class RunExecutionResult( | |||
generated_at: datetime = field(default_factory=datetime.utcnow) | |||
|
|||
def write(self, path: str): | |||
# just need shallow copy as we're not modifying content in dict |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be part of a separate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can do it
core/dbt/contracts/results.py
Outdated
@@ -207,11 +207,15 @@ class RunExecutionResult( | |||
generated_at: datetime = field(default_factory=datetime.utcnow) | |||
|
|||
def write(self, path: str): | |||
# just need shallow copy as we're not modifying content in dict | |||
args = self.args.copy() | |||
args.pop("MP_CONTEXT", None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: use a list comprehension + lower
to make this a bit cleaner.
Resolves #5554
Description
tests/adapter/dbt/tests/adapter/grants/test_snapshot_grants.py
now runs fine and it invokes snapshot from dbtRunner on feature branchChecklist
changie new
to create a changelog entry