{"action":"created","issue":{"url":"https://api.github.com/repos/3lvis/DATAFilter/issues/12","labels_url":"https://api.github.com/repos/3lvis/DATAFilter/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/3lvis/DATAFilter/issues/12/comments","events_url":"https://api.github.com/repos/3lvis/DATAFilter/issues/12/events","html_url":"https://github.com/3lvis/DATAFilter/pull/12","id":100594877,"number":12,"title":"Fix a bug where duplicate objects would be inserted","user":{"login":"0ff","id":1755213,"avatar_url":"https://avatars.githubusercontent.com/u/1755213?v=3","gravatar_id":"","url":"https://api.github.com/users/0ff","html_url":"https://github.com/0ff","followers_url":"https://api.github.com/users/0ff/followers","following_url":"https://api.github.com/users/0ff/following{/other_user}","gists_url":"https://api.github.com/users/0ff/gists{/gist_id}","starred_url":"https://api.github.com/users/0ff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0ff/subscriptions","organizations_url":"https://api.github.com/users/0ff/orgs","repos_url":"https://api.github.com/users/0ff/repos","events_url":"https://api.github.com/users/0ff/events{/privacy}","received_events_url":"https://api.github.com/users/0ff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-12T17:33:37Z","updated_at":"2015-08-22T07:45:44Z","closed_at":"2015-08-13T11:01:06Z","pull_request":{"url":"https://api.github.com/repos/3lvis/DATAFilter/pulls/12","html_url":"https://github.com/3lvis/DATAFilter/pull/12","diff_url":"https://github.com/3lvis/DATAFilter/pull/12.diff","patch_url":"https://github.com/3lvis/DATAFilter/pull/12.patch"},"body":"Due to the fact `changes` is an array which may contain duplicates (i.e. multiple objects with the same remoteKey-value), you must make sure to clean `remoteObjectIDs` from duplicates.\r\nOtherwise it would propagate the duplicates into `insertedObjectIDs` (which is not a set but an array) which in turn would make the `for loop` over `insertedObjectIDs` insert duplicate objects."},"comment":{"url":"https://api.github.com/repos/3lvis/DATAFilter/issues/comments/133649344","html_url":"https://github.com/3lvis/DATAFilter/pull/12#issuecomment-133649344","issue_url":"https://api.github.com/repos/3lvis/DATAFilter/issues/12","id":133649344,"user":{"login":"3lvis","id":1088217,"avatar_url":"https://avatars.githubusercontent.com/u/1088217?v=3","gravatar_id":"","url":"https://api.github.com/users/3lvis","html_url":"https://github.com/3lvis","followers_url":"https://api.github.com/users/3lvis/followers","following_url":"https://api.github.com/users/3lvis/following{/other_user}","gists_url":"https://api.github.com/users/3lvis/gists{/gist_id}","starred_url":"https://api.github.com/users/3lvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3lvis/subscriptions","organizations_url":"https://api.github.com/users/3lvis/orgs","repos_url":"https://api.github.com/users/3lvis/repos","events_url":"https://api.github.com/users/3lvis/events{/privacy}","received_events_url":"https://api.github.com/users/3lvis/received_events","type":"User","site_admin":false},"created_at":"2015-08-22T07:45:44Z","updated_at":"2015-08-22T07:45:44Z","body":"Hi @0ff I had to rever this change since it broke ordered relationships in Core Data.\r\n\r\nhttps://github.com/3lvis/DATAFilter/pull/12\r\n\r\n"}}