Skip to content

Commit

Permalink
Explore/customer metrics model (#52)
Browse files Browse the repository at this point in the history
* Add passthrough columns for USER + ORG and add support for updated passthrough format for TICKET (#49)

* add passthrough columns for user + org and revamp ticket passthru var

* add default value

* docs

* doc twweaks

* add followup_ids

* add followup_ids

* revert

* docs

* seed

* bk

* does that fix things

* use diff version
  • Loading branch information
fivetran-jamie authored Jun 24, 2024
1 parent 864bb27 commit 5390d75
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions macros/get_organization_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
{%- endif %}
{% endfor -%}

{%- if var('customer360_internal_match_ids') %}
{%- for match_set in var('customer360_internal_match_ids') %}
{%- if var('customer360_internal_match_ids', []) != [] %}
{%- for match_set in var('customer360_internal_match_ids', []) %}
{%- if match_set.zendesk and match_set.zendesk.source|lower == 'organization' %}
{%- if match_set.zendesk.map_table %}
{%- if match_set.zendesk.join_with_map_on not in unique_custom_field_list -%}
Expand Down
4 changes: 2 additions & 2 deletions macros/get_user_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
{%- endif %}
{% endfor -%}

{%- if var('customer360_internal_match_ids') %}
{%- for match_set in var('customer360_internal_match_ids') %}
{%- if var('customer360_internal_match_ids', []) != [] %}
{%- for match_set in var('customer360_internal_match_ids', []) %}
{%- if match_set.zendesk and match_set.zendesk.source|lower == 'user' %}
{%- if match_set.zendesk.map_table %}
{%- if match_set.zendesk.join_with_map_on not in unique_custom_field_list -%}
Expand Down
4 changes: 2 additions & 2 deletions models/stg_zendesk__organization.sql
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ final as (
{%- endif %}
{% endfor -%}

{%- if var('customer360_internal_match_ids') %}
{%- for match_set in var('customer360_internal_match_ids') %}
{%- if var('customer360_internal_match_ids', [] != []) %}
{%- for match_set in var('customer360_internal_match_ids', []) %}
{%- if match_set.zendesk and match_set.zendesk.source|lower == 'organization' %}
{%- if match_set.zendesk.map_table %}
{%- if match_set.zendesk.join_with_map_on|lower not in unique_custom_field_list -%}
Expand Down
4 changes: 2 additions & 2 deletions models/stg_zendesk__user.sql
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ final as (
{%- endif %}
{% endfor -%}

{%- if var('customer360_internal_match_ids') %}
{%- for match_set in var('customer360_internal_match_ids') %}
{%- if var('customer360_internal_match_ids', []) != [] %}
{%- for match_set in var('customer360_internal_match_ids', []) %}
{%- if match_set.zendesk and match_set.zendesk.source|lower == 'user' %}
{%- if match_set.zendesk.map_table %}
{%- if match_set.zendesk.join_with_map_on|lower not in unique_custom_field_list -%}
Expand Down

0 comments on commit 5390d75

Please sign in to comment.