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

add unit test and move default logic to mashumaro hook #3305

Merged
merged 2 commits into from
Apr 28, 2021

Conversation

kwigley
Copy link
Contributor

@kwigley kwigley commented Apr 28, 2021

resolves #3218

Description

Adds a test for defaulting BigQuery project/database name. Fixed regression by moving default logic in new object serialization hooks.

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt next" section.

@cla-bot cla-bot bot added the cla:yes label Apr 28, 2021
@kwigley kwigley requested review from a team, nathaniel-may, iknox-fa, gshank and jtcohen6 and removed request for a team April 28, 2021 13:37
@kwigley kwigley self-assigned this Apr 28, 2021
Copy link
Contributor

@jtcohen6 jtcohen6 left a comment

Choose a reason for hiding this comment

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

Locally, I'm able to remove database/project from profiles.yml, and everything works. Nice!

@kwigley kwigley merged commit 8ade68a into 0.19.latest Apr 28, 2021
@kwigley kwigley deleted the fix/bigquery-no-project branch April 28, 2021 17:37
@jtcohen6
Copy link
Contributor

@kwigley I see this merged into 0.19.latest, which makes sense. We'll want this fix in develop too, right?

@kwigley
Copy link
Contributor Author

kwigley commented Apr 28, 2021

@jtcohen6 for sure! I assumed I'd be able to merge 0.19.latest into develop, but I'm realizing that there are many many conflicts. I'll cherry-pick the fix over instead.

kwigley pushed a commit that referenced this pull request Apr 28, 2021
add unit test and move default logic to mashumaro hook
kwigley pushed a commit that referenced this pull request Apr 28, 2021
add unit test and move default logic to mashumaro hook
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.

4 participants