{"action":"created","comment":{"url":"https://api.github.com/repos/hhru/AdaptationProject/pulls/comments/176030579","pull_request_review_id":105658932,"id":176030579,"diff_hunk":"@@ -0,0 +1,115 @@\n+import React from 'react';\n+import ReactDOM from 'react-dom';\n+import SortableTbl from 'react-sort-search-table';\n+\n+\n+class ListEmployees extends React.Component {\n+    constructor(props) {\n+        super(props);\n+        \n+        this.state = {\n+            employeeList: [],\n+        };\n+\n+        this.handleEmployeeCallback = this.handleEmployeeCallback.bind(this);\n+        this.handleDeleteEmployee = this.handleDeleteEmployee.bind(this);\n+        this.handleEditEmployee = this.handleEditEmployee.bind(this);\n+    }\n+\n+    handleEmployeeCallback(employeeList) {\n+        this.setState({\n+            employeeList: employeeList,\n+        })\n+    };\n+\n+    handleDeleteEmployee(employeeId) {\n+//        TODO: notify backend!\n+        let newEmployeeList = [];\n+        for (let i = 0; i < this.state.employeeList.length; i++) {\n+            if (this.state.employeeList[i]['id'] != employeeId) {","path":"frontend/src/components/ListEmployees.js","position":29,"original_position":29,"commit_id":"5367da1a341c05371c084e42166a02be7aa789df","original_commit_id":"5367da1a341c05371c084e42166a02be7aa789df","user":{"login":"Hulkmaster","id":2781622,"avatar_url":"https://avatars0.githubusercontent.com/u/2781622?v=4","gravatar_id":"","url":"https://api.github.com/users/Hulkmaster","html_url":"https://github.com/Hulkmaster","followers_url":"https://api.github.com/users/Hulkmaster/followers","following_url":"https://api.github.com/users/Hulkmaster/following{/other_user}","gists_url":"https://api.github.com/users/Hulkmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/Hulkmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hulkmaster/subscriptions","organizations_url":"https://api.github.com/users/Hulkmaster/orgs","repos_url":"https://api.github.com/users/Hulkmaster/repos","events_url":"https://api.github.com/users/Hulkmaster/events{/privacy}","received_events_url":"https://api.github.com/users/Hulkmaster/received_events","type":"User","site_admin":false},"body":"выглядит так, будто вашу структуру надо переписать на более плоскую и сделать объектом, дабе не приходилось перебором искать","created_at":"2018-03-21T10:07:17Z","updated_at":"2018-03-21T10:07:18Z","html_url":"https://github.com/hhru/AdaptationProject/pull/6#discussion_r176030579","pull_request_url":"https://api.github.com/repos/hhru/AdaptationProject/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/hhru/AdaptationProject/pulls/comments/176030579"},"html":{"href":"https://github.com/hhru/AdaptationProject/pull/6#discussion_r176030579"},"pull_request":{"href":"https://api.github.com/repos/hhru/AdaptationProject/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/hhru/AdaptationProject/pulls/6","id":176150198,"html_url":"https://github.com/hhru/AdaptationProject/pull/6","diff_url":"https://github.com/hhru/AdaptationProject/pull/6.diff","patch_url":"https://github.com/hhru/AdaptationProject/pull/6.patch","issue_url":"https://api.github.com/repos/hhru/AdaptationProject/issues/6","number":6,"state":"open","locked":false,"title":"Task 2","user":{"login":"ALioznova","id":8223913,"avatar_url":"https://avatars0.githubusercontent.com/u/8223913?v=4","gravatar_id":"","url":"https://api.github.com/users/ALioznova","html_url":"https://github.com/ALioznova","followers_url":"https://api.github.com/users/ALioznova/followers","following_url":"https://api.github.com/users/ALioznova/following{/other_user}","gists_url":"https://api.github.com/users/ALioznova/gists{/gist_id}","starred_url":"https://api.github.com/users/ALioznova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ALioznova/subscriptions","organizations_url":"https://api.github.com/users/ALioznova/orgs","repos_url":"https://api.github.com/users/ALioznova/repos","events_url":"https://api.github.com/users/ALioznova/events{/privacy}","received_events_url":"https://api.github.com/users/ALioznova/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-20T10:44:27Z","updated_at":"2018-03-21T10:07:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ffcd126d9d627cb9f9c39116450df7c96801d91","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hhru/AdaptationProject/pulls/6/commits","review_comments_url":"https://api.github.com/repos/hhru/AdaptationProject/pulls/6/comments","review_comment_url":"https://api.github.com/repos/hhru/AdaptationProject/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hhru/AdaptationProject/issues/6/comments","statuses_url":"https://api.github.com/repos/hhru/AdaptationProject/statuses/5367da1a341c05371c084e42166a02be7aa789df","head":{"label":"hhru:TASK-2","ref":"TASK-2","sha":"5367da1a341c05371c084e42166a02be7aa789df","user":{"login":"hhru","id":152753,"avatar_url":"https://avatars2.githubusercontent.com/u/152753?v=4","gravatar_id":"","url":"https://api.github.com/users/hhru","html_url":"https://github.com/hhru","followers_url":"https://api.github.com/users/hhru/followers","following_url":"https://api.github.com/users/hhru/following{/other_user}","gists_url":"https://api.github.com/users/hhru/gists{/gist_id}","starred_url":"https://api.github.com/users/hhru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhru/subscriptions","organizations_url":"https://api.github.com/users/hhru/orgs","repos_url":"https://api.github.com/users/hhru/repos","events_url":"https://api.github.com/users/hhru/events{/privacy}","received_events_url":"https://api.github.com/users/hhru/received_events","type":"Organization","site_admin":false},"repo":{"id":123563357,"name":"AdaptationProject","full_name":"hhru/AdaptationProject","owner":{"login":"hhru","id":152753,"avatar_url":"https://avatars2.githubusercontent.com/u/152753?v=4","gravatar_id":"","url":"https://api.github.com/users/hhru","html_url":"https://github.com/hhru","followers_url":"https://api.github.com/users/hhru/followers","following_url":"https://api.github.com/users/hhru/following{/other_user}","gists_url":"https://api.github.com/users/hhru/gists{/gist_id}","starred_url":"https://api.github.com/users/hhru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhru/subscriptions","organizations_url":"https://api.github.com/users/hhru/orgs","repos_url":"https://api.github.com/users/hhru/repos","events_url":"https://api.github.com/users/hhru/events{/privacy}","received_events_url":"https://api.github.com/users/hhru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hhru/AdaptationProject","description":null,"fork":false,"url":"https://api.github.com/repos/hhru/AdaptationProject","forks_url":"https://api.github.com/repos/hhru/AdaptationProject/forks","keys_url":"https://api.github.com/repos/hhru/AdaptationProject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hhru/AdaptationProject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hhru/AdaptationProject/teams","hooks_url":"https://api.github.com/repos/hhru/AdaptationProject/hooks","issue_events_url":"https://api.github.com/repos/hhru/AdaptationProject/issues/events{/number}","events_url":"https://api.github.com/repos/hhru/AdaptationProject/events","assignees_url":"https://api.github.com/repos/hhru/AdaptationProject/assignees{/user}","branches_url":"https://api.github.com/repos/hhru/AdaptationProject/branches{/branch}","tags_url":"https://api.github.com/repos/hhru/AdaptationProject/tags","blobs_url":"https://api.github.com/repos/hhru/AdaptationProject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hhru/AdaptationProject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hhru/AdaptationProject/git/refs{/sha}","trees_url":"https://api.github.com/repos/hhru/AdaptationProject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hhru/AdaptationProject/statuses/{sha}","languages_url":"https://api.github.com/repos/hhru/AdaptationProject/languages","stargazers_url":"https://api.github.com/repos/hhru/AdaptationProject/stargazers","contributors_url":"https://api.github.com/repos/hhru/AdaptationProject/contributors","subscribers_url":"https://api.github.com/repos/hhru/AdaptationProject/subscribers","subscription_url":"https://api.github.com/repos/hhru/AdaptationProject/subscription","commits_url":"https://api.github.com/repos/hhru/AdaptationProject/commits{/sha}","git_commits_url":"https://api.github.com/repos/hhru/AdaptationProject/git/commits{/sha}","comments_url":"https://api.github.com/repos/hhru/AdaptationProject/comments{/number}","issue_comment_url":"https://api.github.com/repos/hhru/AdaptationProject/issues/comments{/number}","contents_url":"https://api.github.com/repos/hhru/AdaptationProject/contents/{+path}","compare_url":"https://api.github.com/repos/hhru/AdaptationProject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hhru/AdaptationProject/merges","archive_url":"https://api.github.com/repos/hhru/AdaptationProject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hhru/AdaptationProject/downloads","issues_url":"https://api.github.com/repos/hhru/AdaptationProject/issues{/number}","pulls_url":"https://api.github.com/repos/hhru/AdaptationProject/pulls{/number}","milestones_url":"https://api.github.com/repos/hhru/AdaptationProject/milestones{/number}","notifications_url":"https://api.github.com/repos/hhru/AdaptationProject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hhru/AdaptationProject/labels{/name}","releases_url":"https://api.github.com/repos/hhru/AdaptationProject/releases{/id}","deployments_url":"https://api.github.com/repos/hhru/AdaptationProject/deployments","created_at":"2018-03-02T10:04:27Z","updated_at":"2018-03-17T19:25:10Z","pushed_at":"2018-03-21T09:48:29Z","git_url":"git://github.com/hhru/AdaptationProject.git","ssh_url":"git@github.com:hhru/AdaptationProject.git","clone_url":"https://github.com/hhru/AdaptationProject.git","svn_url":"https://github.com/hhru/AdaptationProject","homepage":null,"size":127,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"hhru:TASK-10","ref":"TASK-10","sha":"bf5f8e6140210c090a7ed8ce936bcb3e4fad28f1","user":{"login":"hhru","id":152753,"avatar_url":"https://avatars2.githubusercontent.com/u/152753?v=4","gravatar_id":"","url":"https://api.github.com/users/hhru","html_url":"https://github.com/hhru","followers_url":"https://api.github.com/users/hhru/followers","following_url":"https://api.github.com/users/hhru/following{/other_user}","gists_url":"https://api.github.com/users/hhru/gists{/gist_id}","starred_url":"https://api.github.com/users/hhru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhru/subscriptions","organizations_url":"https://api.github.com/users/hhru/orgs","repos_url":"https://api.github.com/users/hhru/repos","events_url":"https://api.github.com/users/hhru/events{/privacy}","received_events_url":"https://api.github.com/users/hhru/received_events","type":"Organization","site_admin":false},"repo":{"id":123563357,"name":"AdaptationProject","full_name":"hhru/AdaptationProject","owner":{"login":"hhru","id":152753,"avatar_url":"https://avatars2.githubusercontent.com/u/152753?v=4","gravatar_id":"","url":"https://api.github.com/users/hhru","html_url":"https://github.com/hhru","followers_url":"https://api.github.com/users/hhru/followers","following_url":"https://api.github.com/users/hhru/following{/other_user}","gists_url":"https://api.github.com/users/hhru/gists{/gist_id}","starred_url":"https://api.github.com/users/hhru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhru/subscriptions","organizations_url":"https://api.github.com/users/hhru/orgs","repos_url":"https://api.github.com/users/hhru/repos","events_url":"https://api.github.com/users/hhru/events{/privacy}","received_events_url":"https://api.github.com/users/hhru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hhru/AdaptationProject","description":null,"fork":false,"url":"https://api.github.com/repos/hhru/AdaptationProject","forks_url":"https://api.github.com/repos/hhru/AdaptationProject/forks","keys_url":"https://api.github.com/repos/hhru/AdaptationProject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hhru/AdaptationProject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hhru/AdaptationProject/teams","hooks_url":"https://api.github.com/repos/hhru/AdaptationProject/hooks","issue_events_url":"https://api.github.com/repos/hhru/AdaptationProject/issues/events{/number}","events_url":"https://api.github.com/repos/hhru/AdaptationProject/events","assignees_url":"https://api.github.com/repos/hhru/AdaptationProject/assignees{/user}","branches_url":"https://api.github.com/repos/hhru/AdaptationProject/branches{/branch}","tags_url":"https://api.github.com/repos/hhru/AdaptationProject/tags","blobs_url":"https://api.github.com/repos/hhru/AdaptationProject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hhru/AdaptationProject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hhru/AdaptationProject/git/refs{/sha}","trees_url":"https://api.github.com/repos/hhru/AdaptationProject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hhru/AdaptationProject/statuses/{sha}","languages_url":"https://api.github.com/repos/hhru/AdaptationProject/languages","stargazers_url":"https://api.github.com/repos/hhru/AdaptationProject/stargazers","contributors_url":"https://api.github.com/repos/hhru/AdaptationProject/contributors","subscribers_url":"https://api.github.com/repos/hhru/AdaptationProject/subscribers","subscription_url":"https://api.github.com/repos/hhru/AdaptationProject/subscription","commits_url":"https://api.github.com/repos/hhru/AdaptationProject/commits{/sha}","git_commits_url":"https://api.github.com/repos/hhru/AdaptationProject/git/commits{/sha}","comments_url":"https://api.github.com/repos/hhru/AdaptationProject/comments{/number}","issue_comment_url":"https://api.github.com/repos/hhru/AdaptationProject/issues/comments{/number}","contents_url":"https://api.github.com/repos/hhru/AdaptationProject/contents/{+path}","compare_url":"https://api.github.com/repos/hhru/AdaptationProject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hhru/AdaptationProject/merges","archive_url":"https://api.github.com/repos/hhru/AdaptationProject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hhru/AdaptationProject/downloads","issues_url":"https://api.github.com/repos/hhru/AdaptationProject/issues{/number}","pulls_url":"https://api.github.com/repos/hhru/AdaptationProject/pulls{/number}","milestones_url":"https://api.github.com/repos/hhru/AdaptationProject/milestones{/number}","notifications_url":"https://api.github.com/repos/hhru/AdaptationProject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hhru/AdaptationProject/labels{/name}","releases_url":"https://api.github.com/repos/hhru/AdaptationProject/releases{/id}","deployments_url":"https://api.github.com/repos/hhru/AdaptationProject/deployments","created_at":"2018-03-02T10:04:27Z","updated_at":"2018-03-17T19:25:10Z","pushed_at":"2018-03-21T09:48:29Z","git_url":"git://github.com/hhru/AdaptationProject.git","ssh_url":"git@github.com:hhru/AdaptationProject.git","clone_url":"https://github.com/hhru/AdaptationProject.git","svn_url":"https://github.com/hhru/AdaptationProject","homepage":null,"size":127,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hhru/AdaptationProject/pulls/6"},"html":{"href":"https://github.com/hhru/AdaptationProject/pull/6"},"issue":{"href":"https://api.github.com/repos/hhru/AdaptationProject/issues/6"},"comments":{"href":"https://api.github.com/repos/hhru/AdaptationProject/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/hhru/AdaptationProject/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/hhru/AdaptationProject/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hhru/AdaptationProject/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/hhru/AdaptationProject/statuses/5367da1a341c05371c084e42166a02be7aa789df"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Hulkmaster"}}