{"action":"created","comment":{"url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/pulls/comments/132429865","pull_request_review_id":55505544,"id":132429865,"diff_hunk":"@@ -76,17 +88,27 @@ - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender\n     \n }\n \n-- (void)saveEmployee:(Employee *) employee\n+- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath\n {\n-    [self addEmployee:employee];\n+    if(editingStyle == UITableViewCellEditingStyleDelete)\n+    {\n+        [org removeObjectFromEmplsAtIndex:indexPath.row];\n+        [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];\n+        [AppDelegate saveContext];\n+    }\n }\n \n-- (void)addEmployee:(Employee *)employee\n+- (void)saveEmployee:(NSString *) firstName lastName:(NSString *)lastName salary:(NSInteger)salary\n {\n-    [_org addEmployee:employee];\n-    NSIndexPath *path =[NSIndexPath indexPathForRow:_org.getCountEmplyees-1 inSection:0];\n+    Employee *employee = [NSEntityDescription insertNewObjectForEntityForName:@\"Employee\" inManagedObjectContext:[AppDelegate context]];\n+    employee.lastName = lastName;\n+    employee.firstName = firstName;\n+    employee.salary = salary;\n+    [org addEmplsObject:employee];\n+    NSIndexPath *path =[NSIndexPath indexPathForRow: org.getCountEmployees-1 inSection:0];","path":"Organization/Organization/MainViewController.m","position":133,"original_position":133,"commit_id":"b2c99a53e82c3f1d676db420ffee0c37278aa971","original_commit_id":"b2c99a53e82c3f1d676db420ffee0c37278aa971","user":{"login":"Artem-Kalmykov","id":29488527,"avatar_url":"https://avatars1.githubusercontent.com/u/29488527?v=4","gravatar_id":"","url":"https://api.github.com/users/Artem-Kalmykov","html_url":"https://github.com/Artem-Kalmykov","followers_url":"https://api.github.com/users/Artem-Kalmykov/followers","following_url":"https://api.github.com/users/Artem-Kalmykov/following{/other_user}","gists_url":"https://api.github.com/users/Artem-Kalmykov/gists{/gist_id}","starred_url":"https://api.github.com/users/Artem-Kalmykov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Artem-Kalmykov/subscriptions","organizations_url":"https://api.github.com/users/Artem-Kalmykov/orgs","repos_url":"https://api.github.com/users/Artem-Kalmykov/repos","events_url":"https://api.github.com/users/Artem-Kalmykov/events{/privacy}","received_events_url":"https://api.github.com/users/Artem-Kalmykov/received_events","type":"User","site_admin":false},"body":"Code style.","created_at":"2017-08-10T11:35:57Z","updated_at":"2017-08-10T11:36:05Z","html_url":"https://github.com/secwow/dime_rebenko_learningproject/pull/6#discussion_r132429865","pull_request_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/pulls/comments/132429865"},"html":{"href":"https://github.com/secwow/dime_rebenko_learningproject/pull/6#discussion_r132429865"},"pull_request":{"href":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/pulls/6","id":134929277,"html_url":"https://github.com/secwow/dime_rebenko_learningproject/pull/6","diff_url":"https://github.com/secwow/dime_rebenko_learningproject/pull/6.diff","patch_url":"https://github.com/secwow/dime_rebenko_learningproject/pull/6.patch","issue_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/issues/6","number":6,"state":"open","locked":false,"title":"Feature/basic coredata","user":{"login":"secwow","id":14985283,"avatar_url":"https://avatars3.githubusercontent.com/u/14985283?v=4","gravatar_id":"","url":"https://api.github.com/users/secwow","html_url":"https://github.com/secwow","followers_url":"https://api.github.com/users/secwow/followers","following_url":"https://api.github.com/users/secwow/following{/other_user}","gists_url":"https://api.github.com/users/secwow/gists{/gist_id}","starred_url":"https://api.github.com/users/secwow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/secwow/subscriptions","organizations_url":"https://api.github.com/users/secwow/orgs","repos_url":"https://api.github.com/users/secwow/repos","events_url":"https://api.github.com/users/secwow/events{/privacy}","received_events_url":"https://api.github.com/users/secwow/received_events","type":"User","site_admin":false},"body":"Implement basic core data and deletion function.\r\nImplement autolayout.\r\nRefactor by the code style.","created_at":"2017-08-09T15:57:52Z","updated_at":"2017-08-10T11:36:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f16c9b6dd58a24c53a2c17491a1107e026b545d","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/pulls/6/commits","review_comments_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/pulls/6/comments","review_comment_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/pulls/comments{/number}","comments_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/issues/6/comments","statuses_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/statuses/b2c99a53e82c3f1d676db420ffee0c37278aa971","head":{"label":"secwow:feature/basic_coredata","ref":"feature/basic_coredata","sha":"b2c99a53e82c3f1d676db420ffee0c37278aa971","user":{"login":"secwow","id":14985283,"avatar_url":"https://avatars3.githubusercontent.com/u/14985283?v=4","gravatar_id":"","url":"https://api.github.com/users/secwow","html_url":"https://github.com/secwow","followers_url":"https://api.github.com/users/secwow/followers","following_url":"https://api.github.com/users/secwow/following{/other_user}","gists_url":"https://api.github.com/users/secwow/gists{/gist_id}","starred_url":"https://api.github.com/users/secwow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/secwow/subscriptions","organizations_url":"https://api.github.com/users/secwow/orgs","repos_url":"https://api.github.com/users/secwow/repos","events_url":"https://api.github.com/users/secwow/events{/privacy}","received_events_url":"https://api.github.com/users/secwow/received_events","type":"User","site_admin":false},"repo":{"id":99121243,"name":"dime_rebenko_learningproject","full_name":"secwow/dime_rebenko_learningproject","owner":{"login":"secwow","id":14985283,"avatar_url":"https://avatars3.githubusercontent.com/u/14985283?v=4","gravatar_id":"","url":"https://api.github.com/users/secwow","html_url":"https://github.com/secwow","followers_url":"https://api.github.com/users/secwow/followers","following_url":"https://api.github.com/users/secwow/following{/other_user}","gists_url":"https://api.github.com/users/secwow/gists{/gist_id}","starred_url":"https://api.github.com/users/secwow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/secwow/subscriptions","organizations_url":"https://api.github.com/users/secwow/orgs","repos_url":"https://api.github.com/users/secwow/repos","events_url":"https://api.github.com/users/secwow/events{/privacy}","received_events_url":"https://api.github.com/users/secwow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/secwow/dime_rebenko_learningproject","description":null,"fork":false,"url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject","forks_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/forks","keys_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/teams","hooks_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/hooks","issue_events_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/issues/events{/number}","events_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/events","assignees_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/assignees{/user}","branches_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/branches{/branch}","tags_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/tags","blobs_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/git/refs{/sha}","trees_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/statuses/{sha}","languages_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/languages","stargazers_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/stargazers","contributors_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/contributors","subscribers_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/subscribers","subscription_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/subscription","commits_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/commits{/sha}","git_commits_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/git/commits{/sha}","comments_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/comments{/number}","issue_comment_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/issues/comments{/number}","contents_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/contents/{+path}","compare_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/merges","archive_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/downloads","issues_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/issues{/number}","pulls_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/pulls{/number}","milestones_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/milestones{/number}","notifications_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/labels{/name}","releases_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/releases{/id}","deployments_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/deployments","created_at":"2017-08-02T13:47:26Z","updated_at":"2017-08-02T13:55:11Z","pushed_at":"2017-08-10T09:46:59Z","git_url":"git://github.com/secwow/dime_rebenko_learningproject.git","ssh_url":"git@github.com:secwow/dime_rebenko_learningproject.git","clone_url":"https://github.com/secwow/dime_rebenko_learningproject.git","svn_url":"https://github.com/secwow/dime_rebenko_learningproject","homepage":null,"size":119,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"secwow:develop","ref":"develop","sha":"1adaaa34e3f04b6b4a93be48ae44c786508100e0","user":{"login":"secwow","id":14985283,"avatar_url":"https://avatars3.githubusercontent.com/u/14985283?v=4","gravatar_id":"","url":"https://api.github.com/users/secwow","html_url":"https://github.com/secwow","followers_url":"https://api.github.com/users/secwow/followers","following_url":"https://api.github.com/users/secwow/following{/other_user}","gists_url":"https://api.github.com/users/secwow/gists{/gist_id}","starred_url":"https://api.github.com/users/secwow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/secwow/subscriptions","organizations_url":"https://api.github.com/users/secwow/orgs","repos_url":"https://api.github.com/users/secwow/repos","events_url":"https://api.github.com/users/secwow/events{/privacy}","received_events_url":"https://api.github.com/users/secwow/received_events","type":"User","site_admin":false},"repo":{"id":99121243,"name":"dime_rebenko_learningproject","full_name":"secwow/dime_rebenko_learningproject","owner":{"login":"secwow","id":14985283,"avatar_url":"https://avatars3.githubusercontent.com/u/14985283?v=4","gravatar_id":"","url":"https://api.github.com/users/secwow","html_url":"https://github.com/secwow","followers_url":"https://api.github.com/users/secwow/followers","following_url":"https://api.github.com/users/secwow/following{/other_user}","gists_url":"https://api.github.com/users/secwow/gists{/gist_id}","starred_url":"https://api.github.com/users/secwow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/secwow/subscriptions","organizations_url":"https://api.github.com/users/secwow/orgs","repos_url":"https://api.github.com/users/secwow/repos","events_url":"https://api.github.com/users/secwow/events{/privacy}","received_events_url":"https://api.github.com/users/secwow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/secwow/dime_rebenko_learningproject","description":null,"fork":false,"url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject","forks_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/forks","keys_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/teams","hooks_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/hooks","issue_events_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/issues/events{/number}","events_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/events","assignees_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/assignees{/user}","branches_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/branches{/branch}","tags_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/tags","blobs_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/git/refs{/sha}","trees_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/statuses/{sha}","languages_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/languages","stargazers_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/stargazers","contributors_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/contributors","subscribers_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/subscribers","subscription_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/subscription","commits_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/commits{/sha}","git_commits_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/git/commits{/sha}","comments_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/comments{/number}","issue_comment_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/issues/comments{/number}","contents_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/contents/{+path}","compare_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/merges","archive_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/downloads","issues_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/issues{/number}","pulls_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/pulls{/number}","milestones_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/milestones{/number}","notifications_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/labels{/name}","releases_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/releases{/id}","deployments_url":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/deployments","created_at":"2017-08-02T13:47:26Z","updated_at":"2017-08-02T13:55:11Z","pushed_at":"2017-08-10T09:46:59Z","git_url":"git://github.com/secwow/dime_rebenko_learningproject.git","ssh_url":"git@github.com:secwow/dime_rebenko_learningproject.git","clone_url":"https://github.com/secwow/dime_rebenko_learningproject.git","svn_url":"https://github.com/secwow/dime_rebenko_learningproject","homepage":null,"size":119,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/pulls/6"},"html":{"href":"https://github.com/secwow/dime_rebenko_learningproject/pull/6"},"issue":{"href":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/issues/6"},"comments":{"href":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/secwow/dime_rebenko_learningproject/statuses/b2c99a53e82c3f1d676db420ffee0c37278aa971"}}}}
{"actor":{"display_login":"Artem-Kalmykov"}}