{"action":"opened","number":2112,"pull_request":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/pulls/2112","id":66457316,"html_url":"https://github.com/FriendsOfSymfony/FOSUserBundle/pull/2112","diff_url":"https://github.com/FriendsOfSymfony/FOSUserBundle/pull/2112.diff","patch_url":"https://github.com/FriendsOfSymfony/FOSUserBundle/pull/2112.patch","issue_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/2112","number":2112,"state":"open","locked":false,"title":"Remove option unique of the name index in group class","user":{"login":"alavieille","id":11750768,"avatar_url":"https://avatars.githubusercontent.com/u/11750768?v=3","gravatar_id":"","url":"https://api.github.com/users/alavieille","html_url":"https://github.com/alavieille","followers_url":"https://api.github.com/users/alavieille/followers","following_url":"https://api.github.com/users/alavieille/following{/other_user}","gists_url":"https://api.github.com/users/alavieille/gists{/gist_id}","starred_url":"https://api.github.com/users/alavieille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alavieille/subscriptions","organizations_url":"https://api.github.com/users/alavieille/orgs","repos_url":"https://api.github.com/users/alavieille/repos","events_url":"https://api.github.com/users/alavieille/events{/privacy}","received_events_url":"https://api.github.com/users/alavieille/received_events","type":"User","site_admin":false},"body":"In the mapping of Group for mongodb, there is a index for the name field but this index is indicated as unique.\r\n\r\nSo when we create two groups with the same name that generates an error 500 ``MongoDuplicateKeyException``.\r\n\r\n`localhost:27017: insertDocument :: caused by :: \r\n11000 E11000 duplicate key error index`\r\n\r\nbecause there isn't a constraint Unique on this field so i have removed the option.","created_at":"2016-04-14T09:56:22Z","updated_at":"2016-04-14T09:56:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ca2f612687487324aaef999f11433edf25e71af","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/pulls/2112/commits","review_comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/pulls/2112/comments","review_comment_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/2112/comments","statuses_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/statuses/e9a30645b90750890bb12591bbb062c1ee2f5aa7","head":{"label":"alavieille:remove_option_unique_index_group","ref":"remove_option_unique_index_group","sha":"e9a30645b90750890bb12591bbb062c1ee2f5aa7","user":{"login":"alavieille","id":11750768,"avatar_url":"https://avatars.githubusercontent.com/u/11750768?v=3","gravatar_id":"","url":"https://api.github.com/users/alavieille","html_url":"https://github.com/alavieille","followers_url":"https://api.github.com/users/alavieille/followers","following_url":"https://api.github.com/users/alavieille/following{/other_user}","gists_url":"https://api.github.com/users/alavieille/gists{/gist_id}","starred_url":"https://api.github.com/users/alavieille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alavieille/subscriptions","organizations_url":"https://api.github.com/users/alavieille/orgs","repos_url":"https://api.github.com/users/alavieille/repos","events_url":"https://api.github.com/users/alavieille/events{/privacy}","received_events_url":"https://api.github.com/users/alavieille/received_events","type":"User","site_admin":false},"repo":{"id":56222952,"name":"FOSUserBundle","full_name":"alavieille/FOSUserBundle","owner":{"login":"alavieille","id":11750768,"avatar_url":"https://avatars.githubusercontent.com/u/11750768?v=3","gravatar_id":"","url":"https://api.github.com/users/alavieille","html_url":"https://github.com/alavieille","followers_url":"https://api.github.com/users/alavieille/followers","following_url":"https://api.github.com/users/alavieille/following{/other_user}","gists_url":"https://api.github.com/users/alavieille/gists{/gist_id}","starred_url":"https://api.github.com/users/alavieille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alavieille/subscriptions","organizations_url":"https://api.github.com/users/alavieille/orgs","repos_url":"https://api.github.com/users/alavieille/repos","events_url":"https://api.github.com/users/alavieille/events{/privacy}","received_events_url":"https://api.github.com/users/alavieille/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alavieille/FOSUserBundle","description":"Provides user management for your Symfony2 Project. Compatible with Doctrine ORM & ODM, and Propel.","fork":true,"url":"https://api.github.com/repos/alavieille/FOSUserBundle","forks_url":"https://api.github.com/repos/alavieille/FOSUserBundle/forks","keys_url":"https://api.github.com/repos/alavieille/FOSUserBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alavieille/FOSUserBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alavieille/FOSUserBundle/teams","hooks_url":"https://api.github.com/repos/alavieille/FOSUserBundle/hooks","issue_events_url":"https://api.github.com/repos/alavieille/FOSUserBundle/issues/events{/number}","events_url":"https://api.github.com/repos/alavieille/FOSUserBundle/events","assignees_url":"https://api.github.com/repos/alavieille/FOSUserBundle/assignees{/user}","branches_url":"https://api.github.com/repos/alavieille/FOSUserBundle/branches{/branch}","tags_url":"https://api.github.com/repos/alavieille/FOSUserBundle/tags","blobs_url":"https://api.github.com/repos/alavieille/FOSUserBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alavieille/FOSUserBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alavieille/FOSUserBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/alavieille/FOSUserBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alavieille/FOSUserBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/alavieille/FOSUserBundle/languages","stargazers_url":"https://api.github.com/repos/alavieille/FOSUserBundle/stargazers","contributors_url":"https://api.github.com/repos/alavieille/FOSUserBundle/contributors","subscribers_url":"https://api.github.com/repos/alavieille/FOSUserBundle/subscribers","subscription_url":"https://api.github.com/repos/alavieille/FOSUserBundle/subscription","commits_url":"https://api.github.com/repos/alavieille/FOSUserBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/alavieille/FOSUserBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/alavieille/FOSUserBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/alavieille/FOSUserBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/alavieille/FOSUserBundle/contents/{+path}","compare_url":"https://api.github.com/repos/alavieille/FOSUserBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alavieille/FOSUserBundle/merges","archive_url":"https://api.github.com/repos/alavieille/FOSUserBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alavieille/FOSUserBundle/downloads","issues_url":"https://api.github.com/repos/alavieille/FOSUserBundle/issues{/number}","pulls_url":"https://api.github.com/repos/alavieille/FOSUserBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/alavieille/FOSUserBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/alavieille/FOSUserBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alavieille/FOSUserBundle/labels{/name}","releases_url":"https://api.github.com/repos/alavieille/FOSUserBundle/releases{/id}","deployments_url":"https://api.github.com/repos/alavieille/FOSUserBundle/deployments","created_at":"2016-04-14T09:05:26Z","updated_at":"2016-04-14T09:05:27Z","pushed_at":"2016-04-14T09:41:57Z","git_url":"git://github.com/alavieille/FOSUserBundle.git","ssh_url":"git@github.com:alavieille/FOSUserBundle.git","clone_url":"https://github.com/alavieille/FOSUserBundle.git","svn_url":"https://github.com/alavieille/FOSUserBundle","homepage":"https://symfony.com/doc/master/bundles/FOSUserBundle/index.html","size":3526,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"FriendsOfSymfony:master","ref":"master","sha":"16b04c49af05dd3fb381e4abe04f0e5e231ac76d","user":{"login":"FriendsOfSymfony","id":529709,"avatar_url":"https://avatars.githubusercontent.com/u/529709?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfSymfony","html_url":"https://github.com/FriendsOfSymfony","followers_url":"https://api.github.com/users/FriendsOfSymfony/followers","following_url":"https://api.github.com/users/FriendsOfSymfony/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfSymfony/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfSymfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfSymfony/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfSymfony/orgs","repos_url":"https://api.github.com/users/FriendsOfSymfony/repos","events_url":"https://api.github.com/users/FriendsOfSymfony/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfSymfony/received_events","type":"Organization","site_admin":false},"repo":{"id":1193527,"name":"FOSUserBundle","full_name":"FriendsOfSymfony/FOSUserBundle","owner":{"login":"FriendsOfSymfony","id":529709,"avatar_url":"https://avatars.githubusercontent.com/u/529709?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfSymfony","html_url":"https://github.com/FriendsOfSymfony","followers_url":"https://api.github.com/users/FriendsOfSymfony/followers","following_url":"https://api.github.com/users/FriendsOfSymfony/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfSymfony/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfSymfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfSymfony/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfSymfony/orgs","repos_url":"https://api.github.com/users/FriendsOfSymfony/repos","events_url":"https://api.github.com/users/FriendsOfSymfony/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfSymfony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FriendsOfSymfony/FOSUserBundle","description":"Provides user management for your Symfony2 Project. Compatible with Doctrine ORM & ODM, and Propel.","fork":true,"url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle","forks_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/forks","keys_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/teams","hooks_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/hooks","issue_events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/events{/number}","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/events","assignees_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/assignees{/user}","branches_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/branches{/branch}","tags_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/tags","blobs_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/languages","stargazers_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/stargazers","contributors_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/contributors","subscribers_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/subscribers","subscription_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/subscription","commits_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/contents/{+path}","compare_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/merges","archive_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/downloads","issues_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues{/number}","pulls_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/labels{/name}","releases_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/releases{/id}","deployments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/deployments","created_at":"2010-12-23T15:50:55Z","updated_at":"2016-04-14T05:39:13Z","pushed_at":"2016-04-14T09:56:22Z","git_url":"git://github.com/FriendsOfSymfony/FOSUserBundle.git","ssh_url":"git@github.com:FriendsOfSymfony/FOSUserBundle.git","clone_url":"https://github.com/FriendsOfSymfony/FOSUserBundle.git","svn_url":"https://github.com/FriendsOfSymfony/FOSUserBundle","homepage":"https://symfony.com/doc/master/bundles/FOSUserBundle/index.html","size":4473,"stargazers_count":2224,"watchers_count":2224,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1291,"mirror_url":null,"open_issues_count":355,"forks":1291,"open_issues":355,"watchers":2224,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/pulls/2112"},"html":{"href":"https://github.com/FriendsOfSymfony/FOSUserBundle/pull/2112"},"issue":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/2112"},"comments":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/issues/2112/comments"},"review_comments":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/pulls/2112/comments"},"review_comment":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/pulls/2112/commits"},"statuses":{"href":"https://api.github.com/repos/FriendsOfSymfony/FOSUserBundle/statuses/e9a30645b90750890bb12591bbb062c1ee2f5aa7"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":0,"deletions":1,"changed_files":1}}