{"action":"created","issue":{"url":"https://api.github.com/repos/digitalplaywright/mongoid-slug/issues/225","repository_url":"https://api.github.com/repos/digitalplaywright/mongoid-slug","labels_url":"https://api.github.com/repos/digitalplaywright/mongoid-slug/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/digitalplaywright/mongoid-slug/issues/225/comments","events_url":"https://api.github.com/repos/digitalplaywright/mongoid-slug/issues/225/events","html_url":"https://github.com/digitalplaywright/mongoid-slug/pull/225","id":175584873,"number":225,"title":"Fix #222: Mongo::Error::OperationFailure: E11000 duplicate key error index.","user":{"login":"dblock","id":542335,"avatar_url":"https://avatars.githubusercontent.com/u/542335?v=3","gravatar_id":"","url":"https://api.github.com/users/dblock","html_url":"https://github.com/dblock","followers_url":"https://api.github.com/users/dblock/followers","following_url":"https://api.github.com/users/dblock/following{/other_user}","gists_url":"https://api.github.com/users/dblock/gists{/gist_id}","starred_url":"https://api.github.com/users/dblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblock/subscriptions","organizations_url":"https://api.github.com/users/dblock/orgs","repos_url":"https://api.github.com/users/dblock/repos","events_url":"https://api.github.com/users/dblock/events{/privacy}","received_events_url":"https://api.github.com/users/dblock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-07T19:25:59Z","updated_at":"2016-09-08T11:36:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/digitalplaywright/mongoid-slug/pulls/225","html_url":"https://github.com/digitalplaywright/mongoid-slug/pull/225","diff_url":"https://github.com/digitalplaywright/mongoid-slug/pull/225.diff","patch_url":"https://github.com/digitalplaywright/mongoid-slug/pull/225.patch"},"body":"This is a proposed fix for #222. The problem is that we try to create records with a blank indexed field that generates blank slugs, which causes the unique index to break. Instead of trying to create a blank slug then a `-1` slug, I propose we use the class name.\r\n\r\nI'd love a code review from @johnnyshields or @digitalplaywright please."},"comment":{"url":"https://api.github.com/repos/digitalplaywright/mongoid-slug/issues/comments/245570911","html_url":"https://github.com/digitalplaywright/mongoid-slug/pull/225#issuecomment-245570911","issue_url":"https://api.github.com/repos/digitalplaywright/mongoid-slug/issues/225","id":245570911,"user":{"login":"dblock","id":542335,"avatar_url":"https://avatars.githubusercontent.com/u/542335?v=3","gravatar_id":"","url":"https://api.github.com/users/dblock","html_url":"https://github.com/dblock","followers_url":"https://api.github.com/users/dblock/followers","following_url":"https://api.github.com/users/dblock/following{/other_user}","gists_url":"https://api.github.com/users/dblock/gists{/gist_id}","starred_url":"https://api.github.com/users/dblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblock/subscriptions","organizations_url":"https://api.github.com/users/dblock/orgs","repos_url":"https://api.github.com/users/dblock/repos","events_url":"https://api.github.com/users/dblock/events{/privacy}","received_events_url":"https://api.github.com/users/dblock/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T11:36:57Z","updated_at":"2016-09-08T11:36:57Z","body":"@johnnyshields I updated this PR. The problem is that we default `slugs` to `[]`. If we remove that we can start setting `nils`. I am still working through two spec failures. I *think* it's better, would like your opinion."}}
{"actor":{"display_login":"dblock"}}