-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug duplicate sla event ids #146
debug duplicate sla event ids #146
Conversation
try different order of operations
* documentation/streamlit-report-addition * Update CHANGELOG.md
regen docs when approved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fivetran-reneeli I was able to do an initial review and just have two quick comments. Would you also be able to update the PR template with the most up to date findings and checks. Primarily so we can reference this in the future.
models/sla_policy/reply_time/int_zendesk__reply_time_business_hours.sql
Outdated
Show resolved
Hide resolved
…hours.sql Co-authored-by: Joe Markiewicz <[email protected]>
Hi @fivetran-joemarkiewicz , this is ready for re-review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fivetran-reneeli these changes look good to go from my end! My only request would be to make this a minor upgrade as opposed to a patch (v0.15.0). There are a number of changes in here that will change the results of the sla_policies end model (for the better), but will likely abruptly change users metrics. I would rather users safely upgrade themselves as opposed to seeing this sudden change out of the blue.
Would you be able to bump the version and then regen the docs. Then this will be good for release review.
Lastly, please be sure to update the initial issue once this is live and highlight the outstanding items which still need to be addressed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm (pending buildkite)!
PR Overview
This PR will address the following Issue/Feature: #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?
💃