{"action":"closed","number":9,"pull_request":{"url":"https://api.github.com/repos/TryGhost/docs/pulls/9","id":218809180,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4ODA5MTgw","html_url":"https://github.com/TryGhost/docs/pull/9","diff_url":"https://github.com/TryGhost/docs/pull/9.diff","patch_url":"https://github.com/TryGhost/docs/pull/9.patch","issue_url":"https://api.github.com/repos/TryGhost/docs/issues/9","number":9,"state":"closed","locked":false,"title":"[Playground] Algolia Search","user":{"login":"ErisDS","id":101513,"node_id":"MDQ6VXNlcjEwMTUxMw==","avatar_url":"https://avatars1.githubusercontent.com/u/101513?v=4","gravatar_id":"","url":"https://api.github.com/users/ErisDS","html_url":"https://github.com/ErisDS","followers_url":"https://api.github.com/users/ErisDS/followers","following_url":"https://api.github.com/users/ErisDS/following{/other_user}","gists_url":"https://api.github.com/users/ErisDS/gists{/gist_id}","starred_url":"https://api.github.com/users/ErisDS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErisDS/subscriptions","organizations_url":"https://api.github.com/users/ErisDS/orgs","repos_url":"https://api.github.com/users/ErisDS/repos","events_url":"https://api.github.com/users/ErisDS/events{/privacy}","received_events_url":"https://api.github.com/users/ErisDS/received_events","type":"User","site_admin":false},"body":"This gets us a basic A-B-C of loading data into algolia and then getting it back out again. It's rudimentary and missing the ability to get to the search result from the autocomplete thingy.\r\n\r\n---\r\n\r\nThe backend of this is a decent demo of how to get data IN to algolia.\r\n\r\nThe UI is a super basic thing that I setup using https://www.npmjs.com/package/react-algoliasearch, because I don't know what the actual design/plan for search results are.\r\n\r\nThere are basically 2 options afaik:\r\n\r\n1. use react instasearch: https://community.algolia.com/react-instantsearch/ which is geared more towards having 20 results on a page and then filtering, having faceted search etc (useful for the integrations)\r\n2. use autocomplete.js https://www.algolia.com/doc/tutorials/search-ui/autocomplete/how-to-build-rich-horizontal-multi-category-autocomplete-menu/ and figure out how to reactify it using inspiration such as:\r\n\r\n- https://github.com/algolia/react-instantsearch/issues/21\r\n- https://www.npmjs.com/package/react-algoliasearch\r\n\r\nOther than figuring out the UI, from here there's a lot of work to do in terms of configuring exactly what fields get passed to algolia, and how, and then configuring algolia to tell it how to treat the data, getting the right fields searched and others displayed, again depending on design.\r\n\r\n","created_at":"2018-09-27T22:43:25Z","updated_at":"2018-10-16T23:38:58Z","closed_at":"2018-10-16T23:38:58Z","merged_at":null,"merge_commit_sha":"93bdfd85153598053a807f44aea9755fa00f9af5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/TryGhost/docs/pulls/9/commits","review_comments_url":"https://api.github.com/repos/TryGhost/docs/pulls/9/comments","review_comment_url":"https://api.github.com/repos/TryGhost/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TryGhost/docs/issues/9/comments","statuses_url":"https://api.github.com/repos/TryGhost/docs/statuses/1a3bdf46afce7fc8a8b81e74f3ad265cb199f7f6","head":{"label":"TryGhost:algolia","ref":"algolia","sha":"1a3bdf46afce7fc8a8b81e74f3ad265cb199f7f6","user":{"login":"TryGhost","id":2178663,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxNzg2NjM=","avatar_url":"https://avatars3.githubusercontent.com/u/2178663?v=4","gravatar_id":"","url":"https://api.github.com/users/TryGhost","html_url":"https://github.com/TryGhost","followers_url":"https://api.github.com/users/TryGhost/followers","following_url":"https://api.github.com/users/TryGhost/following{/other_user}","gists_url":"https://api.github.com/users/TryGhost/gists{/gist_id}","starred_url":"https://api.github.com/users/TryGhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TryGhost/subscriptions","organizations_url":"https://api.github.com/users/TryGhost/orgs","repos_url":"https://api.github.com/users/TryGhost/repos","events_url":"https://api.github.com/users/TryGhost/events{/privacy}","received_events_url":"https://api.github.com/users/TryGhost/received_events","type":"Organization","site_admin":false},"repo":{"id":146719676,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY3MTk2NzY=","name":"docs","full_name":"TryGhost/docs","private":false,"owner":{"login":"TryGhost","id":2178663,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxNzg2NjM=","avatar_url":"https://avatars3.githubusercontent.com/u/2178663?v=4","gravatar_id":"","url":"https://api.github.com/users/TryGhost","html_url":"https://github.com/TryGhost","followers_url":"https://api.github.com/users/TryGhost/followers","following_url":"https://api.github.com/users/TryGhost/following{/other_user}","gists_url":"https://api.github.com/users/TryGhost/gists{/gist_id}","starred_url":"https://api.github.com/users/TryGhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TryGhost/subscriptions","organizations_url":"https://api.github.com/users/TryGhost/orgs","repos_url":"https://api.github.com/users/TryGhost/repos","events_url":"https://api.github.com/users/TryGhost/events{/privacy}","received_events_url":"https://api.github.com/users/TryGhost/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/TryGhost/docs","description":null,"fork":false,"url":"https://api.github.com/repos/TryGhost/docs","forks_url":"https://api.github.com/repos/TryGhost/docs/forks","keys_url":"https://api.github.com/repos/TryGhost/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TryGhost/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TryGhost/docs/teams","hooks_url":"https://api.github.com/repos/TryGhost/docs/hooks","issue_events_url":"https://api.github.com/repos/TryGhost/docs/issues/events{/number}","events_url":"https://api.github.com/repos/TryGhost/docs/events","assignees_url":"https://api.github.com/repos/TryGhost/docs/assignees{/user}","branches_url":"https://api.github.com/repos/TryGhost/docs/branches{/branch}","tags_url":"https://api.github.com/repos/TryGhost/docs/tags","blobs_url":"https://api.github.com/repos/TryGhost/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TryGhost/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TryGhost/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/TryGhost/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TryGhost/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/TryGhost/docs/languages","stargazers_url":"https://api.github.com/repos/TryGhost/docs/stargazers","contributors_url":"https://api.github.com/repos/TryGhost/docs/contributors","subscribers_url":"https://api.github.com/repos/TryGhost/docs/subscribers","subscription_url":"https://api.github.com/repos/TryGhost/docs/subscription","commits_url":"https://api.github.com/repos/TryGhost/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/TryGhost/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/TryGhost/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/TryGhost/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/TryGhost/docs/contents/{+path}","compare_url":"https://api.github.com/repos/TryGhost/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TryGhost/docs/merges","archive_url":"https://api.github.com/repos/TryGhost/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TryGhost/docs/downloads","issues_url":"https://api.github.com/repos/TryGhost/docs/issues{/number}","pulls_url":"https://api.github.com/repos/TryGhost/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/TryGhost/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/TryGhost/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TryGhost/docs/labels{/name}","releases_url":"https://api.github.com/repos/TryGhost/docs/releases{/id}","deployments_url":"https://api.github.com/repos/TryGhost/docs/deployments","created_at":"2018-08-30T08:28:17Z","updated_at":"2018-10-16T23:25:11Z","pushed_at":"2018-10-16T23:25:09Z","git_url":"git://github.com/TryGhost/docs.git","ssh_url":"git@github.com:TryGhost/docs.git","clone_url":"https://github.com/TryGhost/docs.git","svn_url":"https://github.com/TryGhost/docs","homepage":null,"size":3080,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":3,"watchers":5,"default_branch":"master"}},"base":{"label":"TryGhost:master","ref":"master","sha":"edb6709d84a90281da95c5cef75b91d1f98880f3","user":{"login":"TryGhost","id":2178663,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxNzg2NjM=","avatar_url":"https://avatars3.githubusercontent.com/u/2178663?v=4","gravatar_id":"","url":"https://api.github.com/users/TryGhost","html_url":"https://github.com/TryGhost","followers_url":"https://api.github.com/users/TryGhost/followers","following_url":"https://api.github.com/users/TryGhost/following{/other_user}","gists_url":"https://api.github.com/users/TryGhost/gists{/gist_id}","starred_url":"https://api.github.com/users/TryGhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TryGhost/subscriptions","organizations_url":"https://api.github.com/users/TryGhost/orgs","repos_url":"https://api.github.com/users/TryGhost/repos","events_url":"https://api.github.com/users/TryGhost/events{/privacy}","received_events_url":"https://api.github.com/users/TryGhost/received_events","type":"Organization","site_admin":false},"repo":{"id":146719676,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY3MTk2NzY=","name":"docs","full_name":"TryGhost/docs","private":false,"owner":{"login":"TryGhost","id":2178663,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxNzg2NjM=","avatar_url":"https://avatars3.githubusercontent.com/u/2178663?v=4","gravatar_id":"","url":"https://api.github.com/users/TryGhost","html_url":"https://github.com/TryGhost","followers_url":"https://api.github.com/users/TryGhost/followers","following_url":"https://api.github.com/users/TryGhost/following{/other_user}","gists_url":"https://api.github.com/users/TryGhost/gists{/gist_id}","starred_url":"https://api.github.com/users/TryGhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TryGhost/subscriptions","organizations_url":"https://api.github.com/users/TryGhost/orgs","repos_url":"https://api.github.com/users/TryGhost/repos","events_url":"https://api.github.com/users/TryGhost/events{/privacy}","received_events_url":"https://api.github.com/users/TryGhost/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/TryGhost/docs","description":null,"fork":false,"url":"https://api.github.com/repos/TryGhost/docs","forks_url":"https://api.github.com/repos/TryGhost/docs/forks","keys_url":"https://api.github.com/repos/TryGhost/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TryGhost/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TryGhost/docs/teams","hooks_url":"https://api.github.com/repos/TryGhost/docs/hooks","issue_events_url":"https://api.github.com/repos/TryGhost/docs/issues/events{/number}","events_url":"https://api.github.com/repos/TryGhost/docs/events","assignees_url":"https://api.github.com/repos/TryGhost/docs/assignees{/user}","branches_url":"https://api.github.com/repos/TryGhost/docs/branches{/branch}","tags_url":"https://api.github.com/repos/TryGhost/docs/tags","blobs_url":"https://api.github.com/repos/TryGhost/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TryGhost/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TryGhost/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/TryGhost/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TryGhost/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/TryGhost/docs/languages","stargazers_url":"https://api.github.com/repos/TryGhost/docs/stargazers","contributors_url":"https://api.github.com/repos/TryGhost/docs/contributors","subscribers_url":"https://api.github.com/repos/TryGhost/docs/subscribers","subscription_url":"https://api.github.com/repos/TryGhost/docs/subscription","commits_url":"https://api.github.com/repos/TryGhost/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/TryGhost/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/TryGhost/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/TryGhost/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/TryGhost/docs/contents/{+path}","compare_url":"https://api.github.com/repos/TryGhost/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TryGhost/docs/merges","archive_url":"https://api.github.com/repos/TryGhost/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TryGhost/docs/downloads","issues_url":"https://api.github.com/repos/TryGhost/docs/issues{/number}","pulls_url":"https://api.github.com/repos/TryGhost/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/TryGhost/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/TryGhost/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TryGhost/docs/labels{/name}","releases_url":"https://api.github.com/repos/TryGhost/docs/releases{/id}","deployments_url":"https://api.github.com/repos/TryGhost/docs/deployments","created_at":"2018-08-30T08:28:17Z","updated_at":"2018-10-16T23:25:11Z","pushed_at":"2018-10-16T23:25:09Z","git_url":"git://github.com/TryGhost/docs.git","ssh_url":"git@github.com:TryGhost/docs.git","clone_url":"https://github.com/TryGhost/docs.git","svn_url":"https://github.com/TryGhost/docs","homepage":null,"size":3080,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":3,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TryGhost/docs/pulls/9"},"html":{"href":"https://github.com/TryGhost/docs/pull/9"},"issue":{"href":"https://api.github.com/repos/TryGhost/docs/issues/9"},"comments":{"href":"https://api.github.com/repos/TryGhost/docs/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/TryGhost/docs/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/TryGhost/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TryGhost/docs/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/TryGhost/docs/statuses/1a3bdf46afce7fc8a8b81e74f3ad265cb199f7f6"}},"author_association":"MEMBER","merged":false,"mergeable":false,"rebaseable":false,"mergeable_state":"dirty","merged_by":null,"comments":2,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":219,"deletions":8,"changed_files":8}}
{"actor":{"display_login":"ErisDS"}}