{"action":"created","comment":{"url":"https://api.github.com/repos/sulu/activity-log/pulls/comments/83818406","pull_request_review_id":4634551,"id":83818406,"diff_hunk":"@@ -0,0 +1,64 @@\n+<?php\n+\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\\Component\\ActivityLog\\Storage;\n+\n+use Sulu\\Component\\ActivityLog\\Model\\ActivityLogInterface;\n+\n+/**\n+ * Interface for activity-storage.\n+ */\n+interface ActivityStorageInterface\n+{\n+    /**\n+     * Find activity by uuid.\n+     *\n+     * @param string $uuid\n+     *\n+     * @return ActivityLogInterface\n+     */\n+    public function find($uuid);\n+\n+    /**\n+     * Find all activities.\n+     *\n+     * @param int $page\n+     * @param int $pageSize\n+     *\n+     * @return ActivityLogInterface[]\n+     */\n+    public function findAll($page = 1, $pageSize = null);\n+\n+    /**\n+     * Find activities by given parent activity.\n+     *\n+     * @param ActivityLogInterface $activityLog\n+     * @param int $page\n+     * @param int $pageSize\n+     *\n+     * @return ActivityLogInterface\n+     */\n+    public function findByParent(ActivityLogInterface $activityLog, $page = 1, $pageSize = null);\n+\n+    /**\n+     * Persists activity.","path":"src/Storage/ActivityStorageInterface.php","position":52,"original_position":52,"commit_id":"0a5b058a2db54c74afcb0a5feac5c04adf95069d","original_commit_id":"0a5b058a2db54c74afcb0a5feac5c04adf95069d","user":{"login":"chirimoya","id":627313,"avatar_url":"https://avatars.githubusercontent.com/u/627313?v=3","gravatar_id":"","url":"https://api.github.com/users/chirimoya","html_url":"https://github.com/chirimoya","followers_url":"https://api.github.com/users/chirimoya/followers","following_url":"https://api.github.com/users/chirimoya/following{/other_user}","gists_url":"https://api.github.com/users/chirimoya/gists{/gist_id}","starred_url":"https://api.github.com/users/chirimoya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chirimoya/subscriptions","organizations_url":"https://api.github.com/users/chirimoya/orgs","repos_url":"https://api.github.com/users/chirimoya/repos","events_url":"https://api.github.com/users/chirimoya/events{/privacy}","received_events_url":"https://api.github.com/users/chirimoya/received_events","type":"User","site_admin":false},"body":"Persists activity log.","created_at":"2016-10-18T09:48:31Z","updated_at":"2016-10-18T09:48:31Z","html_url":"https://github.com/sulu/activity-log/pull/1#discussion_r83818406","pull_request_url":"https://api.github.com/repos/sulu/activity-log/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/sulu/activity-log/pulls/comments/83818406"},"html":{"href":"https://github.com/sulu/activity-log/pull/1#discussion_r83818406"},"pull_request":{"href":"https://api.github.com/repos/sulu/activity-log/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/sulu/activity-log/pulls/1","id":88803174,"html_url":"https://github.com/sulu/activity-log/pull/1","diff_url":"https://github.com/sulu/activity-log/pull/1.diff","patch_url":"https://github.com/sulu/activity-log/pull/1.patch","issue_url":"https://api.github.com/repos/sulu/activity-log/issues/1","number":1,"state":"open","locked":false,"title":"Added basic implementation","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":"This PR add a basic implementation for the activity-log.","created_at":"2016-10-11T09:54:59Z","updated_at":"2016-10-18T09:53:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"042ed18eb3d65ee490695d99f45db91fa3385f4a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sulu/activity-log/pulls/1/commits","review_comments_url":"https://api.github.com/repos/sulu/activity-log/pulls/1/comments","review_comment_url":"https://api.github.com/repos/sulu/activity-log/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sulu/activity-log/issues/1/comments","statuses_url":"https://api.github.com/repos/sulu/activity-log/statuses/0a5b058a2db54c74afcb0a5feac5c04adf95069d","head":{"label":"sulu:feature/basic-implementation","ref":"feature/basic-implementation","sha":"0a5b058a2db54c74afcb0a5feac5c04adf95069d","user":{"login":"sulu","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu","html_url":"https://github.com/sulu","followers_url":"https://api.github.com/users/sulu/followers","following_url":"https://api.github.com/users/sulu/following{/other_user}","gists_url":"https://api.github.com/users/sulu/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu/subscriptions","organizations_url":"https://api.github.com/users/sulu/orgs","repos_url":"https://api.github.com/users/sulu/repos","events_url":"https://api.github.com/users/sulu/events{/privacy}","received_events_url":"https://api.github.com/users/sulu/received_events","type":"Organization","site_admin":false},"repo":{"id":70488484,"name":"activity-log","full_name":"sulu/activity-log","owner":{"login":"sulu","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu","html_url":"https://github.com/sulu","followers_url":"https://api.github.com/users/sulu/followers","following_url":"https://api.github.com/users/sulu/following{/other_user}","gists_url":"https://api.github.com/users/sulu/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu/subscriptions","organizations_url":"https://api.github.com/users/sulu/orgs","repos_url":"https://api.github.com/users/sulu/repos","events_url":"https://api.github.com/users/sulu/events{/privacy}","received_events_url":"https://api.github.com/users/sulu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sulu/activity-log","description":null,"fork":false,"url":"https://api.github.com/repos/sulu/activity-log","forks_url":"https://api.github.com/repos/sulu/activity-log/forks","keys_url":"https://api.github.com/repos/sulu/activity-log/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sulu/activity-log/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sulu/activity-log/teams","hooks_url":"https://api.github.com/repos/sulu/activity-log/hooks","issue_events_url":"https://api.github.com/repos/sulu/activity-log/issues/events{/number}","events_url":"https://api.github.com/repos/sulu/activity-log/events","assignees_url":"https://api.github.com/repos/sulu/activity-log/assignees{/user}","branches_url":"https://api.github.com/repos/sulu/activity-log/branches{/branch}","tags_url":"https://api.github.com/repos/sulu/activity-log/tags","blobs_url":"https://api.github.com/repos/sulu/activity-log/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sulu/activity-log/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sulu/activity-log/git/refs{/sha}","trees_url":"https://api.github.com/repos/sulu/activity-log/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sulu/activity-log/statuses/{sha}","languages_url":"https://api.github.com/repos/sulu/activity-log/languages","stargazers_url":"https://api.github.com/repos/sulu/activity-log/stargazers","contributors_url":"https://api.github.com/repos/sulu/activity-log/contributors","subscribers_url":"https://api.github.com/repos/sulu/activity-log/subscribers","subscription_url":"https://api.github.com/repos/sulu/activity-log/subscription","commits_url":"https://api.github.com/repos/sulu/activity-log/commits{/sha}","git_commits_url":"https://api.github.com/repos/sulu/activity-log/git/commits{/sha}","comments_url":"https://api.github.com/repos/sulu/activity-log/comments{/number}","issue_comment_url":"https://api.github.com/repos/sulu/activity-log/issues/comments{/number}","contents_url":"https://api.github.com/repos/sulu/activity-log/contents/{+path}","compare_url":"https://api.github.com/repos/sulu/activity-log/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sulu/activity-log/merges","archive_url":"https://api.github.com/repos/sulu/activity-log/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sulu/activity-log/downloads","issues_url":"https://api.github.com/repos/sulu/activity-log/issues{/number}","pulls_url":"https://api.github.com/repos/sulu/activity-log/pulls{/number}","milestones_url":"https://api.github.com/repos/sulu/activity-log/milestones{/number}","notifications_url":"https://api.github.com/repos/sulu/activity-log/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sulu/activity-log/labels{/name}","releases_url":"https://api.github.com/repos/sulu/activity-log/releases{/id}","deployments_url":"https://api.github.com/repos/sulu/activity-log/deployments","created_at":"2016-10-10T13:05:31Z","updated_at":"2016-10-10T14:11:50Z","pushed_at":"2016-10-17T13:33:57Z","git_url":"git://github.com/sulu/activity-log.git","ssh_url":"git@github.com:sulu/activity-log.git","clone_url":"https://github.com/sulu/activity-log.git","svn_url":"https://github.com/sulu/activity-log","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sulu:master","ref":"master","sha":"401562dddfc02eb85f09457819b4a63d468e1a62","user":{"login":"sulu","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu","html_url":"https://github.com/sulu","followers_url":"https://api.github.com/users/sulu/followers","following_url":"https://api.github.com/users/sulu/following{/other_user}","gists_url":"https://api.github.com/users/sulu/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu/subscriptions","organizations_url":"https://api.github.com/users/sulu/orgs","repos_url":"https://api.github.com/users/sulu/repos","events_url":"https://api.github.com/users/sulu/events{/privacy}","received_events_url":"https://api.github.com/users/sulu/received_events","type":"Organization","site_admin":false},"repo":{"id":70488484,"name":"activity-log","full_name":"sulu/activity-log","owner":{"login":"sulu","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu","html_url":"https://github.com/sulu","followers_url":"https://api.github.com/users/sulu/followers","following_url":"https://api.github.com/users/sulu/following{/other_user}","gists_url":"https://api.github.com/users/sulu/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu/subscriptions","organizations_url":"https://api.github.com/users/sulu/orgs","repos_url":"https://api.github.com/users/sulu/repos","events_url":"https://api.github.com/users/sulu/events{/privacy}","received_events_url":"https://api.github.com/users/sulu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sulu/activity-log","description":null,"fork":false,"url":"https://api.github.com/repos/sulu/activity-log","forks_url":"https://api.github.com/repos/sulu/activity-log/forks","keys_url":"https://api.github.com/repos/sulu/activity-log/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sulu/activity-log/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sulu/activity-log/teams","hooks_url":"https://api.github.com/repos/sulu/activity-log/hooks","issue_events_url":"https://api.github.com/repos/sulu/activity-log/issues/events{/number}","events_url":"https://api.github.com/repos/sulu/activity-log/events","assignees_url":"https://api.github.com/repos/sulu/activity-log/assignees{/user}","branches_url":"https://api.github.com/repos/sulu/activity-log/branches{/branch}","tags_url":"https://api.github.com/repos/sulu/activity-log/tags","blobs_url":"https://api.github.com/repos/sulu/activity-log/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sulu/activity-log/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sulu/activity-log/git/refs{/sha}","trees_url":"https://api.github.com/repos/sulu/activity-log/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sulu/activity-log/statuses/{sha}","languages_url":"https://api.github.com/repos/sulu/activity-log/languages","stargazers_url":"https://api.github.com/repos/sulu/activity-log/stargazers","contributors_url":"https://api.github.com/repos/sulu/activity-log/contributors","subscribers_url":"https://api.github.com/repos/sulu/activity-log/subscribers","subscription_url":"https://api.github.com/repos/sulu/activity-log/subscription","commits_url":"https://api.github.com/repos/sulu/activity-log/commits{/sha}","git_commits_url":"https://api.github.com/repos/sulu/activity-log/git/commits{/sha}","comments_url":"https://api.github.com/repos/sulu/activity-log/comments{/number}","issue_comment_url":"https://api.github.com/repos/sulu/activity-log/issues/comments{/number}","contents_url":"https://api.github.com/repos/sulu/activity-log/contents/{+path}","compare_url":"https://api.github.com/repos/sulu/activity-log/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sulu/activity-log/merges","archive_url":"https://api.github.com/repos/sulu/activity-log/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sulu/activity-log/downloads","issues_url":"https://api.github.com/repos/sulu/activity-log/issues{/number}","pulls_url":"https://api.github.com/repos/sulu/activity-log/pulls{/number}","milestones_url":"https://api.github.com/repos/sulu/activity-log/milestones{/number}","notifications_url":"https://api.github.com/repos/sulu/activity-log/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sulu/activity-log/labels{/name}","releases_url":"https://api.github.com/repos/sulu/activity-log/releases{/id}","deployments_url":"https://api.github.com/repos/sulu/activity-log/deployments","created_at":"2016-10-10T13:05:31Z","updated_at":"2016-10-10T14:11:50Z","pushed_at":"2016-10-17T13:33:57Z","git_url":"git://github.com/sulu/activity-log.git","ssh_url":"git@github.com:sulu/activity-log.git","clone_url":"https://github.com/sulu/activity-log.git","svn_url":"https://github.com/sulu/activity-log","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sulu/activity-log/pulls/1"},"html":{"href":"https://github.com/sulu/activity-log/pull/1"},"issue":{"href":"https://api.github.com/repos/sulu/activity-log/issues/1"},"comments":{"href":"https://api.github.com/repos/sulu/activity-log/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/sulu/activity-log/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/sulu/activity-log/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sulu/activity-log/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/sulu/activity-log/statuses/0a5b058a2db54c74afcb0a5feac5c04adf95069d"}}}}
{"actor":{"display_login":"chirimoya"}}