You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: .github/ISSUE_TEMPLATE/bug-report.yml
+21-2
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
name: 🐞 Bug
2
2
description: Report a bug or an issue you've found within the dbt package
3
3
title: "[Bug] <title>"
4
-
labels: ["bug", "triage"]
4
+
labels: ["type:bug"]
5
5
body:
6
6
- type: markdown
7
7
attributes:
@@ -35,6 +35,12 @@ body:
35
35
description: A concise description of what you expected to happen.
36
36
validations:
37
37
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
38
44
- type: textarea
39
45
attributes:
40
46
label: dbt Project configurations
@@ -61,6 +67,19 @@ body:
61
67
- other (mention it in "Additional Context")
62
68
validations:
63
69
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
64
83
- type: textarea
65
84
attributes:
66
85
label: dbt Version
@@ -83,6 +102,6 @@ body:
83
102
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.
84
103
options:
85
104
- 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
Copy file name to clipboardexpand all lines: .github/ISSUE_TEMPLATE/feature-request.yml
+9-2
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
name: 🎉 Feature
2
2
description: Suggest a new feature for the Fivetran dbt package
3
3
title: "[Feature] <title>"
4
-
labels: ["enhancement"]
4
+
labels: ["type:enhancement"]
5
5
body:
6
6
- type: markdown
7
7
attributes:
@@ -20,6 +20,13 @@ body:
20
20
description: A clear and concise description of what you want to happen and why you want the new feature.
21
21
validations:
22
22
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
23
30
- type: textarea
24
31
attributes:
25
32
label: Describe alternatives you've considered
@@ -34,7 +41,7 @@ body:
34
41
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.
35
42
options:
36
43
- 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.
Copy file name to clipboardexpand all lines: .github/pull_request_template.md
+7-1
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,13 @@
19
19
<!--- To select a checkbox you simply need to add an "x" with no spaces between the brackets (eg. [x] Yes). -->
20
20
-[ ] Yes
21
21
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?**
23
29
<!--- For a complete list of markdown compatible emojis check our this git repo (https://gist.github.com/rxaviers/7360908) -->
- 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.
18
18
- 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/).
19
19
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"-->
22
21
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).
|[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. |
27
29
|[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. |
28
30
|[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. |
29
31
|[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. |
30
32
|[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. |
31
33
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
34
38
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.
36
40
- A **BigQuery**, **Snowflake**, **Redshift**, **PostgreSQL**, or **Databricks** destination.
37
41
38
-
### Databricks Dispatch Configuration
42
+
####Databricks Dispatch Configuration
39
43
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.
40
44
```yml
41
45
dispatch:
42
46
- macro_namespace: dbt_utils
43
47
search_order: ['spark_utils', 'dbt_utils']
44
48
```
45
49
46
-
## Step 2: Install the package
50
+
### Step 2: Install the package
47
51
Include the following Youtube Analytics package version in your `packages.yml` file:
48
52
> 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
49
53
@@ -55,7 +59,7 @@ packages:
55
59
```
56
60
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.
57
61
58
-
## Step 3: Define database and schema variables
62
+
### Step 3: Define database and schema variables
59
63
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:
60
64
61
65
```yml
@@ -65,7 +69,7 @@ vars:
65
69
youtube_analytics_database: your_database_name
66
70
```
67
71
68
-
## Step 4: Disabling Demographics Report
72
+
### Step 4: Disabling Demographics Report
69
73
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.
70
74
```yml
71
75
# dbt_project.yml
@@ -74,9 +78,9 @@ vars:
74
78
youtube__using_channel_demographics: false # true by default
75
79
```
76
80
77
-
## (Optional) Step 5: Additional configurations
81
+
### (Optional) Step 5: Additional configurations
78
82
79
-
### Change the build schema
83
+
#### Change the build schema
80
84
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:
81
85
82
86
```yml
@@ -88,7 +92,7 @@ models:
88
92
+schema: my_new_schema_name # leave blank for just the target_schema
89
93
```
90
94
91
-
### Change the source table references
95
+
#### Change the source table references
92
96
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:
93
97
> 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.
## (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™
102
106
<details><summary>Expand for details</summary>
107
+
<br>
103
108
104
109
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).
105
110
106
111
</details>
107
112
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.
110
115
> 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.
111
116
112
117
```yml
@@ -121,14 +126,13 @@ packages:
121
126
version: [">=0.3.0", "<0.4.0"]
122
127
```
123
128
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
126
131
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.
127
132
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.
130
135
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.
133
138
- 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