{"action":"created","comment":{"url":"https://api.github.com/repos/sulu-io/sulu/pulls/comments/29242262","id":29242262,"diff_hunk":"@@ -0,0 +1,385 @@\n+<?php\n+/*\n+ * This file is part of the Sulu CMS.\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\\ResourceBundle\\Filter;\n+\n+use Doctrine\\ORM\\EntityManager;\n+use Sulu\\Bundle\\ResourceBundle\\Api\\ConditionGroup;\n+use Sulu\\Bundle\\ResourceBundle\\Api\\Condition;\n+use Sulu\\Bundle\\ResourceBundle\\Entity\\Condition as ConditionEntity;\n+use Sulu\\Bundle\\ResourceBundle\\Entity\\ConditionGroup as ConditionGroupEntity;\n+use Sulu\\Bundle\\ResourceBundle\\Api\\Filter;\n+use Sulu\\Bundle\\ResourceBundle\\Entity\\ConditionGroupRepositoryInterface;\n+use Sulu\\Bundle\\ResourceBundle\\Entity\\Filter as FilterEntity;\n+use Sulu\\Bundle\\ResourceBundle\\Entity\\FilterRepositoryInterface;\n+use Sulu\\Bundle\\ResourceBundle\\Filter\\Exception\\FilterDependencyNotFoundException;\n+use Sulu\\Bundle\\ResourceBundle\\Filter\\Exception\\FilterNotFoundException;\n+use Sulu\\Bundle\\ResourceBundle\\Filter\\Exception\\MissingConditionAttributeException;\n+use Sulu\\Bundle\\ResourceBundle\\Filter\\Exception\\MissingFilterAttributeException;\n+use Sulu\\Component\\Persistence\\RelationTrait;\n+use Sulu\\Component\\Rest\\Exception\\EntityIdAlreadySetException;\n+use Sulu\\Component\\Rest\\ListBuilder\\Doctrine\\FieldDescriptor\\DoctrineFieldDescriptor;\n+use Sulu\\Component\\Rest\\ListBuilder\\Doctrine\\FieldDescriptor\\DoctrineJoinDescriptor;\n+use Sulu\\Component\\Security\\Authentication\\UserRepositoryInterface;\n+\n+/**\n+ * Class FilterManager\n+ * @package Sulu\\Bundle\\ResourceBundle\\Filter\n+ */\n+class FilterManager implements FilterManagerInterface\n+{\n+    use RelationTrait;\n+\n+    protected static $filterEntityName = 'SuluResourceBundle:Filter';\n+    protected static $conditionGroupEntityName = 'SuluResourceBundle:ConditionGroup';\n+    protected static $conditionEntityName = 'SuluResourceBundle:Condition';\n+    protected static $filterTranslationEntityName = 'SuluResourceBundle:FilterTranslation';\n+\n+    /**\n+     * @var EntityManager\n+     */\n+    protected $em;\n+\n+    /**\n+     * @var FilterRepositoryInterface\n+     */\n+    protected $filterRepository;\n+\n+    /**\n+     * @var UserRepositoryInterface\n+     */\n+    protected $userRepository;\n+\n+    /**\n+     * @var ConditionGroupRepositoryInterface\n+     */\n+    protected $conditionGroupRepository;\n+\n+    public function __construct(\n+        $em,\n+        FilterRepositoryInterface $filterRepo,\n+        UserRepositoryInterface $userRepository,\n+        ConditionGroupRepositoryInterface $conditionGroupRepository\n+    ) {\n+        $this->em = $em;\n+        $this->filterRepository = $filterRepo;\n+        $this->userRepository = $userRepository;\n+        $this->conditionGroupRepository = $conditionGroupRepository;\n+    }\n+\n+    /**\n+     * {@inheritDoc}\n+     */\n+    public function getFieldDescriptors($locale)\n+    {\n+        $fieldDescriptors = array();\n+        $fieldDescriptors['id'] = new DoctrineFieldDescriptor(\n+            'id',\n+            'id',\n+            self::$filterEntityName,\n+            'public.id',\n+            array(),\n+            true\n+        );\n+        $fieldDescriptors['name'] = new DoctrineFieldDescriptor(\n+            'name',\n+            'name',\n+            self::$filterTranslationEntityName,\n+            'resource.filter.name',\n+            array(\n+                self::$filterTranslationEntityName => new DoctrineJoinDescriptor(\n+                    self::$filterTranslationEntityName,\n+                    self::$filterEntityName.'.translations',\n+                    self::$filterTranslationEntityName.'.locale = \\''.$locale.'\\''\n+                ),\n+            )\n+        );\n+        $fieldDescriptors['andCombination'] = new DoctrineFieldDescriptor(\n+            'andCombination',\n+            'andCombination',\n+            self::$filterEntityName,\n+            'resource.filter.andCombination',\n+            array(),\n+            true\n+        );\n+        $fieldDescriptors['entityName'] = new DoctrineFieldDescriptor(\n+            'entityName',\n+            'entityName',\n+            self::$filterEntityName,\n+            'resource.filter.entityName',\n+            array(),\n+            true\n+        );\n+\n+        return $fieldDescriptors;\n+    }\n+\n+    /**\n+     * {@inheritDoc}\n+     */\n+    public function findByIdAndLocale($id, $locale)\n+    {\n+        $filter = $this->filterRepository->findByIdAndLocale($id, $locale);\n+        if ($filter) {\n+            return new Filter($filter, $locale);\n+        } else {\n+            return null;\n+        }\n+    }\n+\n+    /**\n+     * {@inheritDoc}\n+     */\n+    public function findAllByLocale($locale)\n+    {\n+        $filters = $this->filterRepository->findAllByLocale($locale);\n+        array_walk(\n+            $filters,\n+            function (&$filter) use ($locale) {\n+                $filter = new Filter($filter, $locale);\n+            }\n+        );\n+\n+        return $filters;\n+    }\n+\n+    /**\n+     * {@inheritDoc}\n+     */\n+    public function delete($id)\n+    {\n+        $filter = $this->filterRepository->findById($id);\n+        if (!$filter) {\n+            throw new FilterNotFoundException($id);\n+        }\n+        $this->em->remove($filter);\n+        $this->em->flush();\n+    }\n+\n+    /**\n+     * {@inheritDoc}\n+     */\n+    public function save(array $data, $locale, $userId, $id = null)\n+    {\n+        $user = $this->userRepository->findUserById($userId);\n+\n+        if ($id) {\n+            $filter = $this->filterRepository->findByIdAndLocale($id, $locale);\n+            if (!$filter) {\n+                throw new FilterNotFoundException($id);\n+            }\n+            $filter = new Filter($filter, $locale);\n+        } else {\n+            $this->checkData($data, true);\n+            $filter = new Filter(new FilterEntity(), $locale);\n+            $filter->setCreated(new \\DateTime());\n+            $filter->setCreator($user);\n+            $this->em->persist($filter->getEntity());\n+        }\n+\n+        // set direct properties and translation\n+        $filter->setChanged(new \\DateTime());\n+        $filter->setChanger($user);\n+        $filter->setName($this->getProperty($data, 'name', $filter->getName()));\n+        $filter->setEntityName($this->getProperty($data, 'entityName', $filter->getEntityName()));\n+        $filter->setAndCombination($this->getProperty($data, 'andCombination', $filter->getAndCombination()));\n+        $filter->setChanger($user);\n+        $filter->setChanged(new \\DateTime());\n+\n+        // update condition groups and conditions\n+        if (isset($data['conditionGroups'])) {\n+\n+            $get = function (ConditionGroupEntity $conditionGroup) {","path":"src/Sulu/Bundle/ResourceBundle/Filter/FilterManager.php","position":199,"original_position":199,"commit_id":"c28f4fa309df2fa86e625d7c35d5b2dd86a2dd5a","original_commit_id":"c28f4fa309df2fa86e625d7c35d5b2dd86a2dd5a","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":"no empty line before","created_at":"2015-04-28T13:34:45Z","updated_at":"2015-04-28T13:34:45Z","html_url":"https://github.com/sulu-io/sulu/pull/1022#discussion_r29242262","pull_request_url":"https://api.github.com/repos/sulu-io/sulu/pulls/1022","_links":{"self":{"href":"https://api.github.com/repos/sulu-io/sulu/pulls/comments/29242262"},"html":{"href":"https://github.com/sulu-io/sulu/pull/1022#discussion_r29242262"},"pull_request":{"href":"https://api.github.com/repos/sulu-io/sulu/pulls/1022"}}},"pull_request":{"url":"https://api.github.com/repos/sulu-io/sulu/pulls/1022","id":33679381,"html_url":"https://github.com/sulu-io/sulu/pull/1022","diff_url":"https://github.com/sulu-io/sulu/pull/1022.diff","patch_url":"https://github.com/sulu-io/sulu/pull/1022.patch","issue_url":"https://api.github.com/repos/sulu-io/sulu/issues/1022","number":1022,"state":"open","locked":false,"title":"fiter integration","user":{"login":"michaelzangerle","id":1465587,"avatar_url":"https://avatars.githubusercontent.com/u/1465587?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelzangerle","html_url":"https://github.com/michaelzangerle","followers_url":"https://api.github.com/users/michaelzangerle/followers","following_url":"https://api.github.com/users/michaelzangerle/following{/other_user}","gists_url":"https://api.github.com/users/michaelzangerle/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelzangerle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelzangerle/subscriptions","organizations_url":"https://api.github.com/users/michaelzangerle/orgs","repos_url":"https://api.github.com/users/michaelzangerle/repos","events_url":"https://api.github.com/users/michaelzangerle/events{/privacy}","received_events_url":"https://api.github.com/users/michaelzangerle/received_events","type":"User","site_admin":false},"body":"- added resource bundle which contains all that is needed for general filter handling in lists\r\n- added extension point to list builder\r\n- added extension points to admin bundle component (sulu-extension)\r\n\r\n__Tasks:__\r\n\r\n- [x] database modell\r\n- [x] fixtures for operators\r\n- [x] crud functionality for operators and filters\r\n- [x] tests for api of filters and operators\r\n- [ ] front end components for operators\r\n- [ ] ui for filters form and list \r\n- [ ] add extension points to admin bundle\r\n- [ ] add extension points to list handling (list builder)\r\n- [ ] improve user settings handling\r\n- [ ] add bc break information for changes in admin (settings handling)\r\n- [ ] integrate permissions\r\n- [ ] gather feedback for my changes\r\n- [ ] submit changes to the documentation\r\n- [ ] added change log\r\n\r\n__Informations:__\r\n\r\n| Q             | A\r\n| ------------- | ---\r\n| Tests pass?   | yes\r\n| Fixed tickets | none\r\n| BC Breaks     | [description]\r\n| Doc           | [url to commit|none]","created_at":"2015-04-20T15:57:40Z","updated_at":"2015-04-28T13:34:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf8dcdf6ef06018cfff227da1839173217ac0ff4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sulu-io/sulu/pulls/1022/commits","review_comments_url":"https://api.github.com/repos/sulu-io/sulu/pulls/1022/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/1022/comments","statuses_url":"https://api.github.com/repos/sulu-io/sulu/statuses/c28f4fa309df2fa86e625d7c35d5b2dd86a2dd5a","head":{"label":"sulu-io:feature/filters","ref":"feature/filters","sha":"c28f4fa309df2fa86e625d7c35d5b2dd86a2dd5a","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 2.0 core bundle & 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-04-28T12:29:38Z","pushed_at":"2015-04-28T13:25:51Z","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":"www.sulu.io","size":55051,"stargazers_count":26,"watchers_count":26,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":258,"forks":10,"open_issues":258,"watchers":26,"default_branch":"develop"}},"base":{"label":"sulu-io:develop","ref":"develop","sha":"ef186aefce007261c944d6dcc459017bcb92ef6d","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 2.0 core bundle & 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-04-28T12:29:38Z","pushed_at":"2015-04-28T13:25:51Z","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":"www.sulu.io","size":55051,"stargazers_count":26,"watchers_count":26,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":258,"forks":10,"open_issues":258,"watchers":26,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/sulu-io/sulu/pulls/1022"},"html":{"href":"https://github.com/sulu-io/sulu/pull/1022"},"issue":{"href":"https://api.github.com/repos/sulu-io/sulu/issues/1022"},"comments":{"href":"https://api.github.com/repos/sulu-io/sulu/issues/1022/comments"},"review_comments":{"href":"https://api.github.com/repos/sulu-io/sulu/pulls/1022/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/1022/commits"},"statuses":{"href":"https://api.github.com/repos/sulu-io/sulu/statuses/c28f4fa309df2fa86e625d7c35d5b2dd86a2dd5a"}}}}