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

feat(source-zendesk-chat): migrate to incremental cursors #54151

Merged
merged 20 commits into from
Mar 7, 2025

Conversation

artem1205
Copy link
Collaborator

What

Resolve https://github.com/airbytehq/airbyte-internal-issues/issues/11530

How

  • bump CDK version
  • remove custom components

Review guide

  1. airbyte-integrations/connectors/source-zendesk-chat/source_zendesk_chat/manifest.yaml

User Impact

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

Copy link

vercel bot commented Feb 19, 2025

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 Mar 6, 2025 7:00pm

Signed-off-by: Artem Inzhyyants <[email protected]>
Signed-off-by: Artem Inzhyyants <[email protected]>
Signed-off-by: Artem Inzhyyants <[email protected]>
Signed-off-by: Artem Inzhyyants <[email protected]>
Signed-off-by: Artem Inzhyyants <[email protected]>
This reverts commit 7b9f91d.
@artem1205 artem1205 self-assigned this Feb 21, 2025
Signed-off-by: Artem Inzhyyants <[email protected]>
Signed-off-by: Artem Inzhyyants <[email protected]>
Signed-off-by: Artem Inzhyyants <[email protected]>
Signed-off-by: Artem Inzhyyants <[email protected]>
Signed-off-by: Artem Inzhyyants <[email protected]>
…ndesk-chat-update-cursor

# Conflicts:
#	airbyte-integrations/connectors/source-zendesk-chat/poetry.lock
Signed-off-by: Artem Inzhyyants <[email protected]>
@octavia-squidington-iii octavia-squidington-iii added the area/documentation Improvements or additions to documentation label Mar 3, 2025
@artem1205 artem1205 marked this pull request as ready for review March 3, 2025 12:23
page_size: 1000
cursor_value: '{{ response.get("end_time", {}) }}'
stop_condition: "{{ last_page_size < 1_000 }}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe: last_page_size < page_size?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, but we do not pass page_size to the jinja interpolation, that's why i had to pass it as int 1_000

@artem1205 artem1205 requested review from bazarnov and maxi297 March 3, 2025 12:37
Copy link
Contributor

@maxi297 maxi297 left a comment

Choose a reason for hiding this comment

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

Have we run regression test on this one? Can I check the results?


concurrency_level:
type: ConcurrencyLevel
default_concurrency: 10
Copy link
Contributor

Choose a reason for hiding this comment

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

The limits from Zendesk Chat seem somewhat low i.e. 200 requests per minute for the team plan. I fear we might hit this limit with 10 concurrent threads. Should we set API budget at least?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👍 added api budget, 200/60 = 3.3 -> we can set default concurrency to 4 later if 10 is too high.

Signed-off-by: Artem Inzhyyants <[email protected]>
@artem1205
Copy link
Collaborator Author

Have we run regression test on this one? Can I check the results?

after checking the results I realised that we need to implement epoch_microseconds for dateparser as well, because it is used by stateconverte, PR: airbytehq/airbyte-python-cdk#388

Signed-off-by: Artem Inzhyyants <[email protected]>
@maxi297
Copy link
Contributor

maxi297 commented Mar 6, 2025

Cool, ping me again once the change is in this PR and regression test results are ready ❤️

Signed-off-by: Artem Inzhyyants <[email protected]>
@artem1205
Copy link
Collaborator Author

artem1205 commented Mar 6, 2025

regression tests failed expectedly

records differ on Item root['properties']['last_login'] only.

full refresh regression tests

records differ on Item root['properties']['last_login'] only.

Copy link
Contributor

@maxi297 maxi297 left a comment

Choose a reason for hiding this comment

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

Pre-emptively approving assuming the full refresh regression tests passes

@artem1205 artem1205 merged commit 9a5e234 into master Mar 7, 2025
30 of 32 checks passed
@artem1205 artem1205 deleted the artem1205/source-zendesk-chat-update-cursor branch March 7, 2025 17:29
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-chat
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants