{"action":"closed","number":9,"pull_request":{"url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/pulls/9","id":95394866,"html_url":"https://github.com/Task-Hero/TaskHero-iOS/pull/9","diff_url":"https://github.com/Task-Hero/TaskHero-iOS/pull/9.diff","patch_url":"https://github.com/Task-Hero/TaskHero-iOS/pull/9.patch","issue_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/issues/9","number":9,"state":"closed","locked":false,"title":"Added a getTask method / modified TaskInstance schema","user":{"login":"sahilda","id":3886640,"avatar_url":"https://avatars.githubusercontent.com/u/3886640?v=3","gravatar_id":"","url":"https://api.github.com/users/sahilda","html_url":"https://github.com/sahilda","followers_url":"https://api.github.com/users/sahilda/followers","following_url":"https://api.github.com/users/sahilda/following{/other_user}","gists_url":"https://api.github.com/users/sahilda/gists{/gist_id}","starred_url":"https://api.github.com/users/sahilda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sahilda/subscriptions","organizations_url":"https://api.github.com/users/sahilda/orgs","repos_url":"https://api.github.com/users/sahilda/repos","events_url":"https://api.github.com/users/sahilda/events{/privacy}","received_events_url":"https://api.github.com/users/sahilda/received_events","type":"User","site_admin":false},"body":"Hey guys, wanted to push some changes defining our structure.\r\n\r\nI changed the TaskInstance schema which should simplify things a bit - instead of adding meta structure data associated with each step, instead I'm proposing we copy the Task, and then just add the new fields we need for the instance. We should still create a pointer though to the original Task.\r\n\r\nDoing this allows us o reuse the Task class for both uses now (template and instance) instead of breaking it out.\r\n\r\nI added a getTasks which'll initialize the data from parse along with the steps.\r\n\r\nThe biggest TODOs:\r\n* Create a taskInstance and save to Parse. @akishinagawa I think you'll be tackling this - look at the ParseClient createTask method for inspiration. You'll also want to initialize some values for the Task and Step and save it to the TaskInstance table / class. When you get this done, do push this change so I can work on modifying it.\r\n* Chat\r\n* Completing tasks\r\n* Utilize pushes! I thinking at least three spots: when we create a new instance to all users that have at least a step, to the next list of assigned users on step completion, and when we complete a task.","created_at":"2016-11-27T07:23:58Z","updated_at":"2016-11-27T08:21:33Z","closed_at":"2016-11-27T08:21:33Z","merged_at":"2016-11-27T08:21:33Z","merge_commit_sha":"19c44b7af687f2efc73eeb46489e4a09b725e09b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/pulls/9/commits","review_comments_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/pulls/9/comments","review_comment_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/issues/9/comments","statuses_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/statuses/4110d37e39327b080669bcd120516671a0cabdbc","head":{"label":"Task-Hero:sahil2","ref":"sahil2","sha":"4110d37e39327b080669bcd120516671a0cabdbc","user":{"login":"Task-Hero","id":23205512,"avatar_url":"https://avatars.githubusercontent.com/u/23205512?v=3","gravatar_id":"","url":"https://api.github.com/users/Task-Hero","html_url":"https://github.com/Task-Hero","followers_url":"https://api.github.com/users/Task-Hero/followers","following_url":"https://api.github.com/users/Task-Hero/following{/other_user}","gists_url":"https://api.github.com/users/Task-Hero/gists{/gist_id}","starred_url":"https://api.github.com/users/Task-Hero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Task-Hero/subscriptions","organizations_url":"https://api.github.com/users/Task-Hero/orgs","repos_url":"https://api.github.com/users/Task-Hero/repos","events_url":"https://api.github.com/users/Task-Hero/events{/privacy}","received_events_url":"https://api.github.com/users/Task-Hero/received_events","type":"Organization","site_admin":false},"repo":{"id":72603253,"name":"TaskHero-iOS","full_name":"Task-Hero/TaskHero-iOS","owner":{"login":"Task-Hero","id":23205512,"avatar_url":"https://avatars.githubusercontent.com/u/23205512?v=3","gravatar_id":"","url":"https://api.github.com/users/Task-Hero","html_url":"https://github.com/Task-Hero","followers_url":"https://api.github.com/users/Task-Hero/followers","following_url":"https://api.github.com/users/Task-Hero/following{/other_user}","gists_url":"https://api.github.com/users/Task-Hero/gists{/gist_id}","starred_url":"https://api.github.com/users/Task-Hero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Task-Hero/subscriptions","organizations_url":"https://api.github.com/users/Task-Hero/orgs","repos_url":"https://api.github.com/users/Task-Hero/repos","events_url":"https://api.github.com/users/Task-Hero/events{/privacy}","received_events_url":"https://api.github.com/users/Task-Hero/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Task-Hero/TaskHero-iOS","description":"The iOS App for Task Hero","fork":false,"url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS","forks_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/forks","keys_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/teams","hooks_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/hooks","issue_events_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/events","assignees_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/tags","blobs_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/languages","stargazers_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/stargazers","contributors_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/contributors","subscribers_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/subscribers","subscription_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/subscription","commits_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/merges","archive_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/downloads","issues_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/labels{/name}","releases_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/releases{/id}","deployments_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/deployments","created_at":"2016-11-02T04:10:43Z","updated_at":"2016-11-02T04:11:14Z","pushed_at":"2016-11-27T08:21:33Z","git_url":"git://github.com/Task-Hero/TaskHero-iOS.git","ssh_url":"git@github.com:Task-Hero/TaskHero-iOS.git","clone_url":"https://github.com/Task-Hero/TaskHero-iOS.git","svn_url":"https://github.com/Task-Hero/TaskHero-iOS","homepage":null,"size":1099,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Task-Hero:master","ref":"master","sha":"18449bc3b20c082fa022e79883c1420955fb0bca","user":{"login":"Task-Hero","id":23205512,"avatar_url":"https://avatars.githubusercontent.com/u/23205512?v=3","gravatar_id":"","url":"https://api.github.com/users/Task-Hero","html_url":"https://github.com/Task-Hero","followers_url":"https://api.github.com/users/Task-Hero/followers","following_url":"https://api.github.com/users/Task-Hero/following{/other_user}","gists_url":"https://api.github.com/users/Task-Hero/gists{/gist_id}","starred_url":"https://api.github.com/users/Task-Hero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Task-Hero/subscriptions","organizations_url":"https://api.github.com/users/Task-Hero/orgs","repos_url":"https://api.github.com/users/Task-Hero/repos","events_url":"https://api.github.com/users/Task-Hero/events{/privacy}","received_events_url":"https://api.github.com/users/Task-Hero/received_events","type":"Organization","site_admin":false},"repo":{"id":72603253,"name":"TaskHero-iOS","full_name":"Task-Hero/TaskHero-iOS","owner":{"login":"Task-Hero","id":23205512,"avatar_url":"https://avatars.githubusercontent.com/u/23205512?v=3","gravatar_id":"","url":"https://api.github.com/users/Task-Hero","html_url":"https://github.com/Task-Hero","followers_url":"https://api.github.com/users/Task-Hero/followers","following_url":"https://api.github.com/users/Task-Hero/following{/other_user}","gists_url":"https://api.github.com/users/Task-Hero/gists{/gist_id}","starred_url":"https://api.github.com/users/Task-Hero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Task-Hero/subscriptions","organizations_url":"https://api.github.com/users/Task-Hero/orgs","repos_url":"https://api.github.com/users/Task-Hero/repos","events_url":"https://api.github.com/users/Task-Hero/events{/privacy}","received_events_url":"https://api.github.com/users/Task-Hero/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Task-Hero/TaskHero-iOS","description":"The iOS App for Task Hero","fork":false,"url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS","forks_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/forks","keys_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/teams","hooks_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/hooks","issue_events_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/events","assignees_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/tags","blobs_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/languages","stargazers_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/stargazers","contributors_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/contributors","subscribers_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/subscribers","subscription_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/subscription","commits_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/merges","archive_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/downloads","issues_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/labels{/name}","releases_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/releases{/id}","deployments_url":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/deployments","created_at":"2016-11-02T04:10:43Z","updated_at":"2016-11-02T04:11:14Z","pushed_at":"2016-11-27T08:21:33Z","git_url":"git://github.com/Task-Hero/TaskHero-iOS.git","ssh_url":"git@github.com:Task-Hero/TaskHero-iOS.git","clone_url":"https://github.com/Task-Hero/TaskHero-iOS.git","svn_url":"https://github.com/Task-Hero/TaskHero-iOS","homepage":null,"size":1099,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/pulls/9"},"html":{"href":"https://github.com/Task-Hero/TaskHero-iOS/pull/9"},"issue":{"href":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/issues/9"},"comments":{"href":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/Task-Hero/TaskHero-iOS/statuses/4110d37e39327b080669bcd120516671a0cabdbc"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"akishinagawa","id":637418,"avatar_url":"https://avatars.githubusercontent.com/u/637418?v=3","gravatar_id":"","url":"https://api.github.com/users/akishinagawa","html_url":"https://github.com/akishinagawa","followers_url":"https://api.github.com/users/akishinagawa/followers","following_url":"https://api.github.com/users/akishinagawa/following{/other_user}","gists_url":"https://api.github.com/users/akishinagawa/gists{/gist_id}","starred_url":"https://api.github.com/users/akishinagawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akishinagawa/subscriptions","organizations_url":"https://api.github.com/users/akishinagawa/orgs","repos_url":"https://api.github.com/users/akishinagawa/repos","events_url":"https://api.github.com/users/akishinagawa/events{/privacy}","received_events_url":"https://api.github.com/users/akishinagawa/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":184,"deletions":41,"changed_files":6}}
{"actor":{"display_login":"akishinagawa"}}