{"action":"created","comment":{"url":"https://api.github.com/repos/nporpigliaglobant/Kanban/pulls/comments/29330227","id":29330227,"diff_hunk":"@@ -36,26 +54,119 @@ - (void)didReceiveMemoryWarning {\n     // Dispose of any resources that can be recreated.\n }\n \n+- (NSManagedObjectContext*) managedObjectContext {\n+    return [(KBNAppDelegate*)[[UIApplication sharedApplication] delegate] managedObjectContext];\n+}\n+\n #pragma mark - Table View Data Source\n \n -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {\n-    return [self.tasks count];\n+    return [self.taskListTasks count];\n }\n \n -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {\n     \n     UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:TABLEVIEW_TASK_CELL forIndexPath:indexPath];\n     \n-    KBNTask* task = [self.tasks objectAtIndex:indexPath.row];\n+    KBNTask* task = [self.taskListTasks objectAtIndex:indexPath.row];\n     cell.textLabel.text = task.name;\n     \n     return cell;\n+    \n+}\n+\n+#pragma mark - Gestures Handlers\n+\n+// Tap (Long Press) and Swipe to move a task to the previous/next list\n+- (IBAction)handleLongPress:(UILongPressGestureRecognizer *)sender {\n+    \n+    if (sender.state == UIGestureRecognizerStateBegan) {\n+        beginPoint = [sender locationInView:self.tableView.superview];\n+        selectedIndexPath = [self indexPathForSender:sender];\n+        selectedTask = [self.taskListTasks objectAtIndex:selectedIndexPath.row];\n+        \n+        [self toggleSelectedStatus:sender];\n+        [self.delegate toggleScrollStatus];\n+    } else if (sender.state == UIGestureRecognizerStateEnded) {\n+        endPoint = [sender locationInView:self.tableView.superview];\n+        if (selectedTask) {\n+            if (endPoint.x > beginPoint.x + 50) {\n+                // Swipe Right\n+                [self.delegate moveToRightTask:selectedTask from:self];\n+                if (self.pageIndex < self.totalPages -1) {\n+                    [self removeTask:selectedTask];\n+                }\n+            } else if (endPoint.x < beginPoint.x - 50) {","path":"Kanban/Controllers/KBNProjectDetailViewController.m","position":92,"original_position":92,"commit_id":"6347b344473a4c4c0489811872bfb5e61f6d7d2a","original_commit_id":"6347b344473a4c4c0489811872bfb5e61f6d7d2a","user":{"login":"nporpigliaglobant","id":11842154,"avatar_url":"https://avatars.githubusercontent.com/u/11842154?v=3","gravatar_id":"","url":"https://api.github.com/users/nporpigliaglobant","html_url":"https://github.com/nporpigliaglobant","followers_url":"https://api.github.com/users/nporpigliaglobant/followers","following_url":"https://api.github.com/users/nporpigliaglobant/following{/other_user}","gists_url":"https://api.github.com/users/nporpigliaglobant/gists{/gist_id}","starred_url":"https://api.github.com/users/nporpigliaglobant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nporpigliaglobant/subscriptions","organizations_url":"https://api.github.com/users/nporpigliaglobant/orgs","repos_url":"https://api.github.com/users/nporpigliaglobant/repos","events_url":"https://api.github.com/users/nporpigliaglobant/events{/privacy}","received_events_url":"https://api.github.com/users/nporpigliaglobant/received_events","type":"User","site_admin":false},"body":"ídem anterior","created_at":"2015-04-29T12:23:22Z","updated_at":"2015-04-29T12:23:22Z","html_url":"https://github.com/nporpigliaglobant/Kanban/pull/14#discussion_r29330227","pull_request_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/nporpigliaglobant/Kanban/pulls/comments/29330227"},"html":{"href":"https://github.com/nporpigliaglobant/Kanban/pull/14#discussion_r29330227"},"pull_request":{"href":"https://api.github.com/repos/nporpigliaglobant/Kanban/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/nporpigliaglobant/Kanban/pulls/14","id":34353278,"html_url":"https://github.com/nporpigliaglobant/Kanban/pull/14","diff_url":"https://github.com/nporpigliaglobant/Kanban/pull/14.diff","patch_url":"https://github.com/nporpigliaglobant/Kanban/pull/14.patch","issue_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/issues/14","number":14,"state":"open","locked":false,"title":"PR: Feature/get project task lists","user":{"login":"Lucasv-Globant","id":10196584,"avatar_url":"https://avatars.githubusercontent.com/u/10196584?v=3","gravatar_id":"","url":"https://api.github.com/users/Lucasv-Globant","html_url":"https://github.com/Lucasv-Globant","followers_url":"https://api.github.com/users/Lucasv-Globant/followers","following_url":"https://api.github.com/users/Lucasv-Globant/following{/other_user}","gists_url":"https://api.github.com/users/Lucasv-Globant/gists{/gist_id}","starred_url":"https://api.github.com/users/Lucasv-Globant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lucasv-Globant/subscriptions","organizations_url":"https://api.github.com/users/Lucasv-Globant/orgs","repos_url":"https://api.github.com/users/Lucasv-Globant/repos","events_url":"https://api.github.com/users/Lucasv-Globant/events{/privacy}","received_events_url":"https://api.github.com/users/Lucasv-Globant/received_events","type":"User","site_admin":false},"body":"Separation of services KBNTaskService and KBNTaskListService into layers for Parse (KBN***ParseAPIManager). ","created_at":"2015-04-29T11:23:18Z","updated_at":"2015-04-29T12:23:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5d2f0a64d79f1ee87f85265dc2877af3aaa3b2e","assignee":{"login":"nporpigliaglobant","id":11842154,"avatar_url":"https://avatars.githubusercontent.com/u/11842154?v=3","gravatar_id":"","url":"https://api.github.com/users/nporpigliaglobant","html_url":"https://github.com/nporpigliaglobant","followers_url":"https://api.github.com/users/nporpigliaglobant/followers","following_url":"https://api.github.com/users/nporpigliaglobant/following{/other_user}","gists_url":"https://api.github.com/users/nporpigliaglobant/gists{/gist_id}","starred_url":"https://api.github.com/users/nporpigliaglobant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nporpigliaglobant/subscriptions","organizations_url":"https://api.github.com/users/nporpigliaglobant/orgs","repos_url":"https://api.github.com/users/nporpigliaglobant/repos","events_url":"https://api.github.com/users/nporpigliaglobant/events{/privacy}","received_events_url":"https://api.github.com/users/nporpigliaglobant/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/pulls/14/commits","review_comments_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/pulls/14/comments","review_comment_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/issues/14/comments","statuses_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/statuses/6347b344473a4c4c0489811872bfb5e61f6d7d2a","head":{"label":"nporpigliaglobant:feature/get_project_task_lists","ref":"feature/get_project_task_lists","sha":"6347b344473a4c4c0489811872bfb5e61f6d7d2a","user":{"login":"nporpigliaglobant","id":11842154,"avatar_url":"https://avatars.githubusercontent.com/u/11842154?v=3","gravatar_id":"","url":"https://api.github.com/users/nporpigliaglobant","html_url":"https://github.com/nporpigliaglobant","followers_url":"https://api.github.com/users/nporpigliaglobant/followers","following_url":"https://api.github.com/users/nporpigliaglobant/following{/other_user}","gists_url":"https://api.github.com/users/nporpigliaglobant/gists{/gist_id}","starred_url":"https://api.github.com/users/nporpigliaglobant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nporpigliaglobant/subscriptions","organizations_url":"https://api.github.com/users/nporpigliaglobant/orgs","repos_url":"https://api.github.com/users/nporpigliaglobant/repos","events_url":"https://api.github.com/users/nporpigliaglobant/events{/privacy}","received_events_url":"https://api.github.com/users/nporpigliaglobant/received_events","type":"User","site_admin":false},"repo":{"id":33998750,"name":"Kanban","full_name":"nporpigliaglobant/Kanban","owner":{"login":"nporpigliaglobant","id":11842154,"avatar_url":"https://avatars.githubusercontent.com/u/11842154?v=3","gravatar_id":"","url":"https://api.github.com/users/nporpigliaglobant","html_url":"https://github.com/nporpigliaglobant","followers_url":"https://api.github.com/users/nporpigliaglobant/followers","following_url":"https://api.github.com/users/nporpigliaglobant/following{/other_user}","gists_url":"https://api.github.com/users/nporpigliaglobant/gists{/gist_id}","starred_url":"https://api.github.com/users/nporpigliaglobant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nporpigliaglobant/subscriptions","organizations_url":"https://api.github.com/users/nporpigliaglobant/orgs","repos_url":"https://api.github.com/users/nporpigliaglobant/repos","events_url":"https://api.github.com/users/nporpigliaglobant/events{/privacy}","received_events_url":"https://api.github.com/users/nporpigliaglobant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nporpigliaglobant/Kanban","description":"","fork":false,"url":"https://api.github.com/repos/nporpigliaglobant/Kanban","forks_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/forks","keys_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/teams","hooks_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/hooks","issue_events_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/issues/events{/number}","events_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/events","assignees_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/assignees{/user}","branches_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/branches{/branch}","tags_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/tags","blobs_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/git/refs{/sha}","trees_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/statuses/{sha}","languages_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/languages","stargazers_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/stargazers","contributors_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/contributors","subscribers_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/subscribers","subscription_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/subscription","commits_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/commits{/sha}","git_commits_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/git/commits{/sha}","comments_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/comments{/number}","issue_comment_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/issues/comments{/number}","contents_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/contents/{+path}","compare_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/merges","archive_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/downloads","issues_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/issues{/number}","pulls_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/pulls{/number}","milestones_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/milestones{/number}","notifications_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/labels{/name}","releases_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/releases{/id}","created_at":"2015-04-15T14:28:49Z","updated_at":"2015-04-28T20:32:53Z","pushed_at":"2015-04-29T11:51:02Z","git_url":"git://github.com/nporpigliaglobant/Kanban.git","ssh_url":"git@github.com:nporpigliaglobant/Kanban.git","clone_url":"https://github.com/nporpigliaglobant/Kanban.git","svn_url":"https://github.com/nporpigliaglobant/Kanban","homepage":null,"size":18332,"stargazers_count":1,"watchers_count":1,"language":"Objective-C","has_issues":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":1,"default_branch":"master"}},"base":{"label":"nporpigliaglobant:master","ref":"master","sha":"1eacf9caf0e2328b78896b38ae32be41fd9c4d6c","user":{"login":"nporpigliaglobant","id":11842154,"avatar_url":"https://avatars.githubusercontent.com/u/11842154?v=3","gravatar_id":"","url":"https://api.github.com/users/nporpigliaglobant","html_url":"https://github.com/nporpigliaglobant","followers_url":"https://api.github.com/users/nporpigliaglobant/followers","following_url":"https://api.github.com/users/nporpigliaglobant/following{/other_user}","gists_url":"https://api.github.com/users/nporpigliaglobant/gists{/gist_id}","starred_url":"https://api.github.com/users/nporpigliaglobant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nporpigliaglobant/subscriptions","organizations_url":"https://api.github.com/users/nporpigliaglobant/orgs","repos_url":"https://api.github.com/users/nporpigliaglobant/repos","events_url":"https://api.github.com/users/nporpigliaglobant/events{/privacy}","received_events_url":"https://api.github.com/users/nporpigliaglobant/received_events","type":"User","site_admin":false},"repo":{"id":33998750,"name":"Kanban","full_name":"nporpigliaglobant/Kanban","owner":{"login":"nporpigliaglobant","id":11842154,"avatar_url":"https://avatars.githubusercontent.com/u/11842154?v=3","gravatar_id":"","url":"https://api.github.com/users/nporpigliaglobant","html_url":"https://github.com/nporpigliaglobant","followers_url":"https://api.github.com/users/nporpigliaglobant/followers","following_url":"https://api.github.com/users/nporpigliaglobant/following{/other_user}","gists_url":"https://api.github.com/users/nporpigliaglobant/gists{/gist_id}","starred_url":"https://api.github.com/users/nporpigliaglobant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nporpigliaglobant/subscriptions","organizations_url":"https://api.github.com/users/nporpigliaglobant/orgs","repos_url":"https://api.github.com/users/nporpigliaglobant/repos","events_url":"https://api.github.com/users/nporpigliaglobant/events{/privacy}","received_events_url":"https://api.github.com/users/nporpigliaglobant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nporpigliaglobant/Kanban","description":"","fork":false,"url":"https://api.github.com/repos/nporpigliaglobant/Kanban","forks_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/forks","keys_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/teams","hooks_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/hooks","issue_events_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/issues/events{/number}","events_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/events","assignees_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/assignees{/user}","branches_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/branches{/branch}","tags_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/tags","blobs_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/git/refs{/sha}","trees_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/statuses/{sha}","languages_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/languages","stargazers_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/stargazers","contributors_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/contributors","subscribers_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/subscribers","subscription_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/subscription","commits_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/commits{/sha}","git_commits_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/git/commits{/sha}","comments_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/comments{/number}","issue_comment_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/issues/comments{/number}","contents_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/contents/{+path}","compare_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/merges","archive_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/downloads","issues_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/issues{/number}","pulls_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/pulls{/number}","milestones_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/milestones{/number}","notifications_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/labels{/name}","releases_url":"https://api.github.com/repos/nporpigliaglobant/Kanban/releases{/id}","created_at":"2015-04-15T14:28:49Z","updated_at":"2015-04-28T20:32:53Z","pushed_at":"2015-04-29T11:51:02Z","git_url":"git://github.com/nporpigliaglobant/Kanban.git","ssh_url":"git@github.com:nporpigliaglobant/Kanban.git","clone_url":"https://github.com/nporpigliaglobant/Kanban.git","svn_url":"https://github.com/nporpigliaglobant/Kanban","homepage":null,"size":18332,"stargazers_count":1,"watchers_count":1,"language":"Objective-C","has_issues":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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nporpigliaglobant/Kanban/pulls/14"},"html":{"href":"https://github.com/nporpigliaglobant/Kanban/pull/14"},"issue":{"href":"https://api.github.com/repos/nporpigliaglobant/Kanban/issues/14"},"comments":{"href":"https://api.github.com/repos/nporpigliaglobant/Kanban/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/nporpigliaglobant/Kanban/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/nporpigliaglobant/Kanban/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nporpigliaglobant/Kanban/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/nporpigliaglobant/Kanban/statuses/6347b344473a4c4c0489811872bfb5e61f6d7d2a"}}}}