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
**This PR will address the following Issue/Feature:**
1
+
<!--
2
+
Pre-Submission Reminders
3
+
Before marking this PR as "ready for review":
3
4
4
-
**This PR will result in the following new package version:**
5
-
<!--- Please add details around your decision for breaking vs non-breaking version upgrade. If this is a breaking change, were backwards-compatible options explored? -->
Copy file name to clipboardExpand all lines: CHANGELOG.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,25 @@
1
-
# dbt_facebook_pages version.version
1
+
# dbt_facebook_pages v1.0.0
2
+
[PR #18](https://github.com/fivetran/dbt_facebook_pages/pull/18) includes the following updates:
3
+
4
+
## Breaking Changes
5
+
6
+
### Source Package Consolidation
7
+
- Removed the dependency on the `fivetran/facebook_pages_source` package.
8
+
- All functionality from the source package has been merged into this transformation package for improved maintainability and clarity.
9
+
- If you reference `fivetran/facebook_pages_source` in your `packages.yml`, you must remove this dependency to avoid conflicts.
10
+
- Any source overrides referencing the `fivetran/facebook_pages_source` package will also need to be removed or updated to reference this package.
11
+
- Update any facebook_pages_source-scoped variables to be scoped to only under this package. See the [README](https://github.com/fivetran/dbt_facebook_pages?tab=readme-ov-file#change-the-build-schema) for how to configure the build schema of staging models.
12
+
- As part of the consolidation, vars are no longer used to reference staging models, and only sources are represented by vars. Staging models are now referenced directly with `ref()` in downstream models.
13
+
14
+
### dbt Fusion Compatibility Updates
15
+
- Updated package to maintain compatibility with dbt-core versions both before and after v1.10.6, which introduced a breaking change to multi-argument test syntax (e.g., `unique_combination_of_columns`).
16
+
- Temporarily removed unsupported tests to avoid errors and ensure smoother upgrades across different dbt-core versions. These tests will be reintroduced once a safe migration path is available.
17
+
- Removed all `dbt_utils.unique_combination_of_columns` tests.
18
+
- Moved `loaded_at_field: _fivetran_synced` under the `config:` block in `src_facebook_pages.yml`.
19
+
20
+
### Under the Hood
21
+
- Updated conditions in `.github/workflows/auto-release.yml`.
22
+
- Added `.github/workflows/generate-docs.yml`.
2
23
3
24
## Documentation
4
25
- Added Quickstart model counts to README. ([#15](https://github.com/fivetran/dbt_facebook_pages/pull/15))
- Produces modeled tables that leverage Facebook Pages from [Fivetran's connector](https://fivetran.com/docs/applications/facebook-pages) in the format described by [this ERD](https://fivetran.com/docs/applications/facebook_pages#schemainformation) and builds off the output of our [Facebook Pages source package](https://github.com/fivetran/dbt_facebook_pages_source).
21
+
- Produces modeled tables that leverage Facebook Pages from [Fivetran's connector](https://fivetran.com/docs/applications/facebook-pages) in the format described by [this ERD](https://fivetran.com/docs/applications/facebook_pages#schemainformation).
18
22
19
23
The main focus of the package is to transform the core social media object tables into analytics-ready models that can be easily unioned in to other social media platform packages to get a single view. This is aided by our [Social Media Reporting package](https://github.com/fivetran/dbt_social_media_reporting).
20
24
@@ -53,10 +57,10 @@ Include the following Facebook Pages package version in your `packages.yml`
53
57
```yaml
54
58
packages:
55
59
- package: fivetran/facebook_pages
56
-
version: [">=0.3.0", "<0.4.0"] # we recommend using ranges to capture non-breaking changes automatically
60
+
version: [">=1.0.0", "<1.1.0"] # we recommend using ranges to capture non-breaking changes automatically
57
61
```
58
62
59
-
Do NOT include the `facebook_pages_source` package in this file. The transformation package itself has a dependency on it and will install the source package as well.
63
+
> All required sources and staging models are now bundled into this transformation package. Do not include `fivetran/facebook_pages_source` in your `packages.yml` since this package has been deprecated.
60
64
61
65
### Step 3: Configure Your Variables
62
66
#### Database and Schema Variables
@@ -78,15 +82,15 @@ By default, this package will build the Facebook Pages staging models within a s
78
82
```yml
79
83
models:
80
84
facebook_pages:
81
-
+schema: my_new_schema_name # leave blank for just the target_schema
82
-
facebook_pages_source:
83
-
+schema: my_new_schema_name # leave blank for just the target_schema
85
+
+schema: my_new_schema_name # Leave +schema: blank to use the default target_schema.
86
+
staging:
87
+
+schema: my_new_schema_name # Leave +schema: blank to use the default target_schema.
84
88
```
85
89
86
90
#### Change the source table references
87
91
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:
88
-
> IMPORTANT: See this project's [`dbt_project.yml`](https://github.com/fivetran/dbt_facebook_pages_source/blob/main/dbt_project.yml) variable declarations to see the expected names.
89
-
92
+
> IMPORTANT: See this project's [`dbt_project.yml`](https://github.com/fivetran/dbt_facebook_pages/blob/main/dbt_project.yml) variable declarations to see the expected names.
### (Optional) Step 5: Orchestrate your models with Fivetran Transformations for dbt Core™
112
116
<details><summary>Expand for configurations</summary>
113
117
<br>
114
-
118
+
115
119
Fivetran offers the ability for you to orchestrate your dbt project through the [Fivetran Transformations for dbt Core™](https://fivetran.com/docs/transformations/dbt) product. Refer to the linked docs for more information on how to setup your project for orchestration through Fivetran.
116
120
</details>
117
121
118
122
## Does this package have dependencies?
119
123
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.
120
124
> 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.
121
-
125
+
122
126
```yml
123
127
packages:
124
-
- package: fivetran/facebook_pages_source
125
-
version: [">=0.3.0", "<0.4.0"]
126
-
127
128
- package: fivetran/fivetran_utils
128
129
version: [">=0.4.0", "<0.5.0"]
129
130
@@ -144,5 +145,5 @@ These dbt packages are developed by a small team of analytics engineers at Fivet
144
145
We highly encourage and welcome contributions to this package. Check out [this post](https://discourse.getdbt.com/t/contributing-to-a-dbt-package/657) on the best workflow for contributing to a package.
145
146
146
147
## Are there any resources available?
147
-
- If you encounter any questions or want to reach out for help, see the [GitHub Issue](https://github.com/fivetran/dbt_facebook_pages/issues/new/choose section to find the right avenue of support for you.
148
+
- If you encounter any questions or want to reach out for help, see the [GitHub Issue](https://github.com/fivetran/dbt_facebook_pages/issues/new/choose) section to find the right avenue of support for you.
148
149
- If you would like to provide feedback to the dbt package team at Fivetran, or would like to request a future dbt package to be developed, then feel free to fill out our [Feedback Form](https://www.surveymonkey.com/r/DQ7K7WW).
0 commit comments