{"action":"created","comment":{"url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/pulls/comments/168800905","pull_request_review_id":97182228,"id":168800905,"diff_hunk":"@@ -0,0 +1,27 @@\n+from rest_framework import serializers\n+\n+from module.models import Activity, Collection\n+\n+\n+class ActivitySerializer(serializers.ModelSerializer):\n+    \"\"\"\n+    Serializer for Activity API view set.\n+\n+    Serializer is based on the Activity model's fields.\n+    \"\"\"\n+\n+    class Meta:\n+        model = Activity\n+        fields = '__all__'","path":"bridge_adaptivity/api/serializers.py","position":15,"original_position":15,"commit_id":"d5a2d2e6f86db865cb8f764547e56690d6375515","original_commit_id":"d5a2d2e6f86db865cb8f764547e56690d6375515","user":{"login":"alexbojko","id":370714,"avatar_url":"https://avatars2.githubusercontent.com/u/370714?v=4","gravatar_id":"","url":"https://api.github.com/users/alexbojko","html_url":"https://github.com/alexbojko","followers_url":"https://api.github.com/users/alexbojko/followers","following_url":"https://api.github.com/users/alexbojko/following{/other_user}","gists_url":"https://api.github.com/users/alexbojko/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbojko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbojko/subscriptions","organizations_url":"https://api.github.com/users/alexbojko/orgs","repos_url":"https://api.github.com/users/alexbojko/repos","events_url":"https://api.github.com/users/alexbojko/events{/privacy}","received_events_url":"https://api.github.com/users/alexbojko/received_events","type":"User","site_admin":false},"body":"is it secure to allow to serialize all fields?","created_at":"2018-02-16T16:16:08Z","updated_at":"2018-02-16T16:18:12Z","html_url":"https://github.com/harvard-vpal/bridge-adaptivity/pull/101#discussion_r168800905","pull_request_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/pulls/101","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/pulls/comments/168800905"},"html":{"href":"https://github.com/harvard-vpal/bridge-adaptivity/pull/101#discussion_r168800905"},"pull_request":{"href":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/pulls/101"}}},"pull_request":{"url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/pulls/101","id":169411141,"html_url":"https://github.com/harvard-vpal/bridge-adaptivity/pull/101","diff_url":"https://github.com/harvard-vpal/bridge-adaptivity/pull/101.diff","patch_url":"https://github.com/harvard-vpal/bridge-adaptivity/pull/101.patch","issue_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/issues/101","number":101,"state":"open","locked":false,"title":"CRUD API for collection and activity models","user":{"login":"idegtiarov","id":7392821,"avatar_url":"https://avatars1.githubusercontent.com/u/7392821?v=4","gravatar_id":"","url":"https://api.github.com/users/idegtiarov","html_url":"https://github.com/idegtiarov","followers_url":"https://api.github.com/users/idegtiarov/followers","following_url":"https://api.github.com/users/idegtiarov/following{/other_user}","gists_url":"https://api.github.com/users/idegtiarov/gists{/gist_id}","starred_url":"https://api.github.com/users/idegtiarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idegtiarov/subscriptions","organizations_url":"https://api.github.com/users/idegtiarov/orgs","repos_url":"https://api.github.com/users/idegtiarov/repos","events_url":"https://api.github.com/users/idegtiarov/events{/privacy}","received_events_url":"https://api.github.com/users/idegtiarov/received_events","type":"User","site_admin":false},"body":"Implement API view sets for Activities and Collections\r\n\r\nAdd possibility to use CRUD operations for Activity and Collection models.","created_at":"2018-02-15T15:58:39Z","updated_at":"2018-02-16T16:18:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a0ab6d6ca1950e2cf1001980d0ca80f4d8d8c00","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/pulls/101/commits","review_comments_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/pulls/101/comments","review_comment_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/issues/101/comments","statuses_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/statuses/d5a2d2e6f86db865cb8f764547e56690d6375515","head":{"label":"harvard-vpal:idegtiarov/api/collection_activity","ref":"idegtiarov/api/collection_activity","sha":"d5a2d2e6f86db865cb8f764547e56690d6375515","user":{"login":"harvard-vpal","id":15635162,"avatar_url":"https://avatars2.githubusercontent.com/u/15635162?v=4","gravatar_id":"","url":"https://api.github.com/users/harvard-vpal","html_url":"https://github.com/harvard-vpal","followers_url":"https://api.github.com/users/harvard-vpal/followers","following_url":"https://api.github.com/users/harvard-vpal/following{/other_user}","gists_url":"https://api.github.com/users/harvard-vpal/gists{/gist_id}","starred_url":"https://api.github.com/users/harvard-vpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvard-vpal/subscriptions","organizations_url":"https://api.github.com/users/harvard-vpal/orgs","repos_url":"https://api.github.com/users/harvard-vpal/repos","events_url":"https://api.github.com/users/harvard-vpal/events{/privacy}","received_events_url":"https://api.github.com/users/harvard-vpal/received_events","type":"Organization","site_admin":false},"repo":{"id":87549050,"name":"bridge-adaptivity","full_name":"harvard-vpal/bridge-adaptivity","owner":{"login":"harvard-vpal","id":15635162,"avatar_url":"https://avatars2.githubusercontent.com/u/15635162?v=4","gravatar_id":"","url":"https://api.github.com/users/harvard-vpal","html_url":"https://github.com/harvard-vpal","followers_url":"https://api.github.com/users/harvard-vpal/followers","following_url":"https://api.github.com/users/harvard-vpal/following{/other_user}","gists_url":"https://api.github.com/users/harvard-vpal/gists{/gist_id}","starred_url":"https://api.github.com/users/harvard-vpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvard-vpal/subscriptions","organizations_url":"https://api.github.com/users/harvard-vpal/orgs","repos_url":"https://api.github.com/users/harvard-vpal/repos","events_url":"https://api.github.com/users/harvard-vpal/events{/privacy}","received_events_url":"https://api.github.com/users/harvard-vpal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/harvard-vpal/bridge-adaptivity","description":"Bridge for Adaptivity","fork":false,"url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity","forks_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/forks","keys_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/teams","hooks_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/hooks","issue_events_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/issues/events{/number}","events_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/events","assignees_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/assignees{/user}","branches_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/branches{/branch}","tags_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/tags","blobs_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/git/refs{/sha}","trees_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/statuses/{sha}","languages_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/languages","stargazers_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/stargazers","contributors_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/contributors","subscribers_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/subscribers","subscription_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/subscription","commits_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/commits{/sha}","git_commits_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/git/commits{/sha}","comments_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/comments{/number}","issue_comment_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/issues/comments{/number}","contents_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/contents/{+path}","compare_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/merges","archive_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/downloads","issues_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/issues{/number}","pulls_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/pulls{/number}","milestones_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/milestones{/number}","notifications_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/labels{/name}","releases_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/releases{/id}","deployments_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/deployments","created_at":"2017-04-07T13:34:28Z","updated_at":"2017-08-30T19:31:11Z","pushed_at":"2018-02-16T15:38:47Z","git_url":"git://github.com/harvard-vpal/bridge-adaptivity.git","ssh_url":"git@github.com:harvard-vpal/bridge-adaptivity.git","clone_url":"https://github.com/harvard-vpal/bridge-adaptivity.git","svn_url":"https://github.com/harvard-vpal/bridge-adaptivity","homepage":null,"size":2095,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":1,"open_issues":5,"watchers":2,"default_branch":"master"}},"base":{"label":"harvard-vpal:master","ref":"master","sha":"49d24f11f389767ea190a8a1cf4e2d385c914228","user":{"login":"harvard-vpal","id":15635162,"avatar_url":"https://avatars2.githubusercontent.com/u/15635162?v=4","gravatar_id":"","url":"https://api.github.com/users/harvard-vpal","html_url":"https://github.com/harvard-vpal","followers_url":"https://api.github.com/users/harvard-vpal/followers","following_url":"https://api.github.com/users/harvard-vpal/following{/other_user}","gists_url":"https://api.github.com/users/harvard-vpal/gists{/gist_id}","starred_url":"https://api.github.com/users/harvard-vpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvard-vpal/subscriptions","organizations_url":"https://api.github.com/users/harvard-vpal/orgs","repos_url":"https://api.github.com/users/harvard-vpal/repos","events_url":"https://api.github.com/users/harvard-vpal/events{/privacy}","received_events_url":"https://api.github.com/users/harvard-vpal/received_events","type":"Organization","site_admin":false},"repo":{"id":87549050,"name":"bridge-adaptivity","full_name":"harvard-vpal/bridge-adaptivity","owner":{"login":"harvard-vpal","id":15635162,"avatar_url":"https://avatars2.githubusercontent.com/u/15635162?v=4","gravatar_id":"","url":"https://api.github.com/users/harvard-vpal","html_url":"https://github.com/harvard-vpal","followers_url":"https://api.github.com/users/harvard-vpal/followers","following_url":"https://api.github.com/users/harvard-vpal/following{/other_user}","gists_url":"https://api.github.com/users/harvard-vpal/gists{/gist_id}","starred_url":"https://api.github.com/users/harvard-vpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harvard-vpal/subscriptions","organizations_url":"https://api.github.com/users/harvard-vpal/orgs","repos_url":"https://api.github.com/users/harvard-vpal/repos","events_url":"https://api.github.com/users/harvard-vpal/events{/privacy}","received_events_url":"https://api.github.com/users/harvard-vpal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/harvard-vpal/bridge-adaptivity","description":"Bridge for Adaptivity","fork":false,"url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity","forks_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/forks","keys_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/teams","hooks_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/hooks","issue_events_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/issues/events{/number}","events_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/events","assignees_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/assignees{/user}","branches_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/branches{/branch}","tags_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/tags","blobs_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/git/refs{/sha}","trees_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/statuses/{sha}","languages_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/languages","stargazers_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/stargazers","contributors_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/contributors","subscribers_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/subscribers","subscription_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/subscription","commits_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/commits{/sha}","git_commits_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/git/commits{/sha}","comments_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/comments{/number}","issue_comment_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/issues/comments{/number}","contents_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/contents/{+path}","compare_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/merges","archive_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/downloads","issues_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/issues{/number}","pulls_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/pulls{/number}","milestones_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/milestones{/number}","notifications_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/labels{/name}","releases_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/releases{/id}","deployments_url":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/deployments","created_at":"2017-04-07T13:34:28Z","updated_at":"2017-08-30T19:31:11Z","pushed_at":"2018-02-16T15:38:47Z","git_url":"git://github.com/harvard-vpal/bridge-adaptivity.git","ssh_url":"git@github.com:harvard-vpal/bridge-adaptivity.git","clone_url":"https://github.com/harvard-vpal/bridge-adaptivity.git","svn_url":"https://github.com/harvard-vpal/bridge-adaptivity","homepage":null,"size":2095,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":1,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/pulls/101"},"html":{"href":"https://github.com/harvard-vpal/bridge-adaptivity/pull/101"},"issue":{"href":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/issues/101"},"comments":{"href":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/issues/101/comments"},"review_comments":{"href":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/pulls/101/comments"},"review_comment":{"href":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/pulls/101/commits"},"statuses":{"href":"https://api.github.com/repos/harvard-vpal/bridge-adaptivity/statuses/d5a2d2e6f86db865cb8f764547e56690d6375515"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"alexbojko"}}