fivetran / dbt_zendesk

Fivetran's Zendesk Support dbt package
https://fivetran.github.io/dbt_zendesk/#!/overview
Apache License 2.0
25 stars 30 forks source link

Bugfix/remianing sla issues #154

Closed fivetran-joemarkiewicz closed 1 month ago

fivetran-joemarkiewicz commented 1 month ago

PR Overview

This PR will address the following Issue/Feature: Issue #144

This PR will result in the following new package version: v0.16.0

Similar to the previous v0.15.0 release, this is not a breaking change. However, this will impact the results of the end models and we would rather users are aware of these changes when upgrading as opposed to unexpectedly seeing the results change.

Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:

🚨 Minor Upgrade 🚨

Although this update is not a breaking change, it will likely impact the output of the zendesk__sla_policies and zendesk__sla_metrics models. PR #154 includes the following changes:

Bug Fixes

  • Addresses the potential issue where the first_reply_time_business_minutes metric within the zendesk__ticket_metrics model would incorrectly calculate the elapsed time when daylight savings occurred. This change involved adjusting a join to reference the difference of two dates as opposed to timestamps. This more accurately applies a cutoff event during daylight savings.
  • Introduction of an additional condition within the filtered_reply_times cte of the int_zendesk__reply_time_combined model to ensure tickets replied to before any schedule begins and no business minutes have been spent is reserved for only the first day the ticket is open. Previously, this condition could be met on days other than the first.

Under the Hood

  • Addition of integrity and consistency validation tests within integration tests for the zendesk__sla_policies and zendesk__ticket_metrics models.

PR Checklist

Basic Validation

Please acknowledge that you have successfully performed the following commands locally:

Before marking this PR as "ready for review" the following have been applied:

Detailed Validation

Please share any and all of your validation steps:

Please see below for confirmation that the validations are netting the expected results: image

The following variables used to test locally are as follows:

vars:
  zendesk_schema: zendesk_test_env
  using_domain_names: false
  using_user_tags: false
  using_organization_tags: false
  fivetran_integrity_sla_first_reply_time_exclusion_tickets: (1,56,80)
  fivetran_consistency_ticket_metrics_exclusion_tickets: (11092,11093,11094)
  fivetran_integrity_sla_count_match_tickets: (76)

Reason for the exclusion tickets are as follows:

If you had to summarize this PR in an emoji, which would it be?

🧛
fivetran-joemarkiewicz commented 1 month ago

docs will be generated after approval.