Closed fivetran-reneeli closed 2 months ago
regen docs when approved
Hi @fivetran-joemarkiewicz , this is ready for re-review. Please give the updated PR template a read as well; I made sure to call out the 2 root causes of the duplicates that are addressed here. If that looks good I will make a similar comment in the issue thread so customers are aware.
PR Overview
This PR will address the following Issue/Feature: https://github.com/fivetran/dbt_zendesk/issues/144
Note that this PR currently addresses the below scenarios that resulted in duplicate
sla_event_id
s, though please note the issue is not completely closed out yet:The remaining root cause of duplicates we are still working to address is due to more than 1 condition in the
filtered_reply_times
CTE in theint_zendesk__reply_time_combined
model being met (condition 2 in addition to condition 5). We have a working solution but still need to go through testing.This PR will result in the following new package version: v0.14.1
Non breaking
Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:
Bug Fixes
sla_event_id
's occurring in thezendesk__sla_policies
model.int_zendesk__schedule_spine
which was previously outputting overlapping schedule windows, to account for when holidays transcended a given schedule week.int_zendesk__reply_time_business_hours
model, in which two different versions of a schedule could exist due to daylight savings time.int_zendesk__reply_time_business_hours
model to only perform the weeks cartesian join on tickets that require the further look into the future.int_zendesk__reply_time_business_hours
would perform a cartesian join on all tickets to calculate weeks into the future. This was required to accurately calculatesla_elapsed_time
for tickets with first replies far into the future. However, this was only necessary for a handful of tickets. Therefore, this has been adjusted to accurately only calculate the future weeks as far as either the first reply time or first solved time.Documentation Updates
Bug Fixes
sla_event_id
's occurring in thezendesk__sla_policies
model.int_zendesk__schedule_spine
which was previously outputting overlapping schedule windows, to account for when holidays transcended a given schedule week.int_zendesk__reply_time_business_hours
model, where within the model two different versions of a schedule would exist due to daylight savings time.Documentation Updates
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:
If you had to summarize this PR in an emoji, which would it be?
:dancer: