Skip to content
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

Merged
merged 4 commits into from
Jan 19, 2023
Merged

Conversation

ChenyuLInx
Copy link
Contributor

Resolves #5554

Description

tests/adapter/dbt/tests/adapter/grants/test_snapshot_grants.py now runs fine and it invokes snapshot from dbtRunner on feature branch

Checklist

@ChenyuLInx ChenyuLInx requested review from a team as code owners January 18, 2023 00:22
@cla-bot cla-bot bot added the cla:yes label Jan 18, 2023
@github-actions
Copy link
Contributor

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.

@ChenyuLInx ChenyuLInx requested review from iknox-fa, MichelleArk, stu-k and aranke and removed request for peterallenwebb and nathaniel-may January 18, 2023 00:23
Copy link
Member

@aranke aranke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, couple nits.

@@ -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
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can do it

@@ -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)
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants