{"action":"created","comment":{"url":"https://api.github.com/repos/SkygearIO/skygear-server/pulls/comments/86731008","pull_request_review_id":7373256,"id":86731008,"diff_hunk":"@@ -51,8 +51,8 @@ type schemaField struct {\n \tTypeName string `mapstructure:\"type\" json:\"type\"`\n }\n \n-func (resp *schemaResponse) Encode(data map[string]skydb.RecordSchema) {\n-\tresp.Schemas = make(map[string]schemaFieldList)\n+func encodeRecordSchemas(data map[string]skydb.RecordSchema) map[string]schemaFieldList {","path":"pkg/server/handler/schema.go","position":19,"original_position":6,"commit_id":"c24c83f3797557387f8b2931aa5287c51d0b1412","original_commit_id":"c24c83f3797557387f8b2931aa5287c51d0b1412","user":{"login":"ben181231","id":3863953,"avatar_url":"https://avatars.githubusercontent.com/u/3863953?v=3","gravatar_id":"","url":"https://api.github.com/users/ben181231","html_url":"https://github.com/ben181231","followers_url":"https://api.github.com/users/ben181231/followers","following_url":"https://api.github.com/users/ben181231/following{/other_user}","gists_url":"https://api.github.com/users/ben181231/gists{/gist_id}","starred_url":"https://api.github.com/users/ben181231/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben181231/subscriptions","organizations_url":"https://api.github.com/users/ben181231/orgs","repos_url":"https://api.github.com/users/ben181231/repos","events_url":"https://api.github.com/users/ben181231/events{/privacy}","received_events_url":"https://api.github.com/users/ben181231/received_events","type":"User","site_admin":false},"body":"I see.","created_at":"2016-11-07T08:47:36Z","updated_at":"2016-11-07T08:47:36Z","html_url":"https://github.com/SkygearIO/skygear-server/pull/215#discussion_r86731008","pull_request_url":"https://api.github.com/repos/SkygearIO/skygear-server/pulls/215","_links":{"self":{"href":"https://api.github.com/repos/SkygearIO/skygear-server/pulls/comments/86731008"},"html":{"href":"https://github.com/SkygearIO/skygear-server/pull/215#discussion_r86731008"},"pull_request":{"href":"https://api.github.com/repos/SkygearIO/skygear-server/pulls/215"}}},"pull_request":{"url":"https://api.github.com/repos/SkygearIO/skygear-server/pulls/215","id":91769546,"html_url":"https://github.com/SkygearIO/skygear-server/pull/215","diff_url":"https://github.com/SkygearIO/skygear-server/pull/215.diff","patch_url":"https://github.com/SkygearIO/skygear-server/pull/215.patch","issue_url":"https://api.github.com/repos/SkygearIO/skygear-server/issues/215","number":215,"state":"open","locked":false,"title":"Support plugin event","user":{"login":"ben181231","id":3863953,"avatar_url":"https://avatars.githubusercontent.com/u/3863953?v=3","gravatar_id":"","url":"https://api.github.com/users/ben181231","html_url":"https://github.com/ben181231","followers_url":"https://api.github.com/users/ben181231/followers","following_url":"https://api.github.com/users/ben181231/following{/other_user}","gists_url":"https://api.github.com/users/ben181231/gists{/gist_id}","starred_url":"https://api.github.com/users/ben181231/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben181231/subscriptions","organizations_url":"https://api.github.com/users/ben181231/orgs","repos_url":"https://api.github.com/users/ben181231/repos","events_url":"https://api.github.com/users/ben181231/events{/privacy}","received_events_url":"https://api.github.com/users/ben181231/received_events","type":"User","site_admin":false},"body":"connect #199","created_at":"2016-11-01T11:40:52Z","updated_at":"2016-11-07T08:47:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82eb50db68ff50b8991ae4106a5faa272279291e","assignee":{"login":"cheungpat","id":170071,"avatar_url":"https://avatars.githubusercontent.com/u/170071?v=3","gravatar_id":"","url":"https://api.github.com/users/cheungpat","html_url":"https://github.com/cheungpat","followers_url":"https://api.github.com/users/cheungpat/followers","following_url":"https://api.github.com/users/cheungpat/following{/other_user}","gists_url":"https://api.github.com/users/cheungpat/gists{/gist_id}","starred_url":"https://api.github.com/users/cheungpat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheungpat/subscriptions","organizations_url":"https://api.github.com/users/cheungpat/orgs","repos_url":"https://api.github.com/users/cheungpat/repos","events_url":"https://api.github.com/users/cheungpat/events{/privacy}","received_events_url":"https://api.github.com/users/cheungpat/received_events","type":"User","site_admin":false},"assignees":[{"login":"cheungpat","id":170071,"avatar_url":"https://avatars.githubusercontent.com/u/170071?v=3","gravatar_id":"","url":"https://api.github.com/users/cheungpat","html_url":"https://github.com/cheungpat","followers_url":"https://api.github.com/users/cheungpat/followers","following_url":"https://api.github.com/users/cheungpat/following{/other_user}","gists_url":"https://api.github.com/users/cheungpat/gists{/gist_id}","starred_url":"https://api.github.com/users/cheungpat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheungpat/subscriptions","organizations_url":"https://api.github.com/users/cheungpat/orgs","repos_url":"https://api.github.com/users/cheungpat/repos","events_url":"https://api.github.com/users/cheungpat/events{/privacy}","received_events_url":"https://api.github.com/users/cheungpat/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/SkygearIO/skygear-server/pulls/215/commits","review_comments_url":"https://api.github.com/repos/SkygearIO/skygear-server/pulls/215/comments","review_comment_url":"https://api.github.com/repos/SkygearIO/skygear-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SkygearIO/skygear-server/issues/215/comments","statuses_url":"https://api.github.com/repos/SkygearIO/skygear-server/statuses/c24c83f3797557387f8b2931aa5287c51d0b1412","head":{"label":"ben181231:lifecycle-hook","ref":"lifecycle-hook","sha":"c24c83f3797557387f8b2931aa5287c51d0b1412","user":{"login":"ben181231","id":3863953,"avatar_url":"https://avatars.githubusercontent.com/u/3863953?v=3","gravatar_id":"","url":"https://api.github.com/users/ben181231","html_url":"https://github.com/ben181231","followers_url":"https://api.github.com/users/ben181231/followers","following_url":"https://api.github.com/users/ben181231/following{/other_user}","gists_url":"https://api.github.com/users/ben181231/gists{/gist_id}","starred_url":"https://api.github.com/users/ben181231/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben181231/subscriptions","organizations_url":"https://api.github.com/users/ben181231/orgs","repos_url":"https://api.github.com/users/ben181231/repos","events_url":"https://api.github.com/users/ben181231/events{/privacy}","received_events_url":"https://api.github.com/users/ben181231/received_events","type":"User","site_admin":false},"repo":{"id":55657396,"name":"skygear-server","full_name":"ben181231/skygear-server","owner":{"login":"ben181231","id":3863953,"avatar_url":"https://avatars.githubusercontent.com/u/3863953?v=3","gravatar_id":"","url":"https://api.github.com/users/ben181231","html_url":"https://github.com/ben181231","followers_url":"https://api.github.com/users/ben181231/followers","following_url":"https://api.github.com/users/ben181231/following{/other_user}","gists_url":"https://api.github.com/users/ben181231/gists{/gist_id}","starred_url":"https://api.github.com/users/ben181231/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben181231/subscriptions","organizations_url":"https://api.github.com/users/ben181231/orgs","repos_url":"https://api.github.com/users/ben181231/repos","events_url":"https://api.github.com/users/ben181231/events{/privacy}","received_events_url":"https://api.github.com/users/ben181231/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ben181231/skygear-server","description":null,"fork":true,"url":"https://api.github.com/repos/ben181231/skygear-server","forks_url":"https://api.github.com/repos/ben181231/skygear-server/forks","keys_url":"https://api.github.com/repos/ben181231/skygear-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ben181231/skygear-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ben181231/skygear-server/teams","hooks_url":"https://api.github.com/repos/ben181231/skygear-server/hooks","issue_events_url":"https://api.github.com/repos/ben181231/skygear-server/issues/events{/number}","events_url":"https://api.github.com/repos/ben181231/skygear-server/events","assignees_url":"https://api.github.com/repos/ben181231/skygear-server/assignees{/user}","branches_url":"https://api.github.com/repos/ben181231/skygear-server/branches{/branch}","tags_url":"https://api.github.com/repos/ben181231/skygear-server/tags","blobs_url":"https://api.github.com/repos/ben181231/skygear-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ben181231/skygear-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ben181231/skygear-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/ben181231/skygear-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ben181231/skygear-server/statuses/{sha}","languages_url":"https://api.github.com/repos/ben181231/skygear-server/languages","stargazers_url":"https://api.github.com/repos/ben181231/skygear-server/stargazers","contributors_url":"https://api.github.com/repos/ben181231/skygear-server/contributors","subscribers_url":"https://api.github.com/repos/ben181231/skygear-server/subscribers","subscription_url":"https://api.github.com/repos/ben181231/skygear-server/subscription","commits_url":"https://api.github.com/repos/ben181231/skygear-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/ben181231/skygear-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/ben181231/skygear-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/ben181231/skygear-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/ben181231/skygear-server/contents/{+path}","compare_url":"https://api.github.com/repos/ben181231/skygear-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ben181231/skygear-server/merges","archive_url":"https://api.github.com/repos/ben181231/skygear-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ben181231/skygear-server/downloads","issues_url":"https://api.github.com/repos/ben181231/skygear-server/issues{/number}","pulls_url":"https://api.github.com/repos/ben181231/skygear-server/pulls{/number}","milestones_url":"https://api.github.com/repos/ben181231/skygear-server/milestones{/number}","notifications_url":"https://api.github.com/repos/ben181231/skygear-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ben181231/skygear-server/labels{/name}","releases_url":"https://api.github.com/repos/ben181231/skygear-server/releases{/id}","deployments_url":"https://api.github.com/repos/ben181231/skygear-server/deployments","created_at":"2016-04-07T02:35:10Z","updated_at":"2016-04-07T02:35:13Z","pushed_at":"2016-11-07T08:08:40Z","git_url":"git://github.com/ben181231/skygear-server.git","ssh_url":"git@github.com:ben181231/skygear-server.git","clone_url":"https://github.com/ben181231/skygear-server.git","svn_url":"https://github.com/ben181231/skygear-server","homepage":null,"size":1681,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"SkygearIO:master","ref":"master","sha":"09822122aff4a166a612bf112ea553778a2024dc","user":{"login":"SkygearIO","id":15025887,"avatar_url":"https://avatars.githubusercontent.com/u/15025887?v=3","gravatar_id":"","url":"https://api.github.com/users/SkygearIO","html_url":"https://github.com/SkygearIO","followers_url":"https://api.github.com/users/SkygearIO/followers","following_url":"https://api.github.com/users/SkygearIO/following{/other_user}","gists_url":"https://api.github.com/users/SkygearIO/gists{/gist_id}","starred_url":"https://api.github.com/users/SkygearIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SkygearIO/subscriptions","organizations_url":"https://api.github.com/users/SkygearIO/orgs","repos_url":"https://api.github.com/users/SkygearIO/repos","events_url":"https://api.github.com/users/SkygearIO/events{/privacy}","received_events_url":"https://api.github.com/users/SkygearIO/received_events","type":"Organization","site_admin":false},"repo":{"id":54106815,"name":"skygear-server","full_name":"SkygearIO/skygear-server","owner":{"login":"SkygearIO","id":15025887,"avatar_url":"https://avatars.githubusercontent.com/u/15025887?v=3","gravatar_id":"","url":"https://api.github.com/users/SkygearIO","html_url":"https://github.com/SkygearIO","followers_url":"https://api.github.com/users/SkygearIO/followers","following_url":"https://api.github.com/users/SkygearIO/following{/other_user}","gists_url":"https://api.github.com/users/SkygearIO/gists{/gist_id}","starred_url":"https://api.github.com/users/SkygearIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SkygearIO/subscriptions","organizations_url":"https://api.github.com/users/SkygearIO/orgs","repos_url":"https://api.github.com/users/SkygearIO/repos","events_url":"https://api.github.com/users/SkygearIO/events{/privacy}","received_events_url":"https://api.github.com/users/SkygearIO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SkygearIO/skygear-server","description":"Skygear Server - Open-source Mobile Backend, making app development easier.","fork":false,"url":"https://api.github.com/repos/SkygearIO/skygear-server","forks_url":"https://api.github.com/repos/SkygearIO/skygear-server/forks","keys_url":"https://api.github.com/repos/SkygearIO/skygear-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SkygearIO/skygear-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SkygearIO/skygear-server/teams","hooks_url":"https://api.github.com/repos/SkygearIO/skygear-server/hooks","issue_events_url":"https://api.github.com/repos/SkygearIO/skygear-server/issues/events{/number}","events_url":"https://api.github.com/repos/SkygearIO/skygear-server/events","assignees_url":"https://api.github.com/repos/SkygearIO/skygear-server/assignees{/user}","branches_url":"https://api.github.com/repos/SkygearIO/skygear-server/branches{/branch}","tags_url":"https://api.github.com/repos/SkygearIO/skygear-server/tags","blobs_url":"https://api.github.com/repos/SkygearIO/skygear-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SkygearIO/skygear-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SkygearIO/skygear-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/SkygearIO/skygear-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SkygearIO/skygear-server/statuses/{sha}","languages_url":"https://api.github.com/repos/SkygearIO/skygear-server/languages","stargazers_url":"https://api.github.com/repos/SkygearIO/skygear-server/stargazers","contributors_url":"https://api.github.com/repos/SkygearIO/skygear-server/contributors","subscribers_url":"https://api.github.com/repos/SkygearIO/skygear-server/subscribers","subscription_url":"https://api.github.com/repos/SkygearIO/skygear-server/subscription","commits_url":"https://api.github.com/repos/SkygearIO/skygear-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/SkygearIO/skygear-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/SkygearIO/skygear-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/SkygearIO/skygear-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/SkygearIO/skygear-server/contents/{+path}","compare_url":"https://api.github.com/repos/SkygearIO/skygear-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SkygearIO/skygear-server/merges","archive_url":"https://api.github.com/repos/SkygearIO/skygear-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SkygearIO/skygear-server/downloads","issues_url":"https://api.github.com/repos/SkygearIO/skygear-server/issues{/number}","pulls_url":"https://api.github.com/repos/SkygearIO/skygear-server/pulls{/number}","milestones_url":"https://api.github.com/repos/SkygearIO/skygear-server/milestones{/number}","notifications_url":"https://api.github.com/repos/SkygearIO/skygear-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SkygearIO/skygear-server/labels{/name}","releases_url":"https://api.github.com/repos/SkygearIO/skygear-server/releases{/id}","deployments_url":"https://api.github.com/repos/SkygearIO/skygear-server/deployments","created_at":"2016-03-17T09:48:42Z","updated_at":"2016-11-05T09:34:07Z","pushed_at":"2016-11-07T08:08:40Z","git_url":"git://github.com/SkygearIO/skygear-server.git","ssh_url":"git@github.com:SkygearIO/skygear-server.git","clone_url":"https://github.com/SkygearIO/skygear-server.git","svn_url":"https://github.com/SkygearIO/skygear-server","homepage":"https://skygear.io","size":1751,"stargazers_count":69,"watchers_count":69,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":24,"forks":15,"open_issues":24,"watchers":69,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SkygearIO/skygear-server/pulls/215"},"html":{"href":"https://github.com/SkygearIO/skygear-server/pull/215"},"issue":{"href":"https://api.github.com/repos/SkygearIO/skygear-server/issues/215"},"comments":{"href":"https://api.github.com/repos/SkygearIO/skygear-server/issues/215/comments"},"review_comments":{"href":"https://api.github.com/repos/SkygearIO/skygear-server/pulls/215/comments"},"review_comment":{"href":"https://api.github.com/repos/SkygearIO/skygear-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SkygearIO/skygear-server/pulls/215/commits"},"statuses":{"href":"https://api.github.com/repos/SkygearIO/skygear-server/statuses/c24c83f3797557387f8b2931aa5287c51d0b1412"}}}}
{"actor":{"display_login":"ben181231"}}