Skip to content

Conversation

peterdj
Copy link
Collaborator

@peterdj peterdj commented Jun 14, 2022

This is a pull request that contains several things.

  1. A webhook to be able to dynamically index tickets when they are updated (I've got a question about this as well below)
  2. A Zendesk App that's a client-side app that allows search for both tickets and articles in the ticket sidebar as well as in a main area

These 2 updates are improvements, because I think we should be indexing and searching for tickets as well as articles.

Questions:

  1. Can I setup the indexer on a server? who would be the one I would talk to about that? This could be for the webhook as well as a daily indexer
  2. Can the server use node instead of Ruby, or do I need to setup the indexer in Ruby like the article indexer?

Feel free to reach out with any questions of your own.

@peterdj peterdj requested review from Jerska and rayrutjes June 14, 2022 15:56
Copy link
Contributor

@sbellone sbellone left a comment

Choose a reason for hiding this comment

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

Hi, I only had a very quick look but it seems to be a completely different project than the current Zendesk plugin. Can you give more background about the project?
If I understand correctly, it's a standalone Node.js server that will receive webhooks to index Zendesk tickets. It might be easier to bootstrap a new repo for that actually.

Regarding the hosting, each teams does it differently, you'd have to check with yours, or contact Foundation.

Otherwise for the PR itself, it would need at least some detailed "How to test" instructions.

@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
Copy link
Contributor

Choose a reason for hiding this comment

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

You can't commit a private key, especially on a public repo, it needs to be stored securely.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll work out a way to test it, although not having a server, that makes it difficult. I'll see about contacting Foundation, or seeing about Heroku or something similar. Thanks for the info. Oh, and I forgot about that server.key...I'll fix. Thanks @sbellone

const functions = require('./indexFunctions');

app.get('/', (req, res) => {
res.send("Hello world");
Copy link
Contributor

Choose a reason for hiding this comment

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

👋


app.use(express.static('public'));

app.get('/webhook', (req, res) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Who will call that webhook?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Zendesk itself will call it when a ticket is updated. It passes in the ticketId

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, and how does it know the server address? This kind of setup needs to be documented

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

true..I can update the docs with screenshots and the like

const historyRouter = instantsearch.routers.history();


const searchClient = algoliasearch(settings.algoliaAppName, settings.searchApiKey);
Copy link
Contributor

Choose a reason for hiding this comment

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

algoliaAppName is not a good name if it's actually an AppID

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thanks..I agree.

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.

2 participants