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

fix MP_CONTEXT is not JSON serializable #6650

Merged
merged 2 commits into from
Jan 19, 2023

Conversation

ChenyuLInx
Copy link
Contributor

Resolves #6509

This fixes the issue by adding logic to skip duplicated capped attributes introduced in Flags, also remove mp_context that is added.
Test that failed before now passes

  • tests/adapter/dbt/tests/adapter/grants/test_snapshot_grants.py

@ChenyuLInx ChenyuLInx requested a review from a team as a code owner January 19, 2023 00:09
@cla-bot cla-bot bot added the cla:yes label Jan 19, 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.

1 similar comment
@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 MichelleArk, stu-k, iknox-fa and aranke and removed request for mikealfare and colin-rogers-dbt January 19, 2023 00:09
@ChenyuLInx ChenyuLInx added the Skip Changelog Skips GHA to check for changelog file label Jan 19, 2023
@ChenyuLInx ChenyuLInx changed the title Tracking works with Click (#5972) fix MP_CONTEXT is not JSON serializable Jan 19, 2023
@jtcohen6 jtcohen6 linked an issue Jan 19, 2023 that may be closed by this pull request
@@ -642,7 +642,10 @@ def args_to_dict(args):
dict_args = {}
# remove args keys that clutter up the dictionary
for key in var_args:
if key == "cls":
if key.lower() in var_args and key == key.upper():
# skip all caped keys being introduced by Flags in dbt.cli.flags
Copy link
Contributor

Choose a reason for hiding this comment

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

typo/nit: 'caped' - perhaps you meant 'capped'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes Skip Changelog Skips GHA to check for changelog file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CT-1746] Flags.MP_CONTEXT is not JSON serializable
2 participants