Skip to content

Commit 9422ea9

Browse files
docs
1 parent 3abaefa commit 9422ea9

9 files changed

+37
-21
lines changed

CHANGELOG.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
# dbt_app_reporting v0.UPDATE.UPDATE
1+
# dbt_app_reporting v0.3.0
22

3-
## Under the Hood:
3+
## Bug Fixes:
4+
[PR #14](https://github.com/fivetran/dbt_app_reporting/pull/14) includes the following changes:
5+
- This version of the transform package points to breaking changes in the upstream [Google Play](https://github.com/fivetran/dbt_google_play_source/blob/main/CHANGELOG.md) and [Apple Store](https://github.com/fivetran/dbt_apple_store_source/blob/main/CHANGELOG.md) source packages in which the [country code](https://github.com/fivetran/dbt_apple_store_source/blob/main/seeds/apple_store_country_codes.csv) mapping tables were updated to align with Apple's [format and inclusion list](https://developer.apple.com/help/app-store-connect/reference/app-store-localizations/) of country names.
6+
- This is a 🚨**breaking change**🚨 as you will need to re-seed (`dbt seed --full-refresh`) the `google_play__country_codes` [file](https://github.com/fivetran/dbt_google_play_source/blob/main/seeds/google_play__country_codes.csv) and `apple_store_country_codes` [file](https://github.com/fivetran/dbt_google_play_source/blob/main/seeds/apple_store_country_codes.csv) again.
47

8+
## Under the Hood:
59
- Incorporated the new `fivetran_utils.drop_schemas_automation` macro into the end of each Buildkite integration test job.
610
- Updated the pull request [templates](/.github).
711
# dbt_app_reporting v0.2.0

README.md

+14-8
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Include the following github package version in your `packages.yml`
4545
```yaml
4646
packages:
4747
- package: fivetran/app_reporting
48-
version: [">=0.2.0", "<0.3.0"] # we recommend using ranges to capture non-breaking changes automatically
48+
version: [">=0.3.0", "<0.4.0"] # we recommend using ranges to capture non-breaking changes automatically
4949
```
5050
5151
Do NOT include the individual app platform packages in this file. The app reporting package itself has dependencies on these packages and will install them as well.
@@ -86,7 +86,13 @@ vars:
8686

8787
> 👀 Subscriptions and financial data are NOT included in `app_reporting` data models. This data is leveraged in the individual Google Play and Apple App Store packages, which are installed within the App Reporting package.
8888

89-
## (Recommended) Step 5: Change the Build Schema
89+
## Step 5: Seed `country_codes` mapping tables (once)
90+
91+
In order to map longform territory names to their ISO country codes, we have adapted the CSV from [lukes/ISO-3166-Countries-with-Regional-Codes](https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes) to align Google and [Apple's](https://developer.apple.com/help/app-store-connect/reference/app-store-localizations/) country name formats for the App Reporting package.
92+
93+
You will need to `dbt seed` the `google_play__country_codes` [file](https://github.com/fivetran/dbt_google_play_source/blob/main/seeds/google_play__country_codes.csv) and `apple_store_country_codes` [file](https://github.com/fivetran/dbt_google_play_source/blob/main/seeds/apple_store_country_codes.csv) just once.
94+
95+
## (Recommended) Step 6: Change the Build Schema
9096
By default this package will build all models in your `<target_schema>` with the respective package suffixes (see below). This behavior can be tailored to your preference by making use of custom schemas. If you would like to override the current naming conventions, please add the following configuration to your `dbt_project.yml` file and rename `+schema` configs:
9197

9298
```yml
@@ -107,7 +113,7 @@ models:
107113

108114
> Provide a blank `+schema: ` to write to the `target_schema` without any suffix.
109115

110-
## (Optional) Step 6: Additional configurations
116+
## (Optional) Step 7: Additional configurations
111117
<details><summary>Expand to view configurations</summary>
112118

113119
### Change the source table references
@@ -122,7 +128,7 @@ vars:
122128
</details>
123129
<br>
124130

125-
## (Optional) Step 7: Orchestrate your models with Fivetran Transformations for dbt Core™
131+
## (Optional) Step 8: Orchestrate your models with Fivetran Transformations for dbt Core™
126132
<details><summary>Expand to view details</summary>
127133
<br>
128134

@@ -137,16 +143,16 @@ This dbt package is dependent on the following dbt packages. For more informatio
137143
```yml
138144
packages:
139145
- package: fivetran/apple_store
140-
version: [">=0.2.0", "<0.3.0"]
146+
version: [">=0.3.0", "<0.4.0"]
141147
142148
- package: fivetran/apple_store_source
143-
version: [">=0.2.0", "<0.3.0"]
149+
version: [">=0.3.0", "<0.4.0"]
144150
145151
- package: fivetran/google_play
146-
version: [">=0.2.0", "<0.3.0"]
152+
version: [">=0.3.0", "<0.4.0"]
147153
148154
- package: fivetran/google_play_source
149-
version: [">=0.2.0", "<0.3.0"]
155+
version: [">=0.3.0", "<0.4.0"]
150156
151157
- package: fivetran/fivetran_utils
152158
version: [">=0.4.0", "<0.5.0"]

dbt_project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'app_reporting'
2-
version: '0.2.0'
2+
version: '0.3.0'
33
config-version: 2
44
models:
55
app_reporting:

docs/catalog.json

+1-1
Large diffs are not rendered by default.

docs/index.html

+2-2
Large diffs are not rendered by default.

docs/manifest.json

+1-1
Large diffs are not rendered by default.

docs/run_results.json

+1-1
Large diffs are not rendered by default.

integration_tests/dbt_project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'app_reporting_integration_tests'
2-
version: '0.2.0'
2+
version: '0.3.0'
33
profile: 'integration_tests'
44
config-version: 2
55

packages.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
packages:
2-
- package: fivetran/google_play
3-
version: [">=0.2.0", "<0.3.0"]
4-
- package: fivetran/apple_store
5-
version: [">=0.2.0", "<0.3.0"]
2+
# - package: fivetran/google_play
3+
# version: [">=0.3.0", "<0.4.0"]
4+
# - package: fivetran/apple_store
5+
# version: [">=0.3.0", "<0.4.0"]
6+
- git: https://github.com/fivetran/dbt_google_play.git
7+
revision: bug/add-alt-country-names
8+
warn-unpinned: false
9+
- git: https://github.com/fivetran/dbt_apple_store.git
10+
revision: bug/add-alt-country-names
11+
warn-unpinned: false

0 commit comments

Comments
 (0)