-
Notifications
You must be signed in to change notification settings - Fork 30
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
bug/missing-sla-policies #164
Conversation
Update agent work time and requester wait time business hours models
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.
I updated this test since the prior version did not detect when the dev schema had extra tickets not present in the prod schema and should cause a failure unless omitted.
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-catfritz just two small comments in the CHANGELOG. Otherwise this looks good to me!
CHANGELOG.md
Outdated
# dbt_zendesk v0.17.0 | ||
|
||
## Bug Fixes | ||
- Fixed an issue in the `zendesk__sla_policies` model where tickets that were opened and solved outside of scheduled hours were not being reported. |
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.
I know we somewhat mention it in the logic changes within relevant models, but can we explicitly callout here that this issue was identified and addressed for requester_wait_time and agent_work_time slas.
CHANGELOG.md
Outdated
- Added integrity validations: | ||
- Test to ensure `zendesk__sla_policies` and `zendesk__ticket_metrics` models produce consistent time results. ([#164](https://github.com/fivetran/dbt_zendesk/pull/164)) | ||
- Test to ensure `zendesk__ticket_metrics` contains all the tickets found in `stg_zendesk__ticket`. | ||
- Reduced the weeks looking ahead from 208 to 52 for performance. ([#156](https://github.com/fivetran/dbt_zendesk/pull/156), [#167](https://github.com/fivetran/dbt_zendesk/pull/167)) |
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.
I don't love this suggestion, but want to add a bit more context here as to why we are making this change.
- Reduced the weeks looking ahead from 208 to 52 for performance. ([#156](https://github.com/fivetran/dbt_zendesk/pull/156), [#167](https://github.com/fivetran/dbt_zendesk/pull/167)) | |
- Reduced the weeks looking ahead from 208 to 52 for to improve performance. This decision was made as it was found to be unnecessary to track ticket SLAs going out more than a year. ([#156](https://github.com/fivetran/dbt_zendesk/pull/156), [#167](https://github.com/fivetran/dbt_zendesk/pull/167)) |
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.
How about this? G came up with it of course. 😄
Reduced the weeks looking ahead from 208 to 52 to improve performance, as tracking ticket SLAs beyond one year was unnecessary.
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-joemarkiewicz Updated the changelog with your suggestions. How does it look now?
CHANGELOG.md
Outdated
- Added integrity validations: | ||
- Test to ensure `zendesk__sla_policies` and `zendesk__ticket_metrics` models produce consistent time results. ([#164](https://github.com/fivetran/dbt_zendesk/pull/164)) | ||
- Test to ensure `zendesk__ticket_metrics` contains all the tickets found in `stg_zendesk__ticket`. | ||
- Reduced the weeks looking ahead from 208 to 52 for performance. ([#156](https://github.com/fivetran/dbt_zendesk/pull/156), [#167](https://github.com/fivetran/dbt_zendesk/pull/167)) |
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.
How about this? G came up with it of course. 😄
Reduced the weeks looking ahead from 208 to 52 to improve performance, as tracking ticket SLAs beyond one year was unnecessary.
PR Overview
This PR will address the following Issue/Feature:
This PR will result in the following new package version:
Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:
PR Checklist
Basic Validation
Please acknowledge that you have successfully performed the following commands locally:
dbt run (if incremental models are present) && dbt testBefore marking this PR as "ready for review" the following have been applied:
docs were regenerated (unless this PR does not include any code or yml updates)Detailed Validation
Please share any and all of your validation steps:
As demonstrated in the related issue [Bug] Agent Work Time and Requester Wait Time Erroneously Being Filtered Out of zendesk__sla_policies #155, the agent_work_time and requestor_wait_time slas were not brought through in our test data. This was happening because tickets were getting filtered out where the start and end times had 0 overlap with a schedule. Adjusting the joins fixed this.
Below shows tickets '76' and '11106' with the current version of the package. As expected, we do not get all the SLAs.
After the changes, all the SLAs are now present.
Added integrity test
sla_metrics_parity
to make sure thesla_elapsed_time
fromzendesk__sla_policies
matches the correspondingagent_work_time_in_business_minutes
,requester_wait_time_in_business_minutes
, orfirst_reply_time_business_minutes
fromzendesk__ticket_metrics
.Added integrity test
metrics_count_match
to make sure my updates did not drop any tickets.All tests pass when the following vars are used:
These tickets are omitted since 76 and 11106 are expected not to match, since this update fixes an issue with those tickets. (1,56,80) are from prior tests.
I have also tested on customer data (see internal tickets) and confirm the models are behaving as expected.
If you had to summarize this PR in an emoji, which would it be?
💃