Skip to content

Commit

Permalink
Merge branch 'release/v0.7.latest' into bq-partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
fivetran-jamie authored Oct 5, 2021
2 parents c2fabea + 361653c commit d3c7b77
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion models/intermediate/int_zendesk__comment_metrics.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ comment_counts as (
then 1
else 0
end) as count_internal_comments,
count(*) as total_comments
count(*) as total_comments,
count(distinct case when commenter_role = 'internal_comment'
then user_id
end) as count_ticket_handoffs
from ticket_comments

group by 1, 2
Expand Down
2 changes: 2 additions & 0 deletions models/zendesk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ models:
description: Count of public comments within the ticket
- name: total_comments
description: Total count of all comments within the ticket
- name: count_ticket_handoffs
dev_snowflake: Count of distinct internal users who have touched/commented on the ticket.
- name: unique_assignee_count
description: The count of unique assignees that were assigned to the ticket
- name: assignee_stations_count
Expand Down
1 change: 1 addition & 0 deletions models/zendesk__ticket_metrics.sql
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ select
coalesce(ticket_comments.count_public_comments, 0) as count_public_comments,
coalesce(ticket_comments.count_internal_comments, 0) as count_internal_comments,
coalesce(ticket_comments.total_comments, 0) as total_comments,
coalesce(ticket_comments.count_ticket_handoffs, 0) as count_ticket_handoffs, -- the number of distinct internal users who commented on the ticket
ticket_comments.last_comment_added_at as ticket_last_comment_date,
ticket_resolution_times_calendar.unique_assignee_count,
ticket_resolution_times_calendar.assignee_stations_count,
Expand Down

0 comments on commit d3c7b77

Please sign in to comment.