-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
source-zendesk-support: switch Groups stream to use cursor pagination
Previously, the `Groups` stream was inheriting from the `BaseSourceZendeskSupportStream` class, meaning it paginated by retrieving the total number of results from a `/count` endpoint, calculated how many pages there should be based on that count, then concurrently sent requests for those pages of results. When I added the `exclude_deleted` param earlier to all `Groups` requests, I didn't ensure that the `/count` endpoint would include deleted groups. It does not, and it doesn't accept the `exclude_deleted` query param. So when the connector was calculating how many pages there should be, it wasn't including deleted groups in the total count, and we were missing results. Instead of keeping `Groups` as a `BaseSourceZendeskSupportStream` that uses this older method of pagination, I switched `Groups` to use cursor pagination. The stream's behaviour and document schema remained the same, only how it queries the Zendesk API changed. We should move `Macros` and `TicketFields` off of `BaseSourceZendeskSupportStream` too, but that can be done at a later time.
- Loading branch information
Showing
3 changed files
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters