{"action":"created","comment":{"url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/pulls/comments/179913378","pull_request_review_id":110250610,"id":179913378,"diff_hunk":"@@ -97,23 +127,25 @@ export class SearchBar extends React.Component {\n \n SearchBar.propTypes = {\n   handleClick: PropTypes.func.isRequired,\n-  suggestions: PropTypes.arrayOf(\n-    PropTypes.shape({\n-      title: PropTypes.string.isRequired,\n-      slug: PropTypes.string,\n-      id: PropTypes.number.isRequired,\n-    }),\n-  ),\n-  updateSuggestions: PropTypes.func.isRequired,\n+  getSuggestions: PropTypes.func.isRequired,\n+  mode: PropTypes.string.isRequired,\n   fullWidth: PropTypes.bool,\n   disabled: PropTypes.bool,\n   enableAdd: PropTypes.bool,\n-  category: PropTypes.string.isRequired,\n+  slugify(props, propName) {","path":"src/components/admin/form-components/SearchBar.jsx","position":null,"original_position":177,"commit_id":"c65cbe438c2f371380c9e79d51dd506c00a79bee","original_commit_id":"c65cbe438c2f371380c9e79d51dd506c00a79bee","user":{"login":"emilgoldsmith","id":18149242,"avatar_url":"https://avatars0.githubusercontent.com/u/18149242?v=4","gravatar_id":"","url":"https://api.github.com/users/emilgoldsmith","html_url":"https://github.com/emilgoldsmith","followers_url":"https://api.github.com/users/emilgoldsmith/followers","following_url":"https://api.github.com/users/emilgoldsmith/following{/other_user}","gists_url":"https://api.github.com/users/emilgoldsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/emilgoldsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilgoldsmith/subscriptions","organizations_url":"https://api.github.com/users/emilgoldsmith/orgs","repos_url":"https://api.github.com/users/emilgoldsmith/repos","events_url":"https://api.github.com/users/emilgoldsmith/events{/privacy}","received_events_url":"https://api.github.com/users/emilgoldsmith/received_events","type":"User","site_admin":false},"body":"I love the custom more specific proptype check, awesome :D. For the function check you can use `_.isFunction` from lodash as well","created_at":"2018-04-07T10:03:43Z","updated_at":"2018-04-07T10:30:31Z","html_url":"https://github.com/thegazelle-ad/gazelle-server/pull/343#discussion_r179913378","pull_request_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/pulls/343","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/thegazelle-ad/gazelle-server/pulls/comments/179913378"},"html":{"href":"https://github.com/thegazelle-ad/gazelle-server/pull/343#discussion_r179913378"},"pull_request":{"href":"https://api.github.com/repos/thegazelle-ad/gazelle-server/pulls/343"}}},"pull_request":{"url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/pulls/343","id":178520606,"html_url":"https://github.com/thegazelle-ad/gazelle-server/pull/343","diff_url":"https://github.com/thegazelle-ad/gazelle-server/pull/343.diff","patch_url":"https://github.com/thegazelle-ad/gazelle-server/pull/343.patch","issue_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/issues/343","number":343,"state":"open","locked":false,"title":"Refactor of SearchBar and Added enableAdd","user":{"login":"frederikbrinck","id":7978606,"avatar_url":"https://avatars0.githubusercontent.com/u/7978606?v=4","gravatar_id":"","url":"https://api.github.com/users/frederikbrinck","html_url":"https://github.com/frederikbrinck","followers_url":"https://api.github.com/users/frederikbrinck/followers","following_url":"https://api.github.com/users/frederikbrinck/following{/other_user}","gists_url":"https://api.github.com/users/frederikbrinck/gists{/gist_id}","starred_url":"https://api.github.com/users/frederikbrinck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frederikbrinck/subscriptions","organizations_url":"https://api.github.com/users/frederikbrinck/orgs","repos_url":"https://api.github.com/users/frederikbrinck/repos","events_url":"https://api.github.com/users/frederikbrinck/events{/privacy}","received_events_url":"https://api.github.com/users/frederikbrinck/received_events","type":"User","site_admin":false},"body":"Fixes #322 and #321. \r\n\r\nAs discussed in person, we still need to integrate the SearchBar properly into SearchBarController; this includes updating the way we post to the database so that the falcor db calls automatically handles adding new tags (or other categories) that didn't exist previously (that is, items that have `id==null`).","created_at":"2018-03-30T08:49:09Z","updated_at":"2018-04-07T10:30:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"336c9940cdcd0fbb33cdd6580380babf7f0df081","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":878745596,"url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/labels/SWE%20final%20project","name":"SWE final project","color":"f9d0c4","default":false}],"milestone":{"url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/milestones/1","html_url":"https://github.com/thegazelle-ad/gazelle-server/milestone/1","labels_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/milestones/1/labels","id":3214761,"number":1,"title":"MVP1 -- Removing Ghost","description":"Currently, the Gazelle workflow depends on publishing articles through a slim Wordpress CMS called Ghost after they have been extensively developed on google docs. Porting the articles into Ghost is a bottleneck as it bloats the code and increase the entry barriers for any developers. Moreover, it takes valuable time away for the Gazelle editors copy/pasting everything.\r\n\r\nThis milestone therefore removes Ghost by 1) restructuring Ghost DB fields and merge them with the Gazelle fields, 2) implementing simple editor and meta tags in the Gazelle CMS, 3) testing and implementing the solution into the current Gazelle workflow.","creator":{"login":"frederikbrinck","id":7978606,"avatar_url":"https://avatars0.githubusercontent.com/u/7978606?v=4","gravatar_id":"","url":"https://api.github.com/users/frederikbrinck","html_url":"https://github.com/frederikbrinck","followers_url":"https://api.github.com/users/frederikbrinck/followers","following_url":"https://api.github.com/users/frederikbrinck/following{/other_user}","gists_url":"https://api.github.com/users/frederikbrinck/gists{/gist_id}","starred_url":"https://api.github.com/users/frederikbrinck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frederikbrinck/subscriptions","organizations_url":"https://api.github.com/users/frederikbrinck/orgs","repos_url":"https://api.github.com/users/frederikbrinck/repos","events_url":"https://api.github.com/users/frederikbrinck/events{/privacy}","received_events_url":"https://api.github.com/users/frederikbrinck/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":17,"state":"open","created_at":"2018-03-25T07:16:32Z","updated_at":"2018-04-03T18:56:01Z","due_on":"2018-04-08T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/pulls/343/commits","review_comments_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/pulls/343/comments","review_comment_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/issues/343/comments","statuses_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/statuses/c65cbe438c2f371380c9e79d51dd506c00a79bee","head":{"label":"thegazelle-ad:frederik/search-bar","ref":"frederik/search-bar","sha":"c65cbe438c2f371380c9e79d51dd506c00a79bee","user":{"login":"thegazelle-ad","id":8604956,"avatar_url":"https://avatars3.githubusercontent.com/u/8604956?v=4","gravatar_id":"","url":"https://api.github.com/users/thegazelle-ad","html_url":"https://github.com/thegazelle-ad","followers_url":"https://api.github.com/users/thegazelle-ad/followers","following_url":"https://api.github.com/users/thegazelle-ad/following{/other_user}","gists_url":"https://api.github.com/users/thegazelle-ad/gists{/gist_id}","starred_url":"https://api.github.com/users/thegazelle-ad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thegazelle-ad/subscriptions","organizations_url":"https://api.github.com/users/thegazelle-ad/orgs","repos_url":"https://api.github.com/users/thegazelle-ad/repos","events_url":"https://api.github.com/users/thegazelle-ad/events{/privacy}","received_events_url":"https://api.github.com/users/thegazelle-ad/received_events","type":"Organization","site_admin":false},"repo":{"id":60618027,"name":"gazelle-server","full_name":"thegazelle-ad/gazelle-server","owner":{"login":"thegazelle-ad","id":8604956,"avatar_url":"https://avatars3.githubusercontent.com/u/8604956?v=4","gravatar_id":"","url":"https://api.github.com/users/thegazelle-ad","html_url":"https://github.com/thegazelle-ad","followers_url":"https://api.github.com/users/thegazelle-ad/followers","following_url":"https://api.github.com/users/thegazelle-ad/following{/other_user}","gists_url":"https://api.github.com/users/thegazelle-ad/gists{/gist_id}","starred_url":"https://api.github.com/users/thegazelle-ad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thegazelle-ad/subscriptions","organizations_url":"https://api.github.com/users/thegazelle-ad/orgs","repos_url":"https://api.github.com/users/thegazelle-ad/repos","events_url":"https://api.github.com/users/thegazelle-ad/events{/privacy}","received_events_url":"https://api.github.com/users/thegazelle-ad/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thegazelle-ad/gazelle-server","description":"Server for front-end and editor tools of The Gazelle","fork":false,"url":"https://api.github.com/repos/thegazelle-ad/gazelle-server","forks_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/forks","keys_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/teams","hooks_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/hooks","issue_events_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/issues/events{/number}","events_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/events","assignees_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/assignees{/user}","branches_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/branches{/branch}","tags_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/tags","blobs_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/statuses/{sha}","languages_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/languages","stargazers_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/stargazers","contributors_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/contributors","subscribers_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/subscribers","subscription_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/subscription","commits_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/contents/{+path}","compare_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/merges","archive_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/downloads","issues_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/issues{/number}","pulls_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/pulls{/number}","milestones_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/milestones{/number}","notifications_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/labels{/name}","releases_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/releases{/id}","deployments_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/deployments","created_at":"2016-06-07T14:04:28Z","updated_at":"2018-04-03T11:54:43Z","pushed_at":"2018-04-07T08:50:05Z","git_url":"git://github.com/thegazelle-ad/gazelle-server.git","ssh_url":"git@github.com:thegazelle-ad/gazelle-server.git","clone_url":"https://github.com/thegazelle-ad/gazelle-server.git","svn_url":"https://github.com/thegazelle-ad/gazelle-server","homepage":"","size":2726,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":130,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":4,"open_issues":130,"watchers":12,"default_branch":"master"}},"base":{"label":"thegazelle-ad:swe-final-project","ref":"swe-final-project","sha":"da4c743b5e5baa03a8264180cee9477958b95107","user":{"login":"thegazelle-ad","id":8604956,"avatar_url":"https://avatars3.githubusercontent.com/u/8604956?v=4","gravatar_id":"","url":"https://api.github.com/users/thegazelle-ad","html_url":"https://github.com/thegazelle-ad","followers_url":"https://api.github.com/users/thegazelle-ad/followers","following_url":"https://api.github.com/users/thegazelle-ad/following{/other_user}","gists_url":"https://api.github.com/users/thegazelle-ad/gists{/gist_id}","starred_url":"https://api.github.com/users/thegazelle-ad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thegazelle-ad/subscriptions","organizations_url":"https://api.github.com/users/thegazelle-ad/orgs","repos_url":"https://api.github.com/users/thegazelle-ad/repos","events_url":"https://api.github.com/users/thegazelle-ad/events{/privacy}","received_events_url":"https://api.github.com/users/thegazelle-ad/received_events","type":"Organization","site_admin":false},"repo":{"id":60618027,"name":"gazelle-server","full_name":"thegazelle-ad/gazelle-server","owner":{"login":"thegazelle-ad","id":8604956,"avatar_url":"https://avatars3.githubusercontent.com/u/8604956?v=4","gravatar_id":"","url":"https://api.github.com/users/thegazelle-ad","html_url":"https://github.com/thegazelle-ad","followers_url":"https://api.github.com/users/thegazelle-ad/followers","following_url":"https://api.github.com/users/thegazelle-ad/following{/other_user}","gists_url":"https://api.github.com/users/thegazelle-ad/gists{/gist_id}","starred_url":"https://api.github.com/users/thegazelle-ad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thegazelle-ad/subscriptions","organizations_url":"https://api.github.com/users/thegazelle-ad/orgs","repos_url":"https://api.github.com/users/thegazelle-ad/repos","events_url":"https://api.github.com/users/thegazelle-ad/events{/privacy}","received_events_url":"https://api.github.com/users/thegazelle-ad/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thegazelle-ad/gazelle-server","description":"Server for front-end and editor tools of The Gazelle","fork":false,"url":"https://api.github.com/repos/thegazelle-ad/gazelle-server","forks_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/forks","keys_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/teams","hooks_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/hooks","issue_events_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/issues/events{/number}","events_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/events","assignees_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/assignees{/user}","branches_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/branches{/branch}","tags_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/tags","blobs_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/statuses/{sha}","languages_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/languages","stargazers_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/stargazers","contributors_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/contributors","subscribers_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/subscribers","subscription_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/subscription","commits_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/contents/{+path}","compare_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/merges","archive_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/downloads","issues_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/issues{/number}","pulls_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/pulls{/number}","milestones_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/milestones{/number}","notifications_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/labels{/name}","releases_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/releases{/id}","deployments_url":"https://api.github.com/repos/thegazelle-ad/gazelle-server/deployments","created_at":"2016-06-07T14:04:28Z","updated_at":"2018-04-03T11:54:43Z","pushed_at":"2018-04-07T08:50:05Z","git_url":"git://github.com/thegazelle-ad/gazelle-server.git","ssh_url":"git@github.com:thegazelle-ad/gazelle-server.git","clone_url":"https://github.com/thegazelle-ad/gazelle-server.git","svn_url":"https://github.com/thegazelle-ad/gazelle-server","homepage":"","size":2726,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":130,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":4,"open_issues":130,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thegazelle-ad/gazelle-server/pulls/343"},"html":{"href":"https://github.com/thegazelle-ad/gazelle-server/pull/343"},"issue":{"href":"https://api.github.com/repos/thegazelle-ad/gazelle-server/issues/343"},"comments":{"href":"https://api.github.com/repos/thegazelle-ad/gazelle-server/issues/343/comments"},"review_comments":{"href":"https://api.github.com/repos/thegazelle-ad/gazelle-server/pulls/343/comments"},"review_comment":{"href":"https://api.github.com/repos/thegazelle-ad/gazelle-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thegazelle-ad/gazelle-server/pulls/343/commits"},"statuses":{"href":"https://api.github.com/repos/thegazelle-ad/gazelle-server/statuses/c65cbe438c2f371380c9e79d51dd506c00a79bee"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"emilgoldsmith"}}