-
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 articles pagination for Zendesk (#8485)
* fix the url passed in the articles * refactor: group updatable fields when updating/creating a new article in db * feat: when setting a subdomain, fetches the brand from the db if found * feat: implement pagination for the articles within a category * fix: prevent category data from leaking through workflows This change prevents user data from being exposed to Temporal, replacing them with IDs at the cost of additional fetches to the db. * refactor: rename the `token` parameter into `accessToken` in `createZendeskClient` for consistency * 📖 * refactor: simplify 2 huge logging calls * refactor: remove a duplicate variable * fix: remove an obsolete default value * add a max sleep time of 1 min * add a logging entry whenever the rate limit is hit * add a max number of retries against the rate limit * refactor: rewrite infinite loops into while loops * fix: fix the name of the field in the response output * feat: add a throw if the retryAfter is too big, add a min value * prevent a ZendeskClient from being instantiated if not needed in allowSyncZendeskCategory * docs: add function description * fix: retrieve the correct brands when retrieving permissions We used to look for brands with a Help Center only, instead of fetching all brands with read permissions. * fix: show brand that do not have a help center * refactor: update the return type of the brand sync methods to only return a boolean * refactor: add a method that fetches a brand and syncs it * refactor: replace fetchBrandAndSync with syncBrandWithPermissions that does the db fetch * refactor: add methods to grant permissions for consistency over the revoke * fix: prevent a regression where extra calls to OAuth would be made even when not necessary * refactor: simplify the case where the brand is in db in `syncBrandWithPermissions`
- Loading branch information
1 parent
b0fc878
commit 3556bdb
Showing
12 changed files
with
426 additions
and
272 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
Oops, something went wrong.