Skip to content

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

Merged
Artem Inzhyyants (artem1205) merged 20 commits into
masterfrom
artem1205/source-zendesk-chat-update-cursor
Mar 7, 2025
Merged

feat(source-zendesk-chat): migrate to incremental cursors#54151
Artem Inzhyyants (artem1205) merged 20 commits into
masterfrom
artem1205/source-zendesk-chat-update-cursor

Conversation

@artem1205
Copy link
Copy Markdown
Contributor

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 ❌

Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
@vercel
Copy link
Copy Markdown

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 <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
This reverts commit 7b9f91d.
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
…ndesk-chat-update-cursor

# Conflicts:
#	airbyte-integrations/connectors/source-zendesk-chat/poetry.lock
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
type: CursorPagination
page_size: 1000
cursor_value: '{{ response.get("end_time", {}) }}'
stop_condition: "{{ last_page_size < 1_000 }}"
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor 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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor 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 <artem.inzhyyants@gmail.com>
@artem1205
Copy link
Copy Markdown
Contributor 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 <artem.inzhyyants@gmail.com>
@maxi297
Copy link
Copy Markdown
Contributor

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

Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com>
@artem1205
Copy link
Copy Markdown
Contributor Author

Artem Inzhyyants (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
Copy Markdown
Contributor

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 Artem Inzhyyants (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