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

🐛 Source Zendesk Support: fix parse response for ticket metrics #37450

Merged
merged 7 commits into from
Apr 24, 2024

Conversation

darynaishchenko
Copy link
Collaborator

@darynaishchenko darynaishchenko commented Apr 19, 2024

What

https://github.com/airbytehq/oncall/issues/5078

How

Added check for data existing to parse response in Ticket Metrics stream.

Review guide

User Impact

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

@darynaishchenko darynaishchenko self-assigned this Apr 19, 2024
Copy link

vercel bot commented Apr 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2024 5:10pm

@octavia-squidington-iii octavia-squidington-iii added area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/zendesk-support labels Apr 19, 2024
@octavia-squidington-iv octavia-squidington-iv requested review from a team April 19, 2024 21:29
@erohmensing
Copy link
Contributor

@darynaishchenko I tested this version (2.4.1-dev.420c66ebb7) compared to version 2.3.0 via our live testing tool and it seems it misses 6 records. Probably notable is these 3 log messages coming out:

{"level": "ERROR", "message": "Skipping stream ticket_metrics, error message: RecordNotFound. Please ensure the authenticated user has access to this stream. If the issue persists, contact Zendesk support.", "stack_trace": null}
{"level": "ERROR", "message": "Skipping stream ticket_metrics, error message: RecordNotFound. Please ensure the authenticated user has access to this stream. If the issue persists, contact Zendesk support.", "stack_trace": null}
{"level": "ERROR", "message": "Skipping stream ticket_metrics, error message: RecordNotFound. Please ensure the authenticated user has access to this stream. If the issue persists, contact Zendesk support.", "stack_trace": null}

Can you take a look into this? I can send you the live testing command i used

@darynaishchenko
Copy link
Collaborator Author

@darynaishchenko I tested this version (2.4.1-dev.420c66ebb7) compared to version 2.3.0 via our live testing tool and it seems it misses 6 records. Probably notable is these 3 log messages coming out:

{"level": "ERROR", "message": "Skipping stream ticket_metrics, error message: RecordNotFound. Please ensure the authenticated user has access to this stream. If the issue persists, contact Zendesk support.", "stack_trace": null}
{"level": "ERROR", "message": "Skipping stream ticket_metrics, error message: RecordNotFound. Please ensure the authenticated user has access to this stream. If the issue persists, contact Zendesk support.", "stack_trace": null}
{"level": "ERROR", "message": "Skipping stream ticket_metrics, error message: RecordNotFound. Please ensure the authenticated user has access to this stream. If the issue persists, contact Zendesk support.", "stack_trace": null}

Can you take a look into this? I can send you the live testing command i used

@erohmensing, Added my test results in slack thread.

@darynaishchenko
Copy link
Collaborator Author

@darynaishchenko I tested this version (2.4.1-dev.420c66ebb7) compared to version 2.3.0 via our live testing tool and it seems it misses 6 records. Probably notable is these 3 log messages coming out:

{"level": "ERROR", "message": "Skipping stream ticket_metrics, error message: RecordNotFound. Please ensure the authenticated user has access to this stream. If the issue persists, contact Zendesk support.", "stack_trace": null}
{"level": "ERROR", "message": "Skipping stream ticket_metrics, error message: RecordNotFound. Please ensure the authenticated user has access to this stream. If the issue persists, contact Zendesk support.", "stack_trace": null}
{"level": "ERROR", "message": "Skipping stream ticket_metrics, error message: RecordNotFound. Please ensure the authenticated user has access to this stream. If the issue persists, contact Zendesk support.", "stack_trace": null}

Can you take a look into this? I can send you the live testing command i used

@erohmensing, Added my test results in slack thread.

@erohmensing, UPD: updated TicketSubstream to avoid these log messages in case of not found error. I checked this version against 2.3.0v. 2.3.0 also doesn't have records for ticket ids that caused these logs. It happens when ticket metrics stream slices return ticket id for ticket that is not available now so we should skip it as metrics not available too. I ran read a couple times and for the second read these logs didn't appear.

@darynaishchenko darynaishchenko merged commit b339f1b into master Apr 24, 2024
34 checks passed
@darynaishchenko darynaishchenko deleted the daryna/zendesk-support/fix-key-error branch April 24, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/zendesk-support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants