-
Notifications
You must be signed in to change notification settings - Fork 3
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
bugfix/country-long-test-addition #16
Conversation
This branch may be tested by using the following config in your local packages:
- git: https://github.com/fivetran/dbt_app_reporting.git
revision: bugfix/country-long-test-addition
warn-unpinned: false |
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 was able to recreate the test error, which was resolved with the new branch. I also tested Apple and Google individually, and I confirm their corresponding tests do not cause any issues. Lgtm!
CHANGELOG.md
Outdated
- Included the `country_long` field in the unique combination of columns test for the `app_reporting__country_report`. It has been identified that Apple will sometimes provide records with different country_long names; however, they will be the same country_short. This is due to some countries having multiple country_long spelling variations. | ||
|
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.
Just a quick note here--I updated the changelog to only mention Apple data since the Google data comes in only as a short code. We add in the long name later, so the same issue does not occur.
PR Overview
This PR will address the following Issue/Feature:
Issue #12 from the Apple Store package.
This PR will result in the following new package version:
v0.3.1
This change is only adjusting a unique combination of columns test to capture the nuance of the source data. This will not be a breaking change for existing users.
Please detail what change(s) this PR introduces and any additional information that should be known during the review of this PR:
This PR adds the
country_long
field in the unique combination of columns test for theapp_reporting__country_report
. It has been identified that Google and Apple will sometimes provide records with different country_long names; however, they will be the same country_short. This is due to some countries having a multiple country_long spelling variations. Please see the issue linked above for an example of this scenario and why the test is needed to account for the source data nuance.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":
To test these changes I ran the tests on our existing data and noticed the original test passed. This was as expected since we do not have any double countries in our data. That being said, I was able to modify some seed data to create a double record and saw the test pass as expected following the new entry.
Standard Updates
Please acknowledge that your PR contains the following standard updates:
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?
👯