Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/remianing sla issues #154

Merged
merged 9 commits into from
May 15, 2024
Merged

Conversation

fivetran-joemarkiewicz
Copy link
Contributor

@fivetran-joemarkiewicz fivetran-joemarkiewicz commented May 6, 2024

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:

  • dbt run 鈥揻ull-refresh && dbt test
  • dbt run (if incremental models are present) && dbt test

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

  • The appropriate issue has been linked, tagged, and properly assigned
  • All necessary documentation and version upgrades have been applied
  • docs were regenerated (unless this PR does not include any code or yml updates) Will be generated after approval
  • BuildKite integration tests are passing
  • Detailed validation steps have been provided below

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:

  • fivetran_integrity_sla_first_reply_time_exclusion_tickets: (1,56,80)
    • A result of the following tickets not following the normal process of Zendesk Business SLAs. These tickets were modified beyond the point where they can accurately be tracked. As such, the results are inconclusive when comparing the SLA Policies results to the Ticket Metrics results. I don't see the behavior of these tickets being the norm for customer environments. As such, we should not worry about these records not passing the validation.
  • fivetran_consistency_ticket_metrics_exclusion_tickets: (11092,11093,11094)
    • These tickets are all impacted as a result of the following timestamp to date join condition change. Upon inspecting these tickets in the Zendesk UI, we can validate that the dev results more closely match the results within the Zendesk UI. Further, the discrepancy we see can be attributed to a modification of the schedule by 135 minutes (which is the delta for each discrepancy). As the data model does not support modified schedules at this moment, we are comfortable with this delta in our test data. See the results of these tickets in the validation, and the results in the Zendesk UI. You can see the delta is exactly 135 minutes for each dev ticket result.
    • image
  • fivetran_integrity_sla_count_match_tickets: (76)

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

馃

@fivetran-joemarkiewicz fivetran-joemarkiewicz self-assigned this May 6, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
fivetran-joemarkiewicz and others added 3 commits May 7, 2024 09:10
Co-authored-by: Renee Li <91097070+fivetran-reneeli@users.noreply.github.com>
Co-authored-by: Renee Li <91097070+fivetran-reneeli@users.noreply.github.com>
Comment on lines +1 to +7
dbt-bigquery>=1.3.0,<1.8.0
dbt-redshift>=1.3.0,<1.8.0
dbt-postgres>=1.3.0,<1.8.0
dbt-spark>=1.3.0,<1.8.0
dbt-spark[PyHive]>=1.3.0,<1.8.0
dbt-databricks>=1.6.0,<1.8.0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Limiting this for the time being. Until we are able to figure out what changes we need to make for 1.8.0 compatibility in our integration tests

@fivetran-joemarkiewicz
Copy link
Contributor Author

docs will be generated after approval.

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@fivetran-reneeli fivetran-reneeli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with just a minor changelog suggestion!

fivetran-joemarkiewicz and others added 2 commits May 14, 2024 09:12
Co-authored-by: Renee Li <91097070+fivetran-reneeli@users.noreply.github.com>
@fivetran-reneeli fivetran-reneeli linked an issue May 15, 2024 that may be closed by this pull request
1 task
@fivetran-reneeli fivetran-reneeli merged commit 66d7b7c into main May 15, 2024
8 checks passed
@fivetran-reneeli fivetran-reneeli deleted the bugfix/remianing-sla-issues branch May 15, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] sla policy events failing due to duplicate values
3 participants