{"action":"created","comment":{"url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/pulls/comments/198476223","pull_request_review_id":132411610,"id":198476223,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODQ3NjIyMw==","diff_hunk":"@@ -24,17 +26,28 @@ interface PeopleCompanyProps {\n     employee?: Employee;\n     currentFocusedDepartmentId?: string;\n     departmentLists?: DepartmentsListStateDescriptor[];\n+    filter: string;\n+    employeesPredicate: (head: Department, employee: Employee) => boolean;\n }\n \n-const mapStateToProps = (state: AppState): PeopleCompanyProps => ({\n-    routeName: 'Company',\n-    departmentsBranch: state.people.departmentsBranch.length > 0 ? state.people.departmentsBranch : null,\n-    employees: state.organization.employees,\n-    departments: state.people.departments,\n-    employee: state.organization.employees.employeesById.get(state.userInfo.employeeId),\n-    currentFocusedDepartmentId: state.people.currentFocusedDepartmentId,\n-    departmentLists: state.people.departmentsLists\n-});\n+const mapStateToProps = (state: AppState): PeopleCompanyProps => {\n+    const filter = state.people.filter;\n+\n+    return ({\n+        routeName: 'Company',\n+        departmentsBranch: state.people.departmentsBranch.length > 0 ? state.people.departmentsBranch : null,\n+        employees: state.organization.employees,\n+        departments: state.people.departments,\n+        employee: state.organization.employees.employeesById.get(state.userInfo.employeeId),\n+        currentFocusedDepartmentId: state.people.currentFocusedDepartmentId,\n+        departmentLists: state.people.departmentsLists,\n+        filter,\n+        employeesPredicate: (head: Department, employee: Employee) => (employee.name.includes(filter) ||","path":"mobile/src/people/people-company.tsx","position":38,"original_position":38,"commit_id":"31d89a83b0f683e75d38be74f9e489324f12d75a","original_commit_id":"31d89a83b0f683e75d38be74f9e489324f12d75a","user":{"login":"serjKim","id":16804094,"node_id":"MDQ6VXNlcjE2ODA0MDk0","avatar_url":"https://avatars2.githubusercontent.com/u/16804094?v=4","gravatar_id":"","url":"https://api.github.com/users/serjKim","html_url":"https://github.com/serjKim","followers_url":"https://api.github.com/users/serjKim/followers","following_url":"https://api.github.com/users/serjKim/following{/other_user}","gists_url":"https://api.github.com/users/serjKim/gists{/gist_id}","starred_url":"https://api.github.com/users/serjKim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serjKim/subscriptions","organizations_url":"https://api.github.com/users/serjKim/orgs","repos_url":"https://api.github.com/users/serjKim/repos","events_url":"https://api.github.com/users/serjKim/events{/privacy}","received_events_url":"https://api.github.com/users/serjKim/received_events","type":"User","site_admin":false},"body":"although, lets leave it as-is","created_at":"2018-06-27T12:33:42Z","updated_at":"2018-06-27T12:33:49Z","html_url":"https://github.com/SoftwareCountry/arcadian-assistant/pull/165#discussion_r198476223","pull_request_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/pulls/165","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/pulls/comments/198476223"},"html":{"href":"https://github.com/SoftwareCountry/arcadian-assistant/pull/165#discussion_r198476223"},"pull_request":{"href":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/pulls/165"}},"in_reply_to_id":198214644},"pull_request":{"url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/pulls/165","id":195868465,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1ODY4NDY1","html_url":"https://github.com/SoftwareCountry/arcadian-assistant/pull/165","diff_url":"https://github.com/SoftwareCountry/arcadian-assistant/pull/165.diff","patch_url":"https://github.com/SoftwareCountry/arcadian-assistant/pull/165.patch","issue_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/issues/165","number":165,"state":"open","locked":false,"title":"Feature/search feeds and people","user":{"login":"NataliaPonomarevaMM","id":32074196,"node_id":"MDQ6VXNlcjMyMDc0MTk2","avatar_url":"https://avatars2.githubusercontent.com/u/32074196?v=4","gravatar_id":"","url":"https://api.github.com/users/NataliaPonomarevaMM","html_url":"https://github.com/NataliaPonomarevaMM","followers_url":"https://api.github.com/users/NataliaPonomarevaMM/followers","following_url":"https://api.github.com/users/NataliaPonomarevaMM/following{/other_user}","gists_url":"https://api.github.com/users/NataliaPonomarevaMM/gists{/gist_id}","starred_url":"https://api.github.com/users/NataliaPonomarevaMM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NataliaPonomarevaMM/subscriptions","organizations_url":"https://api.github.com/users/NataliaPonomarevaMM/orgs","repos_url":"https://api.github.com/users/NataliaPonomarevaMM/repos","events_url":"https://api.github.com/users/NataliaPonomarevaMM/events{/privacy}","received_events_url":"https://api.github.com/users/NataliaPonomarevaMM/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-19T15:30:04Z","updated_at":"2018-06-27T12:33:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e66c1aafc0d963a3e8c0e3da61aa79e3f9add07","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/pulls/165/commits","review_comments_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/pulls/165/comments","review_comment_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/issues/165/comments","statuses_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/statuses/31d89a83b0f683e75d38be74f9e489324f12d75a","head":{"label":"SoftwareCountry:feature/search-feeds-and-people","ref":"feature/search-feeds-and-people","sha":"31d89a83b0f683e75d38be74f9e489324f12d75a","user":{"login":"SoftwareCountry","id":14869096,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0ODY5MDk2","avatar_url":"https://avatars0.githubusercontent.com/u/14869096?v=4","gravatar_id":"","url":"https://api.github.com/users/SoftwareCountry","html_url":"https://github.com/SoftwareCountry","followers_url":"https://api.github.com/users/SoftwareCountry/followers","following_url":"https://api.github.com/users/SoftwareCountry/following{/other_user}","gists_url":"https://api.github.com/users/SoftwareCountry/gists{/gist_id}","starred_url":"https://api.github.com/users/SoftwareCountry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoftwareCountry/subscriptions","organizations_url":"https://api.github.com/users/SoftwareCountry/orgs","repos_url":"https://api.github.com/users/SoftwareCountry/repos","events_url":"https://api.github.com/users/SoftwareCountry/events{/privacy}","received_events_url":"https://api.github.com/users/SoftwareCountry/received_events","type":"Organization","site_admin":false},"repo":{"id":111402539,"node_id":"MDEwOlJlcG9zaXRvcnkxMTE0MDI1Mzk=","name":"arcadian-assistant","full_name":"SoftwareCountry/arcadian-assistant","owner":{"login":"SoftwareCountry","id":14869096,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0ODY5MDk2","avatar_url":"https://avatars0.githubusercontent.com/u/14869096?v=4","gravatar_id":"","url":"https://api.github.com/users/SoftwareCountry","html_url":"https://github.com/SoftwareCountry","followers_url":"https://api.github.com/users/SoftwareCountry/followers","following_url":"https://api.github.com/users/SoftwareCountry/following{/other_user}","gists_url":"https://api.github.com/users/SoftwareCountry/gists{/gist_id}","starred_url":"https://api.github.com/users/SoftwareCountry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoftwareCountry/subscriptions","organizations_url":"https://api.github.com/users/SoftwareCountry/orgs","repos_url":"https://api.github.com/users/SoftwareCountry/repos","events_url":"https://api.github.com/users/SoftwareCountry/events{/privacy}","received_events_url":"https://api.github.com/users/SoftwareCountry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SoftwareCountry/arcadian-assistant","description":null,"fork":false,"url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant","forks_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/forks","keys_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/teams","hooks_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/hooks","issue_events_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/issues/events{/number}","events_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/events","assignees_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/assignees{/user}","branches_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/branches{/branch}","tags_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/tags","blobs_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/git/refs{/sha}","trees_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/statuses/{sha}","languages_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/languages","stargazers_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/stargazers","contributors_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/contributors","subscribers_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/subscribers","subscription_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/subscription","commits_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/commits{/sha}","git_commits_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/git/commits{/sha}","comments_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/comments{/number}","issue_comment_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/issues/comments{/number}","contents_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/contents/{+path}","compare_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/merges","archive_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/downloads","issues_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/issues{/number}","pulls_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/pulls{/number}","milestones_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/milestones{/number}","notifications_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/labels{/name}","releases_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/releases{/id}","deployments_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/deployments","created_at":"2017-11-20T11:36:28Z","updated_at":"2018-06-19T14:36:52Z","pushed_at":"2018-06-27T10:32:32Z","git_url":"git://github.com/SoftwareCountry/arcadian-assistant.git","ssh_url":"git@github.com:SoftwareCountry/arcadian-assistant.git","clone_url":"https://github.com/SoftwareCountry/arcadian-assistant.git","svn_url":"https://github.com/SoftwareCountry/arcadian-assistant","homepage":null,"size":4314,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":20,"license":null,"forks":2,"open_issues":20,"watchers":0,"default_branch":"master"}},"base":{"label":"SoftwareCountry:master","ref":"master","sha":"d2fcc873491c659863cde71dc4d214a93d4ac92d","user":{"login":"SoftwareCountry","id":14869096,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0ODY5MDk2","avatar_url":"https://avatars0.githubusercontent.com/u/14869096?v=4","gravatar_id":"","url":"https://api.github.com/users/SoftwareCountry","html_url":"https://github.com/SoftwareCountry","followers_url":"https://api.github.com/users/SoftwareCountry/followers","following_url":"https://api.github.com/users/SoftwareCountry/following{/other_user}","gists_url":"https://api.github.com/users/SoftwareCountry/gists{/gist_id}","starred_url":"https://api.github.com/users/SoftwareCountry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoftwareCountry/subscriptions","organizations_url":"https://api.github.com/users/SoftwareCountry/orgs","repos_url":"https://api.github.com/users/SoftwareCountry/repos","events_url":"https://api.github.com/users/SoftwareCountry/events{/privacy}","received_events_url":"https://api.github.com/users/SoftwareCountry/received_events","type":"Organization","site_admin":false},"repo":{"id":111402539,"node_id":"MDEwOlJlcG9zaXRvcnkxMTE0MDI1Mzk=","name":"arcadian-assistant","full_name":"SoftwareCountry/arcadian-assistant","owner":{"login":"SoftwareCountry","id":14869096,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0ODY5MDk2","avatar_url":"https://avatars0.githubusercontent.com/u/14869096?v=4","gravatar_id":"","url":"https://api.github.com/users/SoftwareCountry","html_url":"https://github.com/SoftwareCountry","followers_url":"https://api.github.com/users/SoftwareCountry/followers","following_url":"https://api.github.com/users/SoftwareCountry/following{/other_user}","gists_url":"https://api.github.com/users/SoftwareCountry/gists{/gist_id}","starred_url":"https://api.github.com/users/SoftwareCountry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoftwareCountry/subscriptions","organizations_url":"https://api.github.com/users/SoftwareCountry/orgs","repos_url":"https://api.github.com/users/SoftwareCountry/repos","events_url":"https://api.github.com/users/SoftwareCountry/events{/privacy}","received_events_url":"https://api.github.com/users/SoftwareCountry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SoftwareCountry/arcadian-assistant","description":null,"fork":false,"url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant","forks_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/forks","keys_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/teams","hooks_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/hooks","issue_events_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/issues/events{/number}","events_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/events","assignees_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/assignees{/user}","branches_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/branches{/branch}","tags_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/tags","blobs_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/git/refs{/sha}","trees_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/statuses/{sha}","languages_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/languages","stargazers_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/stargazers","contributors_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/contributors","subscribers_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/subscribers","subscription_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/subscription","commits_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/commits{/sha}","git_commits_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/git/commits{/sha}","comments_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/comments{/number}","issue_comment_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/issues/comments{/number}","contents_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/contents/{+path}","compare_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/merges","archive_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/downloads","issues_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/issues{/number}","pulls_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/pulls{/number}","milestones_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/milestones{/number}","notifications_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/labels{/name}","releases_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/releases{/id}","deployments_url":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/deployments","created_at":"2017-11-20T11:36:28Z","updated_at":"2018-06-19T14:36:52Z","pushed_at":"2018-06-27T10:32:32Z","git_url":"git://github.com/SoftwareCountry/arcadian-assistant.git","ssh_url":"git@github.com:SoftwareCountry/arcadian-assistant.git","clone_url":"https://github.com/SoftwareCountry/arcadian-assistant.git","svn_url":"https://github.com/SoftwareCountry/arcadian-assistant","homepage":null,"size":4314,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":20,"license":null,"forks":2,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/pulls/165"},"html":{"href":"https://github.com/SoftwareCountry/arcadian-assistant/pull/165"},"issue":{"href":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/issues/165"},"comments":{"href":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/issues/165/comments"},"review_comments":{"href":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/pulls/165/comments"},"review_comment":{"href":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/pulls/165/commits"},"statuses":{"href":"https://api.github.com/repos/SoftwareCountry/arcadian-assistant/statuses/31d89a83b0f683e75d38be74f9e489324f12d75a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"serjKim"}}