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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/duplicate sla event ids #115

Conversation

fivetran-reneeli
Copy link
Contributor

@fivetran-reneeli fivetran-reneeli commented Oct 5, 2023

PR Overview

This PR will address the following Issue/Feature:

This PR will result in the following new package version:

v0.12.0

Please detail what change(s) this PR introduces and any additional information that should be known during the review of this PR:

  • Updates the way business hour reply time records are getting brought into the final sla__policies model. Originally the logic in the upstream int_zendesk__reply_time_combined was not capturing all cases and therefore duplicate sla_event_ids were being persisted.
  • Additionally, since this an update off of the v0.11.0 release where the errors appeared, rather off the current release that rolled back to v0.10.2, this will have the changes from the v0.11.0 release plus the updates that fix for the errors. Namely the addition of the lagging_time_block and filtered_reply_times CTE in int_zendesk__reply_time_combined because of the inclusion of schedule holiday time in business hours calculations
  • Also introduced these 2 new fields in int_zendesk__reply_time_business_hours for later use downstream
    -- ticket_created_at
    -- sla_schedule_end_at

PR Checklist

Basic Validation

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

  • dbt compile
  • dbt run –full-refresh
  • dbt run
  • dbt test
  • dbt run –vars (if applicable)
    using_schedules = True and using_schedules = False

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

  • The appropriate issue has been linked and tagged
  • You are assigned to the corresponding issue and this PR
  • BuildKite integration tests are passing

Detailed Validation

Please acknowledge that the following validation checks have been performed prior to marking this PR as "ready for review":

  • You have validated these changes and assure this PR will address the respective Issue/Feature.
  • You are reasonably confident these changes will not impact any other components of this package or any dependent packages.
  • You have provided details below around the validation steps performed to gain confidence in these changes.
  • Joe replicated the error in our dev Zendesk account and were able to get the right records to be brought through
  • Worked through sample data that customer sent us and confirmed that only the right records were brought through
  • Customer also tested this branch and confirmed these changes brought the right records through and resolved the fanouts

Standard Updates

Please acknowledge that your PR contains the following standard updates:

  • Package versioning has been appropriately indexed in the following locations:
    • indexed within dbt_project.yml
    • indexed within integration_tests/dbt_project.yml
  • CHANGELOG has individual entries for each respective change in this PR
  • README updates have been applied (if applicable)
  • DECISIONLOG updates have been updated (if applicable)
  • Appropriate yml documentation has been added (if applicable)

dbt Docs

Please acknowledge that after the above were all completed the below were applied to your branch:

  • docs were regenerated (unless this PR does not include any code or yml updates)

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

☠️

@fivetran-reneeli fivetran-reneeli self-assigned this Oct 5, 2023
Copy link
Contributor

@fivetran-joemarkiewicz fivetran-joemarkiewicz left a 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 great! I made a few updates myself to pick up changes that were missing from the original 0.11.0 and were not part of the problematic code. Additionally, I made some minor edits in the sla policy model which I came across when doing the review and noticed some discrepancies when validating. Would you be able to review the changes I made and let me know if you have any concerns or comments.

Your changes look great though! I have just a few very minor comments I would like you to respond before approving.

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@fivetran-joemarkiewicz fivetran-joemarkiewicz left a comment

Choose a reason for hiding this comment

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

Thanks for working through these updates @fivetran-reneeli! These changes look good after my validation and review. This is good to be merged into the base branch.

I will then conduct the final review there.

@fivetran-reneeli fivetran-reneeli merged commit bbf8acd into bug/agent-work-time-schedule-holiday-3 Oct 9, 2023
1 check passed
@fivetran-reneeli fivetran-reneeli deleted the bugfix/duplicate_sla_event_ids branch October 9, 2023 19:03
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.

2 participants