Skip to content

Commit

Permalink
Enforce full refresh flag to refresh manifest tables
Browse files Browse the repository at this point in the history
  • Loading branch information
rlh1994 committed Mar 18, 2024
1 parent 8e302b7 commit 921d68c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
snowplow-media-player 0.7.2 (2024-03-18)
---------------------------------------
## Summary
This release makes a few internal tweaks, including adding support for [schema grants](https://docs.snowplow.io/docs/modeling-your-data/modeling-your-data-with-dbt/package-features/table-grants/#granting-usage-on-schemas)

## Features
- Add support for schema grants

## Fix
- Add missing argument in delete from manifest call

## Under the hood
- Enforce full refresh flag to refresh manifest tables

## Upgrading
To upgrade simply bump the snowplow-media-player version in your `packages.yml` file. Note the minimum version of snowplow-utils required is now 0.16.2

snowplow-media-player 0.7.1 (2024-01-26)
---------------------------------------
## Summary
Expand Down
14 changes: 9 additions & 5 deletions macros/allow_refresh.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0

{% macro default__allow_refresh() %}

{% set allow_refresh = snowplow_utils.get_value_by_target(
dev_value=none,
default_value=var('snowplow__allow_refresh'),
dev_target_name=var('snowplow__dev_target_name')
) %}
{% if flags.FULL_REFRESH == True %}
{% set allow_refresh = snowplow_utils.get_value_by_target(
dev_value=none,
default_value=var('snowplow__allow_refresh'),
dev_target_name=var('snowplow__dev_target_name')
) %}
{% else %}
{% set allow_refresh = none %}
{% endif %}

{{ return(allow_refresh) }}

Expand Down

0 comments on commit 921d68c

Please sign in to comment.