Skip to content

Commit bdb4623

Browse files
Documentation Standard Updates (#16)
* MagicBot/documentation-updates * Update README.md * Update README.md --------- Co-authored-by: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com>
1 parent 216449e commit bdb4623

File tree

8 files changed

+87
-44
lines changed

8 files changed

+87
-44
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

+21-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 🐞 Bug
22
description: Report a bug or an issue you've found within the dbt package
33
title: "[Bug] <title>"
4-
labels: ["bug", "triage"]
4+
labels: ["type:bug"]
55
body:
66
- type: markdown
77
attributes:
@@ -35,6 +35,12 @@ body:
3535
description: A concise description of what you expected to happen.
3636
validations:
3737
required: true
38+
- type: textarea
39+
attributes:
40+
label: Possible solution
41+
description: Were you able to investigate and/or discover a potential fix to this bug in your investigation? If so, it would be much appreciated if you could submit code samples to show us how your fix resolved this issue.
42+
validations:
43+
required: false
3844
- type: textarea
3945
attributes:
4046
label: dbt Project configurations
@@ -61,6 +67,19 @@ body:
6167
- other (mention it in "Additional Context")
6268
validations:
6369
required: true
70+
- type: dropdown
71+
id: orchestration_type
72+
attributes:
73+
label: How are you running this dbt package?
74+
multiple: true
75+
options:
76+
- Fivetran Quickstart Data Model
77+
- Fivetran Transformations
78+
- dbt Core™
79+
- dbt Cloud™
80+
- other (mention it in "Additional Context")
81+
validations:
82+
required: true
6483
- type: textarea
6584
attributes:
6685
label: dbt Version
@@ -83,6 +102,6 @@ body:
83102
description: Our team will assess this issue and let you know if we will add it to a future sprint. However, if you would like to expedite the solution, we encourage you to contribute to the package via a PR. Our team will then work with you to approve and merge your contributions as soon as possible.
84103
options:
85104
- label: Yes.
86-
- label: Yes, but I will need assistance and will schedule time during our [office hours](https://calendly.com/fivetran-solutions-team/fivetran-solutions-team-office-hours) for guidance
105+
- label: Yes, but I will need assistance.
87106
- label: No.
88107
required: false

.github/ISSUE_TEMPLATE/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
contact_links:
2-
- name: Ask a question during our office hours
3-
url: https://calendly.com/fivetran-solutions-team/fivetran-solutions-team-office-hours
4-
about: Schedule time during the external office hours block with the Fivetran Analytics Engineering team for support
2+
- name: Provide feedback to our dbt package team
3+
url: https://www.surveymonkey.com/r/DQ7K7WW
4+
about: Fill out our survey form to provide valuable feedback to the Fivetran team developing and maintaining the dbt packages.
55
- name: Fivetran connector question
66
url: https://support.fivetran.com/hc
77
about: Have a question about your connector? Check out the Fivetran support portal for more details.
@@ -10,4 +10,4 @@ contact_links:
1010
about: Check out the dbt docs for all dbt related information
1111
- name: Hang out in dbt Slack
1212
url: https://www.getdbt.com/community/
13-
about: Have a question or just want to chat with fellow data friends, join dbt Slack and hangout in the tools-fivetran channel with us!
13+
about: Have a question or just want to chat with fellow data friends, join dbt Slack and hangout in the tools-fivetran channel with us!

.github/ISSUE_TEMPLATE/feature-request.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 🎉 Feature
22
description: Suggest a new feature for the Fivetran dbt package
33
title: "[Feature] <title>"
4-
labels: ["enhancement"]
4+
labels: ["type:enhancement"]
55
body:
66
- type: markdown
77
attributes:
@@ -20,6 +20,13 @@ body:
2020
description: A clear and concise description of what you want to happen and why you want the new feature.
2121
validations:
2222
required: true
23+
- type: textarea
24+
attributes:
25+
label: How would you implement this feature?
26+
description: |
27+
How would you build out this feature with your existing data? Any code examples you can provide to help accelerate development on this issue?
28+
validations:
29+
required: true
2330
- type: textarea
2431
attributes:
2532
label: Describe alternatives you've considered
@@ -34,7 +41,7 @@ body:
3441
description: Our team will assess this feature and let you know if we will add it to a future sprint. However, if you would like to expedite the feature, we encourage you to contribute to the package via a PR. Our team will then work with you to approve and merge your contributions as soon as possible.
3542
options:
3643
- label: Yes.
37-
- label: Yes, but I will need assistance and will schedule time during your [office hours](https://calendly.com/fivetran-solutions-team/fivetran-solutions-team-office-hours) for guidance.
44+
- label: Yes, but I will need assistance.
3845
- label: No.
3946
required: false
4047
- type: textarea

.github/PULL_REQUEST_TEMPLATE/maintainer_pull_request_template.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,19 @@
1111
### Basic Validation
1212
Please acknowledge that you have successfully performed the following commands locally:
1313
- [ ] dbt run –full-refresh && dbt test
14-
- [ ] dbt run (if incremental models are present)
14+
- [ ] dbt run (if incremental models are present) && dbt test
1515

1616
Before marking this PR as "ready for review" the following have been applied:
17-
- [ ] The appropriate issue has been linked, tagged, and properly assigned.
18-
- [ ] All necessary documentation and version upgrades have been applied.
19-
<!--- Be sre to update the package version in the dbt_project.yml, integration_tests/dbt_project.yml, and README if necessary. -->
20-
- [ ] docs were regenerated (unless this PR does not include any code or yml updates).
21-
- [ ] BuildKite integration tests are passing.
22-
- [ ] Detailed validation steps have been provided below.
17+
- [ ] The appropriate issue has been linked, tagged, and properly assigned
18+
- [ ] All necessary documentation and version upgrades have been applied
19+
- [ ] docs were regenerated (unless this PR does not include any code or yml updates)
20+
- [ ] BuildKite integration tests are passing
21+
- [ ] Detailed validation steps have been provided below
2322

2423
### Detailed Validation
2524
Please share any and all of your validation steps:
2625
<!--- Provide the steps you took to validate your changes below. -->
2726

2827
### If you had to summarize this PR in an emoji, which would it be?
2928
<!--- For a complete list of markdown compatible emojis check our this git repo (https://gist.github.com/rxaviers/7360908) -->
30-
:dancer:
29+
:dancer:

.github/pull_request_template.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@
1919
<!--- To select a checkbox you simply need to add an "x" with no spaces between the brackets (eg. [x] Yes). -->
2020
- [ ] Yes
2121

22-
**Provide an emoji that best describes your current mood**
22+
**Typically there are additional maintenance changes required before this will be ready for an upcoming release. Are you comfortable with the Fivetran team making a few commits directly to your branch?**
23+
<!--- If you select Yes this will help expedite your PR in case there are small changes required before approval. We encourage you not to use this branch in a production environment as we may make additional updates. -->
24+
<!--- If you select No, we will not make any changes directly to your branch and will either communicate any planned changes via the PR thread or will merge your PR into a separate branch so we may make changes without modifying your branch.. -->
25+
- [ ] Yes
26+
- [ ] No
27+
28+
**If you had to summarize this PR in an emoji, which would it be?**
2329
<!--- For a complete list of markdown compatible emojis check our this git repo (https://gist.github.com/rxaviers/7360908) -->
2430
:dancer:
2531

.github/workflows/auto-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ on:
99
jobs:
1010
call-workflow-passing-data:
1111
if: github.event.pull_request.merged
12-
uses: fivetran/dbt_package_automations/.github/workflows/auto-release.yml@feature/auto-releaser
12+
uses: fivetran/dbt_package_automations/.github/workflows/auto-release.yml@main
1313
secrets: inherit

.quickstart/quickstart.yml

+8
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,11 @@ destination_configurations:
1212
dispatch:
1313
- macro_namespace: dbt_utils
1414
search_order: [ 'spark_utils', 'dbt_utils' ]
15+
16+
public_models: [
17+
"youtube__age_demographics_pivot",
18+
"youtube__gender_demographics_pivot",
19+
"youtube__video_metadata",
20+
"youtube__video_report",
21+
"youtube__demographics_report"
22+
]

README.md

+30-26
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,43 @@
1111
</p>
1212

1313
# Youtube Analytics Transformation dbt Package ([Docs](https://fivetran.github.io/dbt_youtube_analytics/))
14-
# 📣 What does this dbt package do?
14+
## What does this dbt package do?
1515
- Produces modeled tables that leverage data in the format described by the [YouTube Channel Report schemas](https://fivetran.com/docs/applications/youtube-analytics#schemainformation) and builds off the output of our [Youtube Analytics source package](https://github.com/fivetran/dbt_youtube_analytics_source).
16-
- Transform the core object tables into analytics-ready models.
17-
- Includes options to explore video demographics and a comprehensive overview of video performance that you could combine with other organic ad platform reports.
16+
- Transform the core object tables into analytics-ready models.
17+
- Includes options to explore video demographics and a comprehensive overview of video performance that you could combine with other organic ad platform reports.
1818
- Generates a comprehensive data dictionary of your source and modeled Youtube Analytics data through the [dbt docs site](https://fivetran.github.io/dbt_youtube_analytics/).
1919

20-
The following table provides a detailed list of all models materialized within this package by default.
21-
> TIP: See more details about these models in the package's [dbt docs site](https://fivetran.github.io/dbt_youtube_analytics/#!/overview?g_v=1&g_e=seeds).
20+
<!--section=“youtube_transformation_model"-->
2221

22+
The following table provides a detailed list of all tables materialized within this package by default.
23+
> TIP: See more details about these tables in the package's [dbt docs site](https://fivetran.github.io/dbt_youtube_analytics/#!/overview?g_v=1&g_e=seeds).
2324
24-
| **Model** | **Description** |
25+
26+
| **Table** | **Description** |
2527
| ------------------------- | ------------------------------------------------------------------------------------------------------------------ |
2628
| [youtube__video_report](https://fivetran.github.io/dbt_youtube_analytics/#!/model/model.youtube_analytics.youtube__video_report) | Each record represents the daily aggregation of your YouTube video performance. |
2729
| [youtube__demographics_report](https://fivetran.github.io/dbt_youtube_analytics/#!/model/model.youtube_analytics.youtube__demographics_report) | Each record represents a daily video view percentage by gender, age, and country. |
2830
| [youtube__age_demographics_pivot](https://fivetran.github.io/dbt_youtube_analytics/#!/model/model.youtube_analytics.youtube__age_demographics_pivot) | Each record represents a daily video view percentage with the age ranges pivoted out for quicker analysis. |
2931
| [youtube__gender_demographics_pivot](https://fivetran.github.io/dbt_youtube_analytics/#!/model/model.youtube_analytics.youtube__gender_demographics_pivot) | Each record represents a daily video view percentage with the gender options pivoted out for quicker analysis. |
3032
| [youtube__video_metadata](https://fivetran.github.io/dbt_youtube_analytics/#!/model/model.youtube_analytics.youtube__video_metadata) | Each record represents an individual video enriched with metadata. |
3133

32-
# 🎯 How do I use the dbt package?
33-
## Step 1: Prerequisites
34+
<!--section-end-->
35+
36+
## How do I use the dbt package?
37+
### Step 1: Prerequisites
3438
To use this dbt package, you must have the following:
35-
- At least one Fivetran Youtube Analytics connector syncing data into your destination.
39+
- At least one Fivetran Youtube Analytics connector syncing data into your destination.
3640
- A **BigQuery**, **Snowflake**, **Redshift**, **PostgreSQL**, or **Databricks** destination.
3741

38-
### Databricks Dispatch Configuration
42+
#### Databricks Dispatch Configuration
3943
If you are using a Databricks destination with this package you will need to add the below (or a variation of the below) dispatch configuration within your `dbt_project.yml`. This is required in order for the package to accurately search for macros within the `dbt-labs/spark_utils` then the `dbt-labs/dbt_utils` packages respectively.
4044
```yml
4145
dispatch:
4246
- macro_namespace: dbt_utils
4347
search_order: ['spark_utils', 'dbt_utils']
4448
```
4549
46-
## Step 2: Install the package
50+
### Step 2: Install the package
4751
Include the following Youtube Analytics package version in your `packages.yml` file:
4852
> TIP: Check [dbt Hub](https://hub.getdbt.com/) for the latest installation instructions or [read the dbt docs](https://docs.getdbt.com/docs/package-management) for more information on installing packages
4953

@@ -55,7 +59,7 @@ packages:
5559
```
5660
Do NOT include the `youtube_analytics_source` package in this file. The transformation package itself has a dependency on it and will install the source package as well.
5761

58-
## Step 3: Define database and schema variables
62+
### Step 3: Define database and schema variables
5963
By default, this package runs using your destination and the `youtube_analytics` schema. If this is not where your Youtube Analytics data is (for example, if your youtube schema is named `youtube_analytics_fivetran`), add the following configuration to your root `dbt_project.yml` file:
6064

6165
```yml
@@ -65,7 +69,7 @@ vars:
6569
youtube_analytics_database: your_database_name
6670
```
6771

68-
## Step 4: Disabling Demographics Report
72+
### Step 4: Disabling Demographics Report
6973
This packages assumes you are syncing the YouTube `channel_demographics_a1` report. If you are _not_ syncing this report, you may add the below configuration to your `dbt_project.yml` to disable the `stg_youtube__demographics` model and all downstream references.
7074
```yml
7175
# dbt_project.yml
@@ -74,9 +78,9 @@ vars:
7478
youtube__using_channel_demographics: false # true by default
7579
```
7680

77-
## (Optional) Step 5: Additional configurations
81+
### (Optional) Step 5: Additional configurations
7882

79-
### Change the build schema
83+
#### Change the build schema
8084
By default, this package will build the YouTube Analytics staging models within a schema titled (`<target_schema>` + `_youtube_source`) and the YouTube Analytics final models within a schema titled (`<target_schema>` + `_youtube`) in your target database. If this is not where you would like your modeled YouTube Analytics data to be written to, add the following configuration to your `dbt_project.yml` file:
8185

8286
```yml
@@ -88,7 +92,7 @@ models:
8892
+schema: my_new_schema_name # leave blank for just the target_schema
8993
```
9094

91-
### Change the source table references
95+
#### Change the source table references
9296
If an individual source table has a different name than the package expects, add the table name as it appears in your destination to the respective variable:
9397
> IMPORTANT: See this project's [`dbt_project.yml`](https://github.com/fivetran/dbt_youtube_analytics_source/blob/main/dbt_project.yml) variable declarations to see the expected names.
9498

@@ -98,15 +102,16 @@ vars:
98102
youtube_analytics_<default_source_table_name>_identifier: your_table_name
99103
```
100104

101-
## (Optional) Step 6: Orchestrate your models with Fivetran Transformations for dbt Core™
105+
### (Optional) Step 6: Orchestrate your models with Fivetran Transformations for dbt Core™
102106
<details><summary>Expand for details</summary>
107+
<br>
103108

104109
Fivetran offers the ability for you to orchestrate your dbt project through [Fivetran Transformations for dbt Core™](https://fivetran.com/docs/transformations/dbt). Learn how to set up your project for orchestration through Fivetran in our [Transformations for dbt Core™ setup guides](https://fivetran.com/docs/transformations/dbt#setupguide).
105110

106111
</details>
107112

108-
# 🔍 Does this package have dependencies?
109-
This dbt package is dependent on the following dbt packages. Please be aware that these dependencies are installed by default within this package. For more information on the following packages, refer to the [dbt hub](https://hub.getdbt.com/) site.
113+
## Does this package have dependencies?
114+
This dbt package is dependent on the following dbt packages. These dependencies are installed by default within this package. For more information on the following packages, refer to the [dbt hub](https://hub.getdbt.com/) site.
110115
> IMPORTANT: If you have any of these dependent packages in your own `packages.yml` file, we highly recommend that you remove them from your root `packages.yml` to avoid package version conflicts.
111116

112117
```yml
@@ -121,14 +126,13 @@ packages:
121126
version: [">=0.3.0", "<0.4.0"]
122127
```
123128

124-
# 🙌 How is this package maintained and can I contribute?
125-
## Package Maintenance
129+
## How is this package maintained and can I contribute?
130+
### Package Maintenance
126131
The Fivetran team maintaining this package _only_ maintains the latest version of the package. We highly recommend that you stay consistent with the [latest version](https://hub.getdbt.com/fivetran/youtube_analytics/latest/) of the package and refer to the [CHANGELOG](https://github.com/fivetran/dbt_youtube_analytics/blob/main/CHANGELOG.md) and release notes for more information on changes across versions.
127132

128-
## Contributions
129-
A small team of analytics engineers at Fivetran develops these dbt packages. However, the packages are made better by community contributions!
133+
### Contributions
134+
A small team of analytics engineers at Fivetran develops these dbt packages. However, the packages are made better by community contributions.
130135

131-
# 🏪 Are there any resources available?
132-
- If you have questions or want to reach out for help, please refer to the [GitHub Issue](https://github.com/fivetran/dbt_youtube_analytics/issues/new/choose) section to find the right avenue of support for you.
136+
## Are there any resources available?
137+
- If you have questions or want to reach out for help, see the [GitHub Issue](https://github.com/fivetran/dbt_youtube_analytics/issues/new/choose) section to find the right avenue of support for you.
133138
- If you would like to provide feedback to the dbt package team at Fivetran or would like to request a new dbt package, fill out our [Feedback Form](https://www.surveymonkey.com/r/DQ7K7WW).
134-
- Have questions or want to just say hi? Book a time during our office hours [on Calendly](https://calendly.com/fivetran-solutions-team/fivetran-solutions-team-office-hours) or email us at solutions@fivetran.com.

0 commit comments

Comments
 (0)