{"action":"opened","number":29,"pull_request":{"url":"https://api.github.com/repos/mmorey/MDMCoreData/pulls/29","id":28058854,"html_url":"https://github.com/mmorey/MDMCoreData/pull/29","diff_url":"https://github.com/mmorey/MDMCoreData/pull/29.diff","patch_url":"https://github.com/mmorey/MDMCoreData/pull/29.patch","issue_url":"https://api.github.com/repos/mmorey/MDMCoreData/issues/29","number":29,"state":"open","locked":false,"title":"Fix concurrency issues","user":{"login":"craigmarvelley","id":265907,"avatar_url":"https://avatars.githubusercontent.com/u/265907?v=3","gravatar_id":"","url":"https://api.github.com/users/craigmarvelley","html_url":"https://github.com/craigmarvelley","followers_url":"https://api.github.com/users/craigmarvelley/followers","following_url":"https://api.github.com/users/craigmarvelley/following{/other_user}","gists_url":"https://api.github.com/users/craigmarvelley/gists{/gist_id}","starred_url":"https://api.github.com/users/craigmarvelley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigmarvelley/subscriptions","organizations_url":"https://api.github.com/users/craigmarvelley/orgs","repos_url":"https://api.github.com/users/craigmarvelley/repos","events_url":"https://api.github.com/users/craigmarvelley/events{/privacy}","received_events_url":"https://api.github.com/users/craigmarvelley/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nI've been addressing some problems in my application related to using managed object contexts with multiple threads, using the new debugging support in iOS 8 (http://oleb.net/blog/2014/06/core-data-concurrency-debugging/). It flagged up a couple of concurrency issues with the MDMPersistenceController class when the writer context is accessed from outside its host thread, which I've addressed here - I've tested it with my application and the example app in this repo and it everything seems to work fine.\r\n\r\nIf you'd like to check out the issue, add the following argument to the example project's scheme: `-com.apple.CoreData.ConcurrencyDebug 1`.\r\n\r\nCheers!","created_at":"2015-01-26T20:47:47Z","updated_at":"2015-01-26T20:47:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mmorey/MDMCoreData/pulls/29/commits","review_comments_url":"https://api.github.com/repos/mmorey/MDMCoreData/pulls/29/comments","review_comment_url":"https://api.github.com/repos/mmorey/MDMCoreData/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mmorey/MDMCoreData/issues/29/comments","statuses_url":"https://api.github.com/repos/mmorey/MDMCoreData/statuses/76511d0176c2ece45055af4f087ff452c0d1d9dc","head":{"label":"craigmarvelley:fix-threading-issues","ref":"fix-threading-issues","sha":"76511d0176c2ece45055af4f087ff452c0d1d9dc","user":{"login":"craigmarvelley","id":265907,"avatar_url":"https://avatars.githubusercontent.com/u/265907?v=3","gravatar_id":"","url":"https://api.github.com/users/craigmarvelley","html_url":"https://github.com/craigmarvelley","followers_url":"https://api.github.com/users/craigmarvelley/followers","following_url":"https://api.github.com/users/craigmarvelley/following{/other_user}","gists_url":"https://api.github.com/users/craigmarvelley/gists{/gist_id}","starred_url":"https://api.github.com/users/craigmarvelley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigmarvelley/subscriptions","organizations_url":"https://api.github.com/users/craigmarvelley/orgs","repos_url":"https://api.github.com/users/craigmarvelley/repos","events_url":"https://api.github.com/users/craigmarvelley/events{/privacy}","received_events_url":"https://api.github.com/users/craigmarvelley/received_events","type":"User","site_admin":false},"repo":{"id":28089819,"name":"MDMCoreData","full_name":"craigmarvelley/MDMCoreData","owner":{"login":"craigmarvelley","id":265907,"avatar_url":"https://avatars.githubusercontent.com/u/265907?v=3","gravatar_id":"","url":"https://api.github.com/users/craigmarvelley","html_url":"https://github.com/craigmarvelley","followers_url":"https://api.github.com/users/craigmarvelley/followers","following_url":"https://api.github.com/users/craigmarvelley/following{/other_user}","gists_url":"https://api.github.com/users/craigmarvelley/gists{/gist_id}","starred_url":"https://api.github.com/users/craigmarvelley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigmarvelley/subscriptions","organizations_url":"https://api.github.com/users/craigmarvelley/orgs","repos_url":"https://api.github.com/users/craigmarvelley/repos","events_url":"https://api.github.com/users/craigmarvelley/events{/privacy}","received_events_url":"https://api.github.com/users/craigmarvelley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/craigmarvelley/MDMCoreData","description":"A collection of lightweight Core Data classes for iOS and OS X.","fork":true,"url":"https://api.github.com/repos/craigmarvelley/MDMCoreData","forks_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/forks","keys_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/keys{/key_id}","collaborators_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/teams","hooks_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/hooks","issue_events_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/issues/events{/number}","events_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/events","assignees_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/assignees{/user}","branches_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/branches{/branch}","tags_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/tags","blobs_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/git/refs{/sha}","trees_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/git/trees{/sha}","statuses_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/statuses/{sha}","languages_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/languages","stargazers_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/stargazers","contributors_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/contributors","subscribers_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/subscribers","subscription_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/subscription","commits_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/commits{/sha}","git_commits_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/git/commits{/sha}","comments_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/comments{/number}","issue_comment_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/issues/comments/{number}","contents_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/contents/{+path}","compare_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/compare/{base}...{head}","merges_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/merges","archive_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/downloads","issues_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/issues{/number}","pulls_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/pulls{/number}","milestones_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/milestones{/number}","notifications_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/labels{/name}","releases_url":"https://api.github.com/repos/craigmarvelley/MDMCoreData/releases{/id}","created_at":"2014-12-16T14:11:10Z","updated_at":"2014-12-18T13:07:02Z","pushed_at":"2015-01-26T20:14:49Z","git_url":"git://github.com/craigmarvelley/MDMCoreData.git","ssh_url":"git@github.com:craigmarvelley/MDMCoreData.git","clone_url":"https://github.com/craigmarvelley/MDMCoreData.git","svn_url":"https://github.com/craigmarvelley/MDMCoreData","homepage":"","size":1144,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","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":"mmorey:master","ref":"master","sha":"24c3124ac88ec1718927626f9e8c4425a63b2bb8","user":{"login":"mmorey","id":251031,"avatar_url":"https://avatars.githubusercontent.com/u/251031?v=3","gravatar_id":"","url":"https://api.github.com/users/mmorey","html_url":"https://github.com/mmorey","followers_url":"https://api.github.com/users/mmorey/followers","following_url":"https://api.github.com/users/mmorey/following{/other_user}","gists_url":"https://api.github.com/users/mmorey/gists{/gist_id}","starred_url":"https://api.github.com/users/mmorey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmorey/subscriptions","organizations_url":"https://api.github.com/users/mmorey/orgs","repos_url":"https://api.github.com/users/mmorey/repos","events_url":"https://api.github.com/users/mmorey/events{/privacy}","received_events_url":"https://api.github.com/users/mmorey/received_events","type":"User","site_admin":false},"repo":{"id":16670204,"name":"MDMCoreData","full_name":"mmorey/MDMCoreData","owner":{"login":"mmorey","id":251031,"avatar_url":"https://avatars.githubusercontent.com/u/251031?v=3","gravatar_id":"","url":"https://api.github.com/users/mmorey","html_url":"https://github.com/mmorey","followers_url":"https://api.github.com/users/mmorey/followers","following_url":"https://api.github.com/users/mmorey/following{/other_user}","gists_url":"https://api.github.com/users/mmorey/gists{/gist_id}","starred_url":"https://api.github.com/users/mmorey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmorey/subscriptions","organizations_url":"https://api.github.com/users/mmorey/orgs","repos_url":"https://api.github.com/users/mmorey/repos","events_url":"https://api.github.com/users/mmorey/events{/privacy}","received_events_url":"https://api.github.com/users/mmorey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mmorey/MDMCoreData","description":"A collection of lightweight Core Data classes for iOS and OS X.","fork":false,"url":"https://api.github.com/repos/mmorey/MDMCoreData","forks_url":"https://api.github.com/repos/mmorey/MDMCoreData/forks","keys_url":"https://api.github.com/repos/mmorey/MDMCoreData/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmorey/MDMCoreData/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmorey/MDMCoreData/teams","hooks_url":"https://api.github.com/repos/mmorey/MDMCoreData/hooks","issue_events_url":"https://api.github.com/repos/mmorey/MDMCoreData/issues/events{/number}","events_url":"https://api.github.com/repos/mmorey/MDMCoreData/events","assignees_url":"https://api.github.com/repos/mmorey/MDMCoreData/assignees{/user}","branches_url":"https://api.github.com/repos/mmorey/MDMCoreData/branches{/branch}","tags_url":"https://api.github.com/repos/mmorey/MDMCoreData/tags","blobs_url":"https://api.github.com/repos/mmorey/MDMCoreData/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmorey/MDMCoreData/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmorey/MDMCoreData/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmorey/MDMCoreData/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmorey/MDMCoreData/statuses/{sha}","languages_url":"https://api.github.com/repos/mmorey/MDMCoreData/languages","stargazers_url":"https://api.github.com/repos/mmorey/MDMCoreData/stargazers","contributors_url":"https://api.github.com/repos/mmorey/MDMCoreData/contributors","subscribers_url":"https://api.github.com/repos/mmorey/MDMCoreData/subscribers","subscription_url":"https://api.github.com/repos/mmorey/MDMCoreData/subscription","commits_url":"https://api.github.com/repos/mmorey/MDMCoreData/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmorey/MDMCoreData/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmorey/MDMCoreData/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmorey/MDMCoreData/issues/comments/{number}","contents_url":"https://api.github.com/repos/mmorey/MDMCoreData/contents/{+path}","compare_url":"https://api.github.com/repos/mmorey/MDMCoreData/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmorey/MDMCoreData/merges","archive_url":"https://api.github.com/repos/mmorey/MDMCoreData/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmorey/MDMCoreData/downloads","issues_url":"https://api.github.com/repos/mmorey/MDMCoreData/issues{/number}","pulls_url":"https://api.github.com/repos/mmorey/MDMCoreData/pulls{/number}","milestones_url":"https://api.github.com/repos/mmorey/MDMCoreData/milestones{/number}","notifications_url":"https://api.github.com/repos/mmorey/MDMCoreData/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmorey/MDMCoreData/labels{/name}","releases_url":"https://api.github.com/repos/mmorey/MDMCoreData/releases{/id}","created_at":"2014-02-09T16:36:20Z","updated_at":"2015-01-19T19:25:37Z","pushed_at":"2014-12-18T22:40:04Z","git_url":"git://github.com/mmorey/MDMCoreData.git","ssh_url":"git@github.com:mmorey/MDMCoreData.git","clone_url":"https://github.com/mmorey/MDMCoreData.git","svn_url":"https://github.com/mmorey/MDMCoreData","homepage":"","size":3997,"stargazers_count":218,"watchers_count":218,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":6,"forks":28,"open_issues":6,"watchers":218,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mmorey/MDMCoreData/pulls/29"},"html":{"href":"https://github.com/mmorey/MDMCoreData/pull/29"},"issue":{"href":"https://api.github.com/repos/mmorey/MDMCoreData/issues/29"},"comments":{"href":"https://api.github.com/repos/mmorey/MDMCoreData/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/mmorey/MDMCoreData/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/mmorey/MDMCoreData/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mmorey/MDMCoreData/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/mmorey/MDMCoreData/statuses/76511d0176c2ece45055af4f087ff452c0d1d9dc"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":16,"deletions":2,"changed_files":1}}