Skip to content

Commit

Permalink
fix macro, include fct_elavon_transactions in row access policy (#3236
Browse files Browse the repository at this point in the history
)

* include fct_elavon_transactions in row access policy

* fix broken macro
  • Loading branch information
charlie-costanzo authored Jan 16, 2024
1 parent 512c6c4 commit de8125e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions warehouse/macros/create_row_access_policy.sql
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ filter using (
{% macro payments_elavon_row_access_policy() %}

{{ create_row_access_policy(
filter_column = 'Monterey-Salinas Transit',
filter_value = 'mst',
filter_column = 'organization_name',
filter_value = 'Monterey-Salinas Transit',
principals = ['serviceAccount:[email protected]']
) }};

Expand Down
3 changes: 2 additions & 1 deletion warehouse/models/mart/payments/fct_elavon__transactions.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ config(materialized='table') }}
{{ config(materialized = 'table',
post_hook="{{ payments_elavon_row_access_policy() }}") }}

WITH

Expand Down

0 comments on commit de8125e

Please sign in to comment.