Skip to content

Commit c933e64

Browse files
rlh1994Emiel Verkade
and
Emiel Verkade
committed
Prepare for release
Co-authored-by: Emiel Verkade <emiel@snowplowanalytics.com>
1 parent 800a862 commit c933e64

12 files changed

+24
-20
lines changed

CHANGELOG

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
snowplow-web 0.16.0 (2023-0X-XX)
1+
snowplow-web 0.16.0-rc1 (2023-08-31)
22
---------------------------------------
33
## Summary
4-
TBC
4+
This release candidate adds a load of new features, powered by a complete refactor of the core processing of the package by moving it out to the new `base` macro functionality provided in `snowplow_utils`. This enables users to now specify custom fields for sessionization and user identification, to add custom entities/SDEs fields to the base events table for redshift/postgres, and to add passthrough fields to the derived tables so you can now more easily add your own fields to our tables. In addition we've increased the flexibility of how you apply user stitching, and made it available on the page views table!
5+
6+
As always with a release candidate please feedback any issues you find, either via [Github](https://github.com/snowplow/dbt-snowplow-web/issues/new/choose) or [Discourse](https://discourse.snowplow.io/), and the new docs for this version of the package are available at a temporary [preview docs site](https://deploy-preview-445--snowplow-docs.netlify.app/docs/modeling-your-data/modeling-your-data-with-dbt/dbt-models/dbt-web-data-model/) before they are deployed to the main site when the full version of the package is released.
7+
8+
From this release onwards, the package is being released under the [Snowplow Community License, Version 1.0](https://docs.snowplow.io/community-license-1.0/). If you are uncertain how it applies to your use case, check our answers to [frequently asked questions](https://docs.snowplow.io/docs/contributing/community-license-faq/).
59

610
## 🚨 Breaking Changes 🚨
711
- Bumped required dbt version to 1.5.0
812
- Added new fields (`original_domain_sessionid` and `original_domain_userid`) to all tables to support custom identifiers
913
- Bumped snowplow_utils required version to 0.15.0
1014
- Altered entity/self-describing table variables to only be table names, instead of source strings
11-
- Renamed columns in quarantined sessions and sessions lifecycle manifest table (please run the ALTER TABLE statements or do a full-refresh)
15+
- Renamed columns in quarantined sessions and sessions lifecycle manifest table (please run the ALTER TABLE statements in the migration guide or do a full-refresh)
1216
- Seeds have been renamed to be prefixed with `snowplow_web_*` to align with the rest of the package, and now you can use your own seed files or tables in their place (see the package config)
1317

1418
## Features
@@ -18,13 +22,14 @@ TBC
1822
- Add new fields `original_domain_sessionid` and `original_domain_userid` to derived tables (where applicable)
1923
- Add ability to pass fields through to derived page views, sessions, and user tables
2024
- Add option to choose the logged `user_id` field that session stitching uses
25+
- Add ability to run user stitching on the derived page views table
2126

2227
## Under the hood
2328
- Aligned variables to follow the public docs
2429
- Contexts are now joined and de-duped via a macro for Postgres/Redshift
2530

2631
## Upgrading
27-
Bump the snowplow-web version in your `packages.yml` file.
32+
Bump the snowplow-web version in your `packages.yml` file and follow all the other steps in our [migration guide](https://deploy-preview-445--snowplow-docs.netlify.app/docs/modeling-your-data/modeling-your-data-with-dbt/migration-guides/web/).
2833

2934

3035
snowplow-web 0.15.2 (2023-07-28)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ If you find a bug, please report an issue on GitHub.
6565

6666
# Copyright and license
6767

68-
The snowplow-web package is Copyright 2021-present Snowplow Analytics Ltd.
68+
The snowplow-web package is Copyright 2020-present Snowplow Analytics Ltd.
6969

7070
This distribution is all licensed under the [Snowplow Community License, Version 1.0][license] . (If you are uncertain how it applies to your use case, check our answers to [frequently asked questions](https://docs.snowplow.io/docs/contributing/community-license-faq/).)
7171

custom_example/dbt_project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'snowplow_custom_example'
2-
version: '0.15.2'
2+
version: '0.16.0-rc1'
33
config-version: 2
44

55
dispatch:

dbt_project.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'snowplow_web'
2-
version: '0.15.2'
2+
version: '0.16.0-rc1'
33
config-version: 2
44

55
require-dbt-version: [">=1.5.0", "<2.0.0"]
@@ -111,7 +111,7 @@ on-run-end:
111111
- "{{ snowplow_utils.snowplow_incremental_post_hook('snowplow_web') }}"
112112

113113

114-
# Tag 'snowplow_web_incremental' allows snowplow_incremental_post_hook to identify Snowplow models and add their last sucessfull collector_tstamp to the manifest.
114+
# Tag 'snowplow_web_incremental' allows snowplow_incremental_post_hook to identify Snowplow models and add their last sucessful collector_tstamp to the manifest.
115115

116116

117117
# Please only add those that you change the values of to your root dbt_project.yml file, do not copy all values as this can lead to unexpected issues

docs/markdown/snowplow_web_overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ If you find a bug, please report an issue on GitHub.
3636

3737
# Copyright and license
3838

39-
The snowplow-web package is Copyright 2021-2023 Snowplow Analytics Ltd.
39+
The snowplow-web package is Copyright 2020-present Snowplow Analytics Ltd.
4040

4141
This distribution is all licensed under the [Snowplow Community License, Version 1.0][license] . (If you are uncertain how it applies to your use case, check our answers to [frequently asked questions](https://docs.snowplow.io/docs/contributing/community-license-faq/).)
4242

integration_tests/dbt_project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'snowplow_web_integration_tests'
2-
version: '0.15.2'
2+
version: '0.16.0-rc1'
33
config-version: 2
44

55
profile: 'integration_tests'

models/base/manifest/snowplow_web_base_sessions_lifecycle_manifest.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ You may obtain a copy of the Snowplow Community License Version 1.0 at https://d
2929
}}
3030

3131
{% set sessions_lifecycle_manifest_query = snowplow_utils.base_create_snowplow_sessions_lifecycle_manifest(
32-
session_identifiers=var('snowplow__session_identifiers', [{"table" : "events", "field" : "domain_sessionid"}]),
32+
session_identifiers=var('snowplow__session_identifiers', [{"schema" : "atomic", "field" : "domain_sessionid"}]),
3333
session_sql=var('snowplow__session_sql', none),
3434
session_timestamp=var('snowplow__session_timestamp', 'collector_tstamp'),
35-
user_identifiers=var('snowplow__user_identifiers', [{"table": "events", "field" : "domain_userid"}]),
35+
user_identifiers=var('snowplow__user_identifiers', [{"schema": "atomic", "field" : "domain_userid"}]),
3636
user_sql=var('snowplow__user_sql', none),
3737
quarantined_sessions='snowplow_web_base_quarantined_sessions',
3838
derived_tstamp_partitioned=var('snowplow__derived_tstamp_partitioned', true),

models/base/scratch/bigquery/snowplow_web_base_events_this_run.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You may obtain a copy of the Snowplow Community License Version 1.0 at https://d
1313

1414
{% set base_events_query = snowplow_utils.base_create_snowplow_events_this_run(
1515
sessions_this_run_table='snowplow_web_base_sessions_this_run',
16-
session_identifiers=var('snowplow__session_identifiers', [{"table" : "events", "field" : "domain_sessionid"}]),
16+
session_identifiers=var('snowplow__session_identifiers', [{"schema" : "atomic", "field" : "domain_sessionid"}]),
1717
session_sql=var('snowplow__session_sql', none),
1818
session_timestamp=var('snowplow__session_timestamp', 'collector_tstamp'),
1919
derived_tstamp_partitioned=var('snowplow__derived_tstamp_partitioned', true),

models/base/scratch/databricks/snowplow_web_base_events_this_run.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You may obtain a copy of the Snowplow Community License Version 1.0 at https://d
1414

1515
{% set base_events_query = snowplow_utils.base_create_snowplow_events_this_run(
1616
sessions_this_run_table='snowplow_web_base_sessions_this_run',
17-
session_identifiers=var('snowplow__session_identifiers', [{"table" : "events", "field" : "domain_sessionid"}]),
17+
session_identifiers=var('snowplow__session_identifiers', [{"schema" : "atomic", "field" : "domain_sessionid"}]),
1818
session_sql=var('snowplow__session_sql', none),
1919
session_timestamp=var('snowplow__session_timestamp', 'collector_tstamp'),
2020
derived_tstamp_partitioned=var('snowplow__derived_tstamp_partitioned', true),

models/base/scratch/default/snowplow_web_base_events_this_run.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ You may obtain a copy of the Snowplow Community License Version 1.0 at https://d
4242

4343
{% set base_events_query = snowplow_utils.base_create_snowplow_events_this_run(
4444
sessions_this_run_table='snowplow_web_base_sessions_this_run',
45-
session_identifiers=var('snowplow__session_identifiers', [{"table" : "events", "field" : "domain_sessionid"}]),
45+
session_identifiers=var('snowplow__session_identifiers', [{"schema" : "atomic", "field" : "domain_sessionid"}]),
4646
session_sql=var('snowplow__session_sql', none),
4747
session_timestamp=var('snowplow__session_timestamp', 'collector_tstamp'),
4848
derived_tstamp_partitioned=var('snowplow__derived_tstamp_partitioned', true),

models/base/scratch/snowflake/snowplow_web_base_events_this_run.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You may obtain a copy of the Snowplow Community License Version 1.0 at https://d
1414

1515
{% set base_events_query = snowplow_utils.base_create_snowplow_events_this_run(
1616
sessions_this_run_table='snowplow_web_base_sessions_this_run',
17-
session_identifiers=var('snowplow__session_identifiers', [{"table" : "events", "field" : "domain_sessionid"}]),
17+
session_identifiers=var('snowplow__session_identifiers', [{"schema" : "atomic", "field" : "domain_sessionid"}]),
1818
session_sql=var('snowplow__session_sql', none),
1919
session_timestamp=var('snowplow__session_timestamp', 'collector_tstamp'),
2020
derived_tstamp_partitioned=var('snowplow__derived_tstamp_partitioned', true),

packages.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
packages:
2-
# - package: snowplow/snowplow_utils
3-
# version: [">=0.14.3", "<0.15.0"]
4-
- git: https://github.com/snowplow/dbt-snowplow-utils.git
5-
revision: feature/create-base-table
2+
- package: snowplow/snowplow_utils
3+
version: 0.15.0-rc1
4+
# version: [">=0.15.0", "<0.16.0"]

0 commit comments

Comments
 (0)