{"action":"created","comment":{"url":"https://api.github.com/repos/backbee/BackBee/pulls/comments/30853758","id":30853758,"diff_hunk":"@@ -98,6 +98,16 @@ public function deleteAction(Group $group)\n      */\n     public function putAction(Group $group, Request $request)\n     {\n+        $site = $this->getSite($request);\n+\n+        if ($this->isDuplicated($request->request->get('name'), $site)) {\n+            return new JsonResponse([","path":"Rest/Controller/GroupController.php","position":7,"original_position":7,"commit_id":"d6e321f6ba118a565eb15f8da8df12b8e15d3e4b","original_commit_id":"d6e321f6ba118a565eb15f8da8df12b8e15d3e4b","user":{"login":"ndufreche","id":426139,"avatar_url":"https://avatars.githubusercontent.com/u/426139?v=3","gravatar_id":"","url":"https://api.github.com/users/ndufreche","html_url":"https://github.com/ndufreche","followers_url":"https://api.github.com/users/ndufreche/followers","following_url":"https://api.github.com/users/ndufreche/following{/other_user}","gists_url":"https://api.github.com/users/ndufreche/gists{/gist_id}","starred_url":"https://api.github.com/users/ndufreche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndufreche/subscriptions","organizations_url":"https://api.github.com/users/ndufreche/orgs","repos_url":"https://api.github.com/users/ndufreche/repos","events_url":"https://api.github.com/users/ndufreche/events{/privacy}","received_events_url":"https://api.github.com/users/ndufreche/received_events","type":"User","site_admin":false},"body":"Yeah it was corrected but not commited :)","created_at":"2015-05-21T22:16:15Z","updated_at":"2015-05-21T22:16:15Z","html_url":"https://github.com/backbee/BackBee/pull/412#discussion_r30853758","pull_request_url":"https://api.github.com/repos/backbee/BackBee/pulls/412","_links":{"self":{"href":"https://api.github.com/repos/backbee/BackBee/pulls/comments/30853758"},"html":{"href":"https://github.com/backbee/BackBee/pull/412#discussion_r30853758"},"pull_request":{"href":"https://api.github.com/repos/backbee/BackBee/pulls/412"}}},"pull_request":{"url":"https://api.github.com/repos/backbee/BackBee/pulls/412","id":35941806,"html_url":"https://github.com/backbee/BackBee/pull/412","diff_url":"https://github.com/backbee/BackBee/pull/412.diff","patch_url":"https://github.com/backbee/BackBee/pull/412.patch","issue_url":"https://api.github.com/repos/backbee/BackBee/issues/412","number":412,"state":"open","locked":false,"title":"[WIP][REST] unify rules to save a group","user":{"login":"ndufreche","id":426139,"avatar_url":"https://avatars.githubusercontent.com/u/426139?v=3","gravatar_id":"","url":"https://api.github.com/users/ndufreche","html_url":"https://github.com/ndufreche","followers_url":"https://api.github.com/users/ndufreche/followers","following_url":"https://api.github.com/users/ndufreche/following{/other_user}","gists_url":"https://api.github.com/users/ndufreche/gists{/gist_id}","starred_url":"https://api.github.com/users/ndufreche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndufreche/subscriptions","organizations_url":"https://api.github.com/users/ndufreche/orgs","repos_url":"https://api.github.com/users/ndufreche/repos","events_url":"https://api.github.com/users/ndufreche/events{/privacy}","received_events_url":"https://api.github.com/users/ndufreche/received_events","type":"User","site_admin":false},"body":"An unification of the saving rules on group\r\nsee => backbee/BbCoreJs#694","created_at":"2015-05-21T14:51:50Z","updated_at":"2015-05-21T22:16:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d947b0703dbf427ab03d80aa74caf1a157d8973","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/backbee/BackBee/pulls/412/commits","review_comments_url":"https://api.github.com/repos/backbee/BackBee/pulls/412/comments","review_comment_url":"https://api.github.com/repos/backbee/BackBee/pulls/comments{/number}","comments_url":"https://api.github.com/repos/backbee/BackBee/issues/412/comments","statuses_url":"https://api.github.com/repos/backbee/BackBee/statuses/d6e321f6ba118a565eb15f8da8df12b8e15d3e4b","head":{"label":"ndufreche:bbcorejs-694-bis","ref":"bbcorejs-694-bis","sha":"d6e321f6ba118a565eb15f8da8df12b8e15d3e4b","user":{"login":"ndufreche","id":426139,"avatar_url":"https://avatars.githubusercontent.com/u/426139?v=3","gravatar_id":"","url":"https://api.github.com/users/ndufreche","html_url":"https://github.com/ndufreche","followers_url":"https://api.github.com/users/ndufreche/followers","following_url":"https://api.github.com/users/ndufreche/following{/other_user}","gists_url":"https://api.github.com/users/ndufreche/gists{/gist_id}","starred_url":"https://api.github.com/users/ndufreche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndufreche/subscriptions","organizations_url":"https://api.github.com/users/ndufreche/orgs","repos_url":"https://api.github.com/users/ndufreche/repos","events_url":"https://api.github.com/users/ndufreche/events{/privacy}","received_events_url":"https://api.github.com/users/ndufreche/received_events","type":"User","site_admin":false},"repo":{"id":31309203,"name":"BackBee","full_name":"ndufreche/BackBee","owner":{"login":"ndufreche","id":426139,"avatar_url":"https://avatars.githubusercontent.com/u/426139?v=3","gravatar_id":"","url":"https://api.github.com/users/ndufreche","html_url":"https://github.com/ndufreche","followers_url":"https://api.github.com/users/ndufreche/followers","following_url":"https://api.github.com/users/ndufreche/following{/other_user}","gists_url":"https://api.github.com/users/ndufreche/gists{/gist_id}","starred_url":"https://api.github.com/users/ndufreche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndufreche/subscriptions","organizations_url":"https://api.github.com/users/ndufreche/orgs","repos_url":"https://api.github.com/users/ndufreche/repos","events_url":"https://api.github.com/users/ndufreche/events{/privacy}","received_events_url":"https://api.github.com/users/ndufreche/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ndufreche/BackBee","description":"BackBee, the Next Generation Open-Source CMS","fork":true,"url":"https://api.github.com/repos/ndufreche/BackBee","forks_url":"https://api.github.com/repos/ndufreche/BackBee/forks","keys_url":"https://api.github.com/repos/ndufreche/BackBee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndufreche/BackBee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndufreche/BackBee/teams","hooks_url":"https://api.github.com/repos/ndufreche/BackBee/hooks","issue_events_url":"https://api.github.com/repos/ndufreche/BackBee/issues/events{/number}","events_url":"https://api.github.com/repos/ndufreche/BackBee/events","assignees_url":"https://api.github.com/repos/ndufreche/BackBee/assignees{/user}","branches_url":"https://api.github.com/repos/ndufreche/BackBee/branches{/branch}","tags_url":"https://api.github.com/repos/ndufreche/BackBee/tags","blobs_url":"https://api.github.com/repos/ndufreche/BackBee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndufreche/BackBee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndufreche/BackBee/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndufreche/BackBee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndufreche/BackBee/statuses/{sha}","languages_url":"https://api.github.com/repos/ndufreche/BackBee/languages","stargazers_url":"https://api.github.com/repos/ndufreche/BackBee/stargazers","contributors_url":"https://api.github.com/repos/ndufreche/BackBee/contributors","subscribers_url":"https://api.github.com/repos/ndufreche/BackBee/subscribers","subscription_url":"https://api.github.com/repos/ndufreche/BackBee/subscription","commits_url":"https://api.github.com/repos/ndufreche/BackBee/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndufreche/BackBee/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndufreche/BackBee/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndufreche/BackBee/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndufreche/BackBee/contents/{+path}","compare_url":"https://api.github.com/repos/ndufreche/BackBee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndufreche/BackBee/merges","archive_url":"https://api.github.com/repos/ndufreche/BackBee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndufreche/BackBee/downloads","issues_url":"https://api.github.com/repos/ndufreche/BackBee/issues{/number}","pulls_url":"https://api.github.com/repos/ndufreche/BackBee/pulls{/number}","milestones_url":"https://api.github.com/repos/ndufreche/BackBee/milestones{/number}","notifications_url":"https://api.github.com/repos/ndufreche/BackBee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndufreche/BackBee/labels{/name}","releases_url":"https://api.github.com/repos/ndufreche/BackBee/releases{/id}","created_at":"2015-02-25T10:49:16Z","updated_at":"2015-04-15T09:37:04Z","pushed_at":"2015-05-21T16:19:02Z","git_url":"git://github.com/ndufreche/BackBee.git","ssh_url":"git@github.com:ndufreche/BackBee.git","clone_url":"https://github.com/ndufreche/BackBee.git","svn_url":"https://github.com/ndufreche/BackBee","homepage":null,"size":25686,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"backbee:master","ref":"master","sha":"ebe4a5c6274e4b7ce42e142187750e872c48c80a","user":{"login":"backbee","id":8198689,"avatar_url":"https://avatars.githubusercontent.com/u/8198689?v=3","gravatar_id":"","url":"https://api.github.com/users/backbee","html_url":"https://github.com/backbee","followers_url":"https://api.github.com/users/backbee/followers","following_url":"https://api.github.com/users/backbee/following{/other_user}","gists_url":"https://api.github.com/users/backbee/gists{/gist_id}","starred_url":"https://api.github.com/users/backbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backbee/subscriptions","organizations_url":"https://api.github.com/users/backbee/orgs","repos_url":"https://api.github.com/users/backbee/repos","events_url":"https://api.github.com/users/backbee/events{/privacy}","received_events_url":"https://api.github.com/users/backbee/received_events","type":"Organization","site_admin":false},"repo":{"id":21970893,"name":"BackBee","full_name":"backbee/BackBee","owner":{"login":"backbee","id":8198689,"avatar_url":"https://avatars.githubusercontent.com/u/8198689?v=3","gravatar_id":"","url":"https://api.github.com/users/backbee","html_url":"https://github.com/backbee","followers_url":"https://api.github.com/users/backbee/followers","following_url":"https://api.github.com/users/backbee/following{/other_user}","gists_url":"https://api.github.com/users/backbee/gists{/gist_id}","starred_url":"https://api.github.com/users/backbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backbee/subscriptions","organizations_url":"https://api.github.com/users/backbee/orgs","repos_url":"https://api.github.com/users/backbee/repos","events_url":"https://api.github.com/users/backbee/events{/privacy}","received_events_url":"https://api.github.com/users/backbee/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/backbee/BackBee","description":"BackBee, the Next Generation Core library","fork":false,"url":"https://api.github.com/repos/backbee/BackBee","forks_url":"https://api.github.com/repos/backbee/BackBee/forks","keys_url":"https://api.github.com/repos/backbee/BackBee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/backbee/BackBee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/backbee/BackBee/teams","hooks_url":"https://api.github.com/repos/backbee/BackBee/hooks","issue_events_url":"https://api.github.com/repos/backbee/BackBee/issues/events{/number}","events_url":"https://api.github.com/repos/backbee/BackBee/events","assignees_url":"https://api.github.com/repos/backbee/BackBee/assignees{/user}","branches_url":"https://api.github.com/repos/backbee/BackBee/branches{/branch}","tags_url":"https://api.github.com/repos/backbee/BackBee/tags","blobs_url":"https://api.github.com/repos/backbee/BackBee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/backbee/BackBee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/backbee/BackBee/git/refs{/sha}","trees_url":"https://api.github.com/repos/backbee/BackBee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/backbee/BackBee/statuses/{sha}","languages_url":"https://api.github.com/repos/backbee/BackBee/languages","stargazers_url":"https://api.github.com/repos/backbee/BackBee/stargazers","contributors_url":"https://api.github.com/repos/backbee/BackBee/contributors","subscribers_url":"https://api.github.com/repos/backbee/BackBee/subscribers","subscription_url":"https://api.github.com/repos/backbee/BackBee/subscription","commits_url":"https://api.github.com/repos/backbee/BackBee/commits{/sha}","git_commits_url":"https://api.github.com/repos/backbee/BackBee/git/commits{/sha}","comments_url":"https://api.github.com/repos/backbee/BackBee/comments{/number}","issue_comment_url":"https://api.github.com/repos/backbee/BackBee/issues/comments{/number}","contents_url":"https://api.github.com/repos/backbee/BackBee/contents/{+path}","compare_url":"https://api.github.com/repos/backbee/BackBee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/backbee/BackBee/merges","archive_url":"https://api.github.com/repos/backbee/BackBee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/backbee/BackBee/downloads","issues_url":"https://api.github.com/repos/backbee/BackBee/issues{/number}","pulls_url":"https://api.github.com/repos/backbee/BackBee/pulls{/number}","milestones_url":"https://api.github.com/repos/backbee/BackBee/milestones{/number}","notifications_url":"https://api.github.com/repos/backbee/BackBee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/backbee/BackBee/labels{/name}","releases_url":"https://api.github.com/repos/backbee/BackBee/releases{/id}","created_at":"2014-07-18T06:51:12Z","updated_at":"2015-05-08T00:38:46Z","pushed_at":"2015-05-21T20:51:00Z","git_url":"git://github.com/backbee/BackBee.git","ssh_url":"git@github.com:backbee/BackBee.git","clone_url":"https://github.com/backbee/BackBee.git","svn_url":"https://github.com/backbee/BackBee","homepage":"","size":30183,"stargazers_count":23,"watchers_count":23,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":78,"forks":10,"open_issues":78,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/backbee/BackBee/pulls/412"},"html":{"href":"https://github.com/backbee/BackBee/pull/412"},"issue":{"href":"https://api.github.com/repos/backbee/BackBee/issues/412"},"comments":{"href":"https://api.github.com/repos/backbee/BackBee/issues/412/comments"},"review_comments":{"href":"https://api.github.com/repos/backbee/BackBee/pulls/412/comments"},"review_comment":{"href":"https://api.github.com/repos/backbee/BackBee/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/backbee/BackBee/pulls/412/commits"},"statuses":{"href":"https://api.github.com/repos/backbee/BackBee/statuses/d6e321f6ba118a565eb15f8da8df12b8e15d3e4b"}}}}