Feature/api v3 updates - #11
Conversation
fivetran-joemarkiewicz
left a comment
There was a problem hiding this comment.
@fivetran-catfritz thanks for working though this PR! This is looking great, I do have a few comments in my review below that should be addressed before approving.
Additionally, in parallel to the transform PR, I wanted to highlight that I would recommend casting the id fields in the _report models to be of type string. This way you will not need to do the in join casting within the transformation models. I would prefer we do this casting in the staging models. Additionally, this ensures we are keeping the models consistent across. Even though it is strange we changed the datatype of the id for the history tables, but not the report in the API upgrade 🤔. Let me know if you have any concerns with this recommendation.
Thanks!
| - Added a new column, `native_language_locale`, to the `keyword_history` staging tables. | ||
| - Made the following changes to the `campaign_history` table: | ||
| - Added three new columns, `budget`, `budget_type`, and `effective_budget` | ||
| - Removed the `campaign_type`, `daily_budget`, `placement`, and `premium_bid_adjustment` columns |
There was a problem hiding this comment.
This is a breaking change. Would you be able to include this in the breaking section so customers are immediately aware of the change.
There was a problem hiding this comment.
I never really understand why GitHub highlights multiple lines in the review when I only selected one haha In my review I only meant this comment to pertain to line 9 in the above code block. The removal of fields are the breaking changes, but the others are more features and align with you previous CHANGELOG entry.
Would you be able to only include the removed fields as the breaking change to make it very apparent to users what fields are being removed. The others may then be listed as Feature updates as you had previously. Apologies for the confusion.
There was a problem hiding this comment.
Oh got it! I have updated.
|
Thanks for the suggestions! I made those and also updated the casting of ids to strings in the staging models. |
fivetran-joemarkiewicz
left a comment
There was a problem hiding this comment.
Please see my one small final comment here to apply before this is good to go.
Once that is applied this is all ready!! Thanks for working through these changes 😄
PR Overview
This PR will address the following Issue/Feature: #9
This PR will result in the following new package version:
0.2.0 - Columns deleted
Please detail what change(s) this PR introduces and any additional information that should be known during the review of this PR:
Features
native_language_locale, to thekeyword_historystaging tables.campaign_historytable:budget,budget_type, andeffective_budgetcampaign_type,daily_budget,placement, andpremium_bid_adjustmentcolumnsUnder the Hood
get_*_columnmacros now set the data type of theidcolumn from INTEGER to STRING.PR Checklist
Basic Validation
Please acknowledge that you have successfully performed the following commands locally:
Before marking this PR as "ready for review" the following have been applied:
Detailed Validation
Please acknowledge that the following validation checks have been performed prior to marking this PR as "ready for review":
Standard Updates
Please acknowledge that your PR contains the following standard updates:
DECISIONLOG updates have been updated (if applicable)dbt Docs
Please acknowledge that after the above were all completed the below were applied to your branch:
If you had to summarize this PR in an emoji, which would it be?
💃