-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[connectors] Implement incremental sync for the Zendesk articles (#8688)
* feat: add a method that fetches the recently updated articles * feat: add activities to sync the recently updated articles * feat: add the article diff sync to the incremental sync workflow * refactor: rename syncZendeskRecentlyUpdatedArticleBatchActivity into a shorter word * fix: pass the startTime in the incremental endpoint in seconds instead of ms * fix: implement time-based pagination (cursor-based not supported for incremental articles * refactor: simplify the naming * refactor: prevent StartTimeTooRecent errors * docs: add small note * bump the workflow version * feat: add functions to delete articles * refactor: remove unused activity * fix: fix how we handle StartTimeTooRecent errors * fix: delete articles/tickets from data sources before deleting in pg
- Loading branch information
1 parent
387f236
commit fe5e87c
Showing
7 changed files
with
195 additions
and
24 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export const WORKFLOW_VERSION = 3; | ||
export const WORKFLOW_VERSION = 4; | ||
export const QUEUE_NAME = `zendesk-queue-v${WORKFLOW_VERSION}`; |
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