{"action":"created","issue":{"url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/288","labels_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/288/comments","events_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/288/events","html_url":"https://github.com/cubing/worldcubeassociation.org/pull/288","id":124477475,"number":288,"title":"Fixed issue #287.","user":{"login":"pedrosino","id":1881933,"avatar_url":"https://avatars.githubusercontent.com/u/1881933?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrosino","html_url":"https://github.com/pedrosino","followers_url":"https://api.github.com/users/pedrosino/followers","following_url":"https://api.github.com/users/pedrosino/following{/other_user}","gists_url":"https://api.github.com/users/pedrosino/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrosino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrosino/subscriptions","organizations_url":"https://api.github.com/users/pedrosino/orgs","repos_url":"https://api.github.com/users/pedrosino/repos","events_url":"https://api.github.com/users/pedrosino/events{/privacy}","received_events_url":"https://api.github.com/users/pedrosino/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-12-31T14:53:54Z","updated_at":"2016-01-01T02:03:30Z","closed_at":"2016-01-01T02:03:30Z","pull_request":{"url":"https://api.github.com/repos/cubing/worldcubeassociation.org/pulls/288","html_url":"https://github.com/cubing/worldcubeassociation.org/pull/288","diff_url":"https://github.com/cubing/worldcubeassociation.org/pull/288.diff","patch_url":"https://github.com/cubing/worldcubeassociation.org/pull/288.patch"},"body":"Deletes the competition_organizers and competition_delegates lines when we change a competition's id. We were creating \"duplicated\" lines, with both the old and new competition_id\r\n\r\n@jfly \r\n@timhabermaas \r\nI tried update_all instead of destroy_all, but it would say I was trying to create a duplicate entry."},"comment":{"url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/comments/168274121","html_url":"https://github.com/cubing/worldcubeassociation.org/pull/288#issuecomment-168274121","issue_url":"https://api.github.com/repos/cubing/worldcubeassociation.org/issues/288","id":168274121,"user":{"login":"jfly","id":277474,"avatar_url":"https://avatars.githubusercontent.com/u/277474?v=3","gravatar_id":"","url":"https://api.github.com/users/jfly","html_url":"https://github.com/jfly","followers_url":"https://api.github.com/users/jfly/followers","following_url":"https://api.github.com/users/jfly/following{/other_user}","gists_url":"https://api.github.com/users/jfly/gists{/gist_id}","starred_url":"https://api.github.com/users/jfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfly/subscriptions","organizations_url":"https://api.github.com/users/jfly/orgs","repos_url":"https://api.github.com/users/jfly/repos","events_url":"https://api.github.com/users/jfly/events{/privacy}","received_events_url":"https://api.github.com/users/jfly/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T02:03:30Z","updated_at":"2016-01-01T02:03:30Z","body":"I've pushed this live in https://github.com/cubing/worldcubeassociation.org/commit/992152f79748329b9ea6b6129d739873d2fd890e."}}