{"action":"closed","number":128,"pull_request":{"url":"https://api.github.com/repos/bignerdranch/CoreDataStack/pulls/128","id":67532013,"html_url":"https://github.com/bignerdranch/CoreDataStack/pull/128","diff_url":"https://github.com/bignerdranch/CoreDataStack/pull/128.diff","patch_url":"https://github.com/bignerdranch/CoreDataStack/pull/128.patch","issue_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/issues/128","number":128,"state":"closed","locked":false,"title":"Add support for creating child NSManagedObjectContext in the main queue","user":{"login":"juanuribeo13","id":1808366,"avatar_url":"https://avatars.githubusercontent.com/u/1808366?v=3","gravatar_id":"","url":"https://api.github.com/users/juanuribeo13","html_url":"https://github.com/juanuribeo13","followers_url":"https://api.github.com/users/juanuribeo13/followers","following_url":"https://api.github.com/users/juanuribeo13/following{/other_user}","gists_url":"https://api.github.com/users/juanuribeo13/gists{/gist_id}","starred_url":"https://api.github.com/users/juanuribeo13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanuribeo13/subscriptions","organizations_url":"https://api.github.com/users/juanuribeo13/orgs","repos_url":"https://api.github.com/users/juanuribeo13/repos","events_url":"https://api.github.com/users/juanuribeo13/events{/privacy}","received_events_url":"https://api.github.com/users/juanuribeo13/received_events","type":"User","site_admin":false},"body":"### Summary of Changes\r\n\r\nI moved the code you have in _newBackgroundWorkerMOC_ to a new private function called _newMOC_ that receives the _concurrencyType_ and the _name_ and call that function from _newBackgroundWorkerMOC_ and _newMainQueueChildMOC_ which is the new functionality I added.\r\n\r\n### Addresses\r\n\r\n[#127](https://github.com/bignerdranch/CoreDataStack/issues/127)","created_at":"2016-04-22T15:43:19Z","updated_at":"2016-04-22T21:22:27Z","closed_at":"2016-04-22T21:22:27Z","merged_at":null,"merge_commit_sha":"c03e01656ed007e2236221bb106204f89b908ace","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/pulls/128/commits","review_comments_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/pulls/128/comments","review_comment_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/issues/128/comments","statuses_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/statuses/4c2f8d13d9d750cf74b450fedb59dbe876d75936","head":{"label":"juanuribeo13:master","ref":"master","sha":"4c2f8d13d9d750cf74b450fedb59dbe876d75936","user":{"login":"juanuribeo13","id":1808366,"avatar_url":"https://avatars.githubusercontent.com/u/1808366?v=3","gravatar_id":"","url":"https://api.github.com/users/juanuribeo13","html_url":"https://github.com/juanuribeo13","followers_url":"https://api.github.com/users/juanuribeo13/followers","following_url":"https://api.github.com/users/juanuribeo13/following{/other_user}","gists_url":"https://api.github.com/users/juanuribeo13/gists{/gist_id}","starred_url":"https://api.github.com/users/juanuribeo13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanuribeo13/subscriptions","organizations_url":"https://api.github.com/users/juanuribeo13/orgs","repos_url":"https://api.github.com/users/juanuribeo13/repos","events_url":"https://api.github.com/users/juanuribeo13/events{/privacy}","received_events_url":"https://api.github.com/users/juanuribeo13/received_events","type":"User","site_admin":false},"repo":{"id":56860950,"name":"CoreDataStack","full_name":"juanuribeo13/CoreDataStack","owner":{"login":"juanuribeo13","id":1808366,"avatar_url":"https://avatars.githubusercontent.com/u/1808366?v=3","gravatar_id":"","url":"https://api.github.com/users/juanuribeo13","html_url":"https://github.com/juanuribeo13","followers_url":"https://api.github.com/users/juanuribeo13/followers","following_url":"https://api.github.com/users/juanuribeo13/following{/other_user}","gists_url":"https://api.github.com/users/juanuribeo13/gists{/gist_id}","starred_url":"https://api.github.com/users/juanuribeo13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanuribeo13/subscriptions","organizations_url":"https://api.github.com/users/juanuribeo13/orgs","repos_url":"https://api.github.com/users/juanuribeo13/repos","events_url":"https://api.github.com/users/juanuribeo13/events{/privacy}","received_events_url":"https://api.github.com/users/juanuribeo13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/juanuribeo13/CoreDataStack","description":"The Big Nerd Ranch Core Data Stack","fork":true,"url":"https://api.github.com/repos/juanuribeo13/CoreDataStack","forks_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/forks","keys_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/teams","hooks_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/hooks","issue_events_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/issues/events{/number}","events_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/events","assignees_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/assignees{/user}","branches_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/branches{/branch}","tags_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/tags","blobs_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/git/refs{/sha}","trees_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/statuses/{sha}","languages_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/languages","stargazers_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/stargazers","contributors_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/contributors","subscribers_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/subscribers","subscription_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/subscription","commits_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/commits{/sha}","git_commits_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/git/commits{/sha}","comments_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/comments{/number}","issue_comment_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/issues/comments{/number}","contents_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/contents/{+path}","compare_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/merges","archive_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/downloads","issues_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/issues{/number}","pulls_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/pulls{/number}","milestones_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/milestones{/number}","notifications_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/labels{/name}","releases_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/releases{/id}","deployments_url":"https://api.github.com/repos/juanuribeo13/CoreDataStack/deployments","created_at":"2016-04-22T14:23:03Z","updated_at":"2016-04-22T14:23:04Z","pushed_at":"2016-04-22T15:10:31Z","git_url":"git://github.com/juanuribeo13/CoreDataStack.git","ssh_url":"git@github.com:juanuribeo13/CoreDataStack.git","clone_url":"https://github.com/juanuribeo13/CoreDataStack.git","svn_url":"https://github.com/juanuribeo13/CoreDataStack","homepage":"","size":973,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"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":"bignerdranch:master","ref":"master","sha":"aaaeb88b4cf5c11e17f657f5cd78732109994e9d","user":{"login":"bignerdranch","id":230455,"avatar_url":"https://avatars.githubusercontent.com/u/230455?v=3","gravatar_id":"","url":"https://api.github.com/users/bignerdranch","html_url":"https://github.com/bignerdranch","followers_url":"https://api.github.com/users/bignerdranch/followers","following_url":"https://api.github.com/users/bignerdranch/following{/other_user}","gists_url":"https://api.github.com/users/bignerdranch/gists{/gist_id}","starred_url":"https://api.github.com/users/bignerdranch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bignerdranch/subscriptions","organizations_url":"https://api.github.com/users/bignerdranch/orgs","repos_url":"https://api.github.com/users/bignerdranch/repos","events_url":"https://api.github.com/users/bignerdranch/events{/privacy}","received_events_url":"https://api.github.com/users/bignerdranch/received_events","type":"Organization","site_admin":false},"repo":{"id":34525751,"name":"CoreDataStack","full_name":"bignerdranch/CoreDataStack","owner":{"login":"bignerdranch","id":230455,"avatar_url":"https://avatars.githubusercontent.com/u/230455?v=3","gravatar_id":"","url":"https://api.github.com/users/bignerdranch","html_url":"https://github.com/bignerdranch","followers_url":"https://api.github.com/users/bignerdranch/followers","following_url":"https://api.github.com/users/bignerdranch/following{/other_user}","gists_url":"https://api.github.com/users/bignerdranch/gists{/gist_id}","starred_url":"https://api.github.com/users/bignerdranch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bignerdranch/subscriptions","organizations_url":"https://api.github.com/users/bignerdranch/orgs","repos_url":"https://api.github.com/users/bignerdranch/repos","events_url":"https://api.github.com/users/bignerdranch/events{/privacy}","received_events_url":"https://api.github.com/users/bignerdranch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bignerdranch/CoreDataStack","description":"The Big Nerd Ranch Core Data Stack","fork":false,"url":"https://api.github.com/repos/bignerdranch/CoreDataStack","forks_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/forks","keys_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/teams","hooks_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/hooks","issue_events_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/issues/events{/number}","events_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/events","assignees_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/assignees{/user}","branches_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/branches{/branch}","tags_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/tags","blobs_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/git/refs{/sha}","trees_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/statuses/{sha}","languages_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/languages","stargazers_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/stargazers","contributors_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/contributors","subscribers_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/subscribers","subscription_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/subscription","commits_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/commits{/sha}","git_commits_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/git/commits{/sha}","comments_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/comments{/number}","issue_comment_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/issues/comments{/number}","contents_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/contents/{+path}","compare_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/merges","archive_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/downloads","issues_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/issues{/number}","pulls_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/pulls{/number}","milestones_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/milestones{/number}","notifications_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/labels{/name}","releases_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/releases{/id}","deployments_url":"https://api.github.com/repos/bignerdranch/CoreDataStack/deployments","created_at":"2015-04-24T15:15:25Z","updated_at":"2016-04-19T19:34:46Z","pushed_at":"2016-04-22T21:20:43Z","git_url":"git://github.com/bignerdranch/CoreDataStack.git","ssh_url":"git@github.com:bignerdranch/CoreDataStack.git","clone_url":"https://github.com/bignerdranch/CoreDataStack.git","svn_url":"https://github.com/bignerdranch/CoreDataStack","homepage":"","size":993,"stargazers_count":379,"watchers_count":379,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":34,"mirror_url":null,"open_issues_count":7,"forks":34,"open_issues":7,"watchers":379,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bignerdranch/CoreDataStack/pulls/128"},"html":{"href":"https://github.com/bignerdranch/CoreDataStack/pull/128"},"issue":{"href":"https://api.github.com/repos/bignerdranch/CoreDataStack/issues/128"},"comments":{"href":"https://api.github.com/repos/bignerdranch/CoreDataStack/issues/128/comments"},"review_comments":{"href":"https://api.github.com/repos/bignerdranch/CoreDataStack/pulls/128/comments"},"review_comment":{"href":"https://api.github.com/repos/bignerdranch/CoreDataStack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bignerdranch/CoreDataStack/pulls/128/commits"},"statuses":{"href":"https://api.github.com/repos/bignerdranch/CoreDataStack/statuses/4c2f8d13d9d750cf74b450fedb59dbe876d75936"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":28,"deletions":10,"changed_files":1}}