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

Fix(Source-Intercom): Update Pagination #55829

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

agarctfi
Copy link
Contributor

@agarctfi agarctfi commented Mar 18, 2025

What

Solves: https://github.com/airbytehq/oncall/issues/7494 Missing data due to incorrect pagination.

How

There were a few things off with the migration to manifest change.

The following changes were made:
admins, tags, teams, segments, company_attributes, contact_attributes, stream(s) do not have input parameters for pagination, so it was removed. Doc

Removed page_size for companies stream since it doesn't use this (API defaults to 100) [Doc]
I also updated the error_handler for HTTP 500s. The API docs say we must restart the sync entirely, but the current option, action: RETRY, would restart it from the current page. - Ideally, I think we should have a 'RESTART' action built into the CDK. So, I will make a separate ticket for that here: https://github.com/airbytehq/airbyte-internal-issues/issues/12107

conversations, tickets, & contacts - pagination was off.

It has been corrected & tested locally. (Except for tickets, we do not have premium to test, but these all use the same type of pagination, so the changes should work for that, too.)

The issue with these is each stream had a pagination object hardcoded in request_body_json, which I think was conflicting with the paginator component.

Also, the paginator injector seemed to not be injecting, so it was changed to fix this.

Lastly, the stop condition seemed a bit off, so this was also updated to make sure we didn't miss records.

Review guide

User Impact

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

Copy link

vercel bot commented Mar 18, 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 21, 2025 3:33pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants