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

New Integration Templates - Zendesk Tickets & Articles #937

Merged
merged 6 commits into from
Aug 28, 2023

Conversation

ha-sante
Copy link
Contributor

@ha-sante ha-sante commented Aug 25, 2023

image

  • Articles pulls 2 pages at a time & stores it
  • Yaml lint checked
  • encodeURIComponent used in zendesk-articles to encode the cursor as it creates an error if inserted in raw format.

Resolves #943

Copy link
Member

@bastienbeurier bastienbeurier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the new templates!

return { ZendeskArticle: [] }; // Return statement is deprecated (will soon go away).
}

async function paginate(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I think this would be clearer if it was getNextPage, since paginate could imply that it will handle all of the pagination (for all pages).

return { ZendeskTicket: [] }; // Return statement is deprecated (will soon go away).
}

async function paginate(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I think this would be clearer if it was getNextPage, since paginate could imply that it will handle all of the pagination (for all pages).

const content = {
pageNumber: contentPage ? contentPage.pageNumber + 1 : 1,
articles: res.data.articles,
has_more: res.data.meta.has_more,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: should be camel case

tickets: any[];
nextPageEndpoint: string;
totalResultCount: number;
has_more: boolean;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: should be camel case

@bastienbeurier bastienbeurier merged commit 6ea2094 into NangoHQ:master Aug 28, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Zendesk sync template
2 participants