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: add logging & ticket_comments checkpoint #2088

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

Alex-Bair
Copy link
Contributor

@Alex-Bair Alex-Bair commented Oct 25, 2024

Description:

For users with a lot of data, the ticket_comments stream can take a while to backfill, especially given the 30 requests/60 seconds rate limit for this endpoint. Checkpointing that stream will help if that backfill complete over connector restarts, and it'll provide an indicator in the UI that the connector is still processing records.

I've also added logging to catch if the ticket_comments cursor does not increase & to log the status codes for non-200 responses to help troubleshoot if the connector is stuck making the same failing request.

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

Tested on a local stack. Confirmed ticket_comments is checkpointed every 1,000 documents.


This change is Reviewable

@Alex-Bair Alex-Bair added the change:unplanned Unplanned change, useful for things like doc updates label Oct 25, 2024
@Alex-Bair Alex-Bair force-pushed the bair/zendesk-support-ticket-comments-checkpoint branch from d873ac5 to 3cf40b4 Compare October 25, 2024 01:17
Copy link
Member

@williamhbaker williamhbaker left a comment

Choose a reason for hiding this comment

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

LGTM

For users with a lot of data, the `ticket_comments` stream can take a
while to backfill, especially given the 30 requests/60 seconds rate
limit for this endpoint. Checkpointing that stream will help if that
backfill complete over connector restarts, and it'll provide an
indicator in the UI that the connector is still processing records.

I've also added logging to catch if the `ticket_comments` cursor does
not increase & to log the status codes for non-200 responses to help
troubleshoot if the connector is stuck making the same failing request.
@Alex-Bair Alex-Bair force-pushed the bair/zendesk-support-ticket-comments-checkpoint branch from 3cf40b4 to 01e1295 Compare October 25, 2024 13:13
@Alex-Bair
Copy link
Contributor Author

I saw a typo in the logged warning I added, so I fixed that before merging.

@Alex-Bair Alex-Bair merged commit cac4775 into main Oct 25, 2024
72 of 77 checks passed
@Alex-Bair Alex-Bair deleted the bair/zendesk-support-ticket-comments-checkpoint branch October 25, 2024 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change:unplanned Unplanned change, useful for things like doc updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants