Skip to content

Commit

Permalink
Enforce full refresh flag for refreshing manifest tables
Browse files Browse the repository at this point in the history
  • Loading branch information
rlh1994 committed Mar 13, 2024
1 parent d0e8570 commit 754123f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
snowplow-media-player 0.2.0 (2024-03-XX)
snowplow-attribution 0.2.0 (2024-03-XX)
---------------------------------------
## Summary
XXX

## Features
- Add support for schema grants

## Under the hood
- Enforce full refresh flag for refreshing manifest tables

## Upgrading
To upgrade simply bump the snowplow-attribution version in your `packages.yml` file. Note the minimum version of snowplow-utils required is now 0.16.2
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 754123f

Please sign in to comment.