{"action":"created","comment":{"url":"https://api.github.com/repos/sulu-io/sulu/pulls/comments/39983601","id":39983601,"diff_hunk":"@@ -0,0 +1,56 @@\n+<?php\n+/*\n+ * This file is part of Sulu.\n+ *\n+ * (c) MASSIVE ART WebServices GmbH\n+ *\n+ * This source file is subject to the MIT license that is bundled\n+ * with this source code in the file LICENSE.\n+ */\n+\n+namespace Sulu\\Bundle\\ContactBundle\\Controller;\n+\n+use FOS\\RestBundle\\Routing\\ClassResourceInterface;\n+use Sulu\\Component\\Rest\\ListBuilder\\ListRepresentation;\n+use Sulu\\Component\\Rest\\RestController;\n+use Symfony\\Component\\HttpFoundation\\Request;\n+\n+/**\n+ * Makes a combination of accounts and contacts available through a REST API.\n+ */\n+class CustomerController extends RestController implements ClassResourceInterface\n+{\n+    protected static $entityKey = 'customers';\n+\n+    /**\n+     * Returns list of contacts and organizations.\n+     *\n+     * @param Request $request\n+     *\n+     * @return \\Symfony\\Component\\HttpFoundation\\Response\n+     */\n+    public function cgetAction(Request $request)\n+    {\n+        $ids = array_filter(explode(',', $request->get('ids', '')));\n+\n+        $result = $this->getCustomerManager()->findByIds($ids);\n+\n+        $list = new ListRepresentation(\n+            $result,\n+            self::$entityKey,\n+            'get_customers',\n+            $request->query->all(),\n+            1,\n+            999,","path":"src/Sulu/Bundle/ContactBundle/Controller/CustomerController.php","position":44,"original_position":44,"commit_id":"c2d7d49833becd084c4a674c9a1f29a27079d915","original_commit_id":"c2d7d49833becd084c4a674c9a1f29a27079d915","user":{"login":"danrot","id":405874,"avatar_url":"https://avatars.githubusercontent.com/u/405874?v=3","gravatar_id":"","url":"https://api.github.com/users/danrot","html_url":"https://github.com/danrot","followers_url":"https://api.github.com/users/danrot/followers","following_url":"https://api.github.com/users/danrot/following{/other_user}","gists_url":"https://api.github.com/users/danrot/gists{/gist_id}","starred_url":"https://api.github.com/users/danrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danrot/subscriptions","organizations_url":"https://api.github.com/users/danrot/orgs","repos_url":"https://api.github.com/users/danrot/repos","events_url":"https://api.github.com/users/danrot/events{/privacy}","received_events_url":"https://api.github.com/users/danrot/received_events","type":"User","site_admin":false},"body":"Didn't we already solve that in a more elegant way?","created_at":"2015-09-21T15:22:28Z","updated_at":"2015-09-21T15:22:28Z","html_url":"https://github.com/sulu-io/sulu/pull/1347#discussion_r39983601","pull_request_url":"https://api.github.com/repos/sulu-io/sulu/pulls/1347","_links":{"self":{"href":"https://api.github.com/repos/sulu-io/sulu/pulls/comments/39983601"},"html":{"href":"https://github.com/sulu-io/sulu/pull/1347#discussion_r39983601"},"pull_request":{"href":"https://api.github.com/repos/sulu-io/sulu/pulls/1347"}}},"pull_request":{"url":"https://api.github.com/repos/sulu-io/sulu/pulls/1347","id":39450613,"html_url":"https://github.com/sulu-io/sulu/pull/1347","diff_url":"https://github.com/sulu-io/sulu/pull/1347.diff","patch_url":"https://github.com/sulu-io/sulu/pull/1347.patch","issue_url":"https://api.github.com/repos/sulu-io/sulu/issues/1347","number":1347,"state":"open","locked":false,"title":"Added contact-bundle content types","user":{"login":"wachterjohannes","id":1464615,"avatar_url":"https://avatars.githubusercontent.com/u/1464615?v=3","gravatar_id":"","url":"https://api.github.com/users/wachterjohannes","html_url":"https://github.com/wachterjohannes","followers_url":"https://api.github.com/users/wachterjohannes/followers","following_url":"https://api.github.com/users/wachterjohannes/following{/other_user}","gists_url":"https://api.github.com/users/wachterjohannes/gists{/gist_id}","starred_url":"https://api.github.com/users/wachterjohannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wachterjohannes/subscriptions","organizations_url":"https://api.github.com/users/wachterjohannes/orgs","repos_url":"https://api.github.com/users/wachterjohannes/repos","events_url":"https://api.github.com/users/wachterjohannes/events{/privacy}","received_events_url":"https://api.github.com/users/wachterjohannes/received_events","type":"User","site_admin":false},"body":"Contact-Bundle selection content types\r\n\r\n__tasks:__\r\n\r\n- [x] test coverage\r\n- [ ] gather feedback for my changes\r\n- [x] submit changes to the documentation\r\n\r\n__combined__:\r\n\r\n- [x] concept\r\n- [x] service\r\n- [x] javascript\r\n  * sorting lost if reopen overlay and close\r\n  * disable (hide) contact or account tab\r\n  * toggle of record - 500ms delay (per row)\r\n- [x] rest api\r\n- [x] translations\r\n- [x] website (`getContentData`)\r\n- [x] extend api entity with `type`\r\n\r\n__sulu-standard__:\r\n\r\n- [x] example page template\r\n\r\n__related PR__:\r\n\r\n* https://github.com/massiveart/husky/pull/546\r\n* https://github.com/sulu-io/sulu-standard/pull/502\r\n* https://github.com/sulu-io/sulu-docs/pull/102\r\n\r\n__informations:__\r\n\r\n| q                | a\r\n| ---------------- | ---\r\n| Fixed tickets    | none\r\n| BC breaks        | none\r\n| Documentation PR | https://github.com/sulu-io/sulu-docs/pull/102","created_at":"2015-07-08T08:00:30Z","updated_at":"2015-09-21T15:22:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"461b33b8a764eaf417c8a916edcdcaf02b1db6b0","assignee":{"login":"wachterjohannes","id":1464615,"avatar_url":"https://avatars.githubusercontent.com/u/1464615?v=3","gravatar_id":"","url":"https://api.github.com/users/wachterjohannes","html_url":"https://github.com/wachterjohannes","followers_url":"https://api.github.com/users/wachterjohannes/followers","following_url":"https://api.github.com/users/wachterjohannes/following{/other_user}","gists_url":"https://api.github.com/users/wachterjohannes/gists{/gist_id}","starred_url":"https://api.github.com/users/wachterjohannes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wachterjohannes/subscriptions","organizations_url":"https://api.github.com/users/wachterjohannes/orgs","repos_url":"https://api.github.com/users/wachterjohannes/repos","events_url":"https://api.github.com/users/wachterjohannes/events{/privacy}","received_events_url":"https://api.github.com/users/wachterjohannes/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/sulu-io/sulu/milestones/12","html_url":"https://github.com/sulu-io/sulu/milestones/Release%201.1","labels_url":"https://api.github.com/repos/sulu-io/sulu/milestones/12/labels","id":1001535,"number":12,"title":"Release 1.1","description":null,"creator":{"login":"berndhep","id":7425459,"avatar_url":"https://avatars.githubusercontent.com/u/7425459?v=3","gravatar_id":"","url":"https://api.github.com/users/berndhep","html_url":"https://github.com/berndhep","followers_url":"https://api.github.com/users/berndhep/followers","following_url":"https://api.github.com/users/berndhep/following{/other_user}","gists_url":"https://api.github.com/users/berndhep/gists{/gist_id}","starred_url":"https://api.github.com/users/berndhep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berndhep/subscriptions","organizations_url":"https://api.github.com/users/berndhep/orgs","repos_url":"https://api.github.com/users/berndhep/repos","events_url":"https://api.github.com/users/berndhep/events{/privacy}","received_events_url":"https://api.github.com/users/berndhep/received_events","type":"User","site_admin":false},"open_issues":55,"closed_issues":18,"state":"open","created_at":"2015-03-02T09:51:54Z","updated_at":"2015-09-21T09:34:19Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/sulu-io/sulu/pulls/1347/commits","review_comments_url":"https://api.github.com/repos/sulu-io/sulu/pulls/1347/comments","review_comment_url":"https://api.github.com/repos/sulu-io/sulu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sulu-io/sulu/issues/1347/comments","statuses_url":"https://api.github.com/repos/sulu-io/sulu/statuses/c2d7d49833becd084c4a674c9a1f29a27079d915","head":{"label":"sulu-io:feature/contact-selection","ref":"feature/contact-selection","sha":"c2d7d49833becd084c4a674c9a1f29a27079d915","user":{"login":"sulu-io","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu-io","html_url":"https://github.com/sulu-io","followers_url":"https://api.github.com/users/sulu-io/followers","following_url":"https://api.github.com/users/sulu-io/following{/other_user}","gists_url":"https://api.github.com/users/sulu-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu-io/subscriptions","organizations_url":"https://api.github.com/users/sulu-io/orgs","repos_url":"https://api.github.com/users/sulu-io/repos","events_url":"https://api.github.com/users/sulu-io/events{/privacy}","received_events_url":"https://api.github.com/users/sulu-io/received_events","type":"Organization","site_admin":false},"repo":{"id":13678015,"name":"sulu","full_name":"sulu-io/sulu","owner":{"login":"sulu-io","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu-io","html_url":"https://github.com/sulu-io","followers_url":"https://api.github.com/users/sulu-io/followers","following_url":"https://api.github.com/users/sulu-io/following{/other_user}","gists_url":"https://api.github.com/users/sulu-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu-io/subscriptions","organizations_url":"https://api.github.com/users/sulu-io/orgs","repos_url":"https://api.github.com/users/sulu-io/repos","events_url":"https://api.github.com/users/sulu-io/events{/privacy}","received_events_url":"https://api.github.com/users/sulu-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sulu-io/sulu","description":"Sulu core bundles & components","fork":false,"url":"https://api.github.com/repos/sulu-io/sulu","forks_url":"https://api.github.com/repos/sulu-io/sulu/forks","keys_url":"https://api.github.com/repos/sulu-io/sulu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sulu-io/sulu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sulu-io/sulu/teams","hooks_url":"https://api.github.com/repos/sulu-io/sulu/hooks","issue_events_url":"https://api.github.com/repos/sulu-io/sulu/issues/events{/number}","events_url":"https://api.github.com/repos/sulu-io/sulu/events","assignees_url":"https://api.github.com/repos/sulu-io/sulu/assignees{/user}","branches_url":"https://api.github.com/repos/sulu-io/sulu/branches{/branch}","tags_url":"https://api.github.com/repos/sulu-io/sulu/tags","blobs_url":"https://api.github.com/repos/sulu-io/sulu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sulu-io/sulu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sulu-io/sulu/git/refs{/sha}","trees_url":"https://api.github.com/repos/sulu-io/sulu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sulu-io/sulu/statuses/{sha}","languages_url":"https://api.github.com/repos/sulu-io/sulu/languages","stargazers_url":"https://api.github.com/repos/sulu-io/sulu/stargazers","contributors_url":"https://api.github.com/repos/sulu-io/sulu/contributors","subscribers_url":"https://api.github.com/repos/sulu-io/sulu/subscribers","subscription_url":"https://api.github.com/repos/sulu-io/sulu/subscription","commits_url":"https://api.github.com/repos/sulu-io/sulu/commits{/sha}","git_commits_url":"https://api.github.com/repos/sulu-io/sulu/git/commits{/sha}","comments_url":"https://api.github.com/repos/sulu-io/sulu/comments{/number}","issue_comment_url":"https://api.github.com/repos/sulu-io/sulu/issues/comments{/number}","contents_url":"https://api.github.com/repos/sulu-io/sulu/contents/{+path}","compare_url":"https://api.github.com/repos/sulu-io/sulu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sulu-io/sulu/merges","archive_url":"https://api.github.com/repos/sulu-io/sulu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sulu-io/sulu/downloads","issues_url":"https://api.github.com/repos/sulu-io/sulu/issues{/number}","pulls_url":"https://api.github.com/repos/sulu-io/sulu/pulls{/number}","milestones_url":"https://api.github.com/repos/sulu-io/sulu/milestones{/number}","notifications_url":"https://api.github.com/repos/sulu-io/sulu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sulu-io/sulu/labels{/name}","releases_url":"https://api.github.com/repos/sulu-io/sulu/releases{/id}","created_at":"2013-10-18T12:57:02Z","updated_at":"2015-09-16T13:51:28Z","pushed_at":"2015-09-21T14:23:40Z","git_url":"git://github.com/sulu-io/sulu.git","ssh_url":"git@github.com:sulu-io/sulu.git","clone_url":"https://github.com/sulu-io/sulu.git","svn_url":"https://github.com/sulu-io/sulu","homepage":"sulu.io","size":68860,"stargazers_count":69,"watchers_count":69,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":356,"forks":16,"open_issues":356,"watchers":69,"default_branch":"develop"}},"base":{"label":"sulu-io:develop","ref":"develop","sha":"24b121822921dae73ce11da4cee466cd88dd19e7","user":{"login":"sulu-io","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu-io","html_url":"https://github.com/sulu-io","followers_url":"https://api.github.com/users/sulu-io/followers","following_url":"https://api.github.com/users/sulu-io/following{/other_user}","gists_url":"https://api.github.com/users/sulu-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu-io/subscriptions","organizations_url":"https://api.github.com/users/sulu-io/orgs","repos_url":"https://api.github.com/users/sulu-io/repos","events_url":"https://api.github.com/users/sulu-io/events{/privacy}","received_events_url":"https://api.github.com/users/sulu-io/received_events","type":"Organization","site_admin":false},"repo":{"id":13678015,"name":"sulu","full_name":"sulu-io/sulu","owner":{"login":"sulu-io","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu-io","html_url":"https://github.com/sulu-io","followers_url":"https://api.github.com/users/sulu-io/followers","following_url":"https://api.github.com/users/sulu-io/following{/other_user}","gists_url":"https://api.github.com/users/sulu-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu-io/subscriptions","organizations_url":"https://api.github.com/users/sulu-io/orgs","repos_url":"https://api.github.com/users/sulu-io/repos","events_url":"https://api.github.com/users/sulu-io/events{/privacy}","received_events_url":"https://api.github.com/users/sulu-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sulu-io/sulu","description":"Sulu core bundles & components","fork":false,"url":"https://api.github.com/repos/sulu-io/sulu","forks_url":"https://api.github.com/repos/sulu-io/sulu/forks","keys_url":"https://api.github.com/repos/sulu-io/sulu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sulu-io/sulu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sulu-io/sulu/teams","hooks_url":"https://api.github.com/repos/sulu-io/sulu/hooks","issue_events_url":"https://api.github.com/repos/sulu-io/sulu/issues/events{/number}","events_url":"https://api.github.com/repos/sulu-io/sulu/events","assignees_url":"https://api.github.com/repos/sulu-io/sulu/assignees{/user}","branches_url":"https://api.github.com/repos/sulu-io/sulu/branches{/branch}","tags_url":"https://api.github.com/repos/sulu-io/sulu/tags","blobs_url":"https://api.github.com/repos/sulu-io/sulu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sulu-io/sulu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sulu-io/sulu/git/refs{/sha}","trees_url":"https://api.github.com/repos/sulu-io/sulu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sulu-io/sulu/statuses/{sha}","languages_url":"https://api.github.com/repos/sulu-io/sulu/languages","stargazers_url":"https://api.github.com/repos/sulu-io/sulu/stargazers","contributors_url":"https://api.github.com/repos/sulu-io/sulu/contributors","subscribers_url":"https://api.github.com/repos/sulu-io/sulu/subscribers","subscription_url":"https://api.github.com/repos/sulu-io/sulu/subscription","commits_url":"https://api.github.com/repos/sulu-io/sulu/commits{/sha}","git_commits_url":"https://api.github.com/repos/sulu-io/sulu/git/commits{/sha}","comments_url":"https://api.github.com/repos/sulu-io/sulu/comments{/number}","issue_comment_url":"https://api.github.com/repos/sulu-io/sulu/issues/comments{/number}","contents_url":"https://api.github.com/repos/sulu-io/sulu/contents/{+path}","compare_url":"https://api.github.com/repos/sulu-io/sulu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sulu-io/sulu/merges","archive_url":"https://api.github.com/repos/sulu-io/sulu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sulu-io/sulu/downloads","issues_url":"https://api.github.com/repos/sulu-io/sulu/issues{/number}","pulls_url":"https://api.github.com/repos/sulu-io/sulu/pulls{/number}","milestones_url":"https://api.github.com/repos/sulu-io/sulu/milestones{/number}","notifications_url":"https://api.github.com/repos/sulu-io/sulu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sulu-io/sulu/labels{/name}","releases_url":"https://api.github.com/repos/sulu-io/sulu/releases{/id}","created_at":"2013-10-18T12:57:02Z","updated_at":"2015-09-16T13:51:28Z","pushed_at":"2015-09-21T14:23:40Z","git_url":"git://github.com/sulu-io/sulu.git","ssh_url":"git@github.com:sulu-io/sulu.git","clone_url":"https://github.com/sulu-io/sulu.git","svn_url":"https://github.com/sulu-io/sulu","homepage":"sulu.io","size":68860,"stargazers_count":69,"watchers_count":69,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":356,"forks":16,"open_issues":356,"watchers":69,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/sulu-io/sulu/pulls/1347"},"html":{"href":"https://github.com/sulu-io/sulu/pull/1347"},"issue":{"href":"https://api.github.com/repos/sulu-io/sulu/issues/1347"},"comments":{"href":"https://api.github.com/repos/sulu-io/sulu/issues/1347/comments"},"review_comments":{"href":"https://api.github.com/repos/sulu-io/sulu/pulls/1347/comments"},"review_comment":{"href":"https://api.github.com/repos/sulu-io/sulu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sulu-io/sulu/pulls/1347/commits"},"statuses":{"href":"https://api.github.com/repos/sulu-io/sulu/statuses/c2d7d49833becd084c4a674c9a1f29a27079d915"}}}}