{"action":"opened","number":370,"pull_request":{"url":"https://api.github.com/repos/firebase/functions-samples/pulls/370","id":180316247,"html_url":"https://github.com/firebase/functions-samples/pull/370","diff_url":"https://github.com/firebase/functions-samples/pull/370.diff","patch_url":"https://github.com/firebase/functions-samples/pull/370.patch","issue_url":"https://api.github.com/repos/firebase/functions-samples/issues/370","number":370,"state":"open","locked":false,"title":"remove .original return unexpected result","user":{"login":"sattha","id":10650619,"avatar_url":"https://avatars1.githubusercontent.com/u/10650619?v=4","gravatar_id":"","url":"https://api.github.com/users/sattha","html_url":"https://github.com/sattha","followers_url":"https://api.github.com/users/sattha/followers","following_url":"https://api.github.com/users/sattha/following{/other_user}","gists_url":"https://api.github.com/users/sattha/gists{/gist_id}","starred_url":"https://api.github.com/users/sattha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sattha/subscriptions","organizations_url":"https://api.github.com/users/sattha/orgs","repos_url":"https://api.github.com/users/sattha/repos","events_url":"https://api.github.com/users/sattha/events{/privacy}","received_events_url":"https://api.github.com/users/sattha/received_events","type":"User","site_admin":false},"body":"`snap.data().original; `\r\n\r\nreturn expected result\r\n\r\n`{\"_ref\":{\"_firestore\":{\"grpcMetadata\":{\"_internal_repr\":{\"x-goog-api-client\":[\"gl-node/6.11.5 gccl/0.13.1 grpc/1.10.1\"]}},\"userAgent\":\"gcloud-node-firestore/0.13.1\",\"activeServiceMap_\":{},\"protos\":{},\"_preferTransactions\":true,\"_lastSuccessfulRequest\":null,\"api\":{\"Firestore\":{\"auth\":{\"authClientPromise\":{},\"authClient\":null,\"googleAuthClient\":{\"jsonContent\":null,\"cachedCredential\":null,\"_cachedProjectId\":null},\"config\":{\"scopes\":[\"https://www.googleapis.com/auth/cloud-platform\",\"https://www.googleapis.com/auth/datastore\"],\"projectId\":\"cat-properties\",\"libName\":\"gccl\",\"libVersion\":\"0.13.1\"},\"credentials\":null,\"environment\":{},\"jwtClient\":null,\"projectId\":\"cat-properties\",\"token\":null}}},\"_referencePath\":{\"segments\":[],\"_projectId\":\"cat-properties\",\"_databaseId\":\"(default)\"}},\"_referencePath\":{\"segments\":[\"posts\",\"UZDHKOlyRNW9b9nvmiok\"],\"_projectId\":\"cat-properties\",\"_databaseId\":\"(default)\"}},\"_fieldsProto\":{\"message\":{\"valueType\":\"stringValue\",\"stringValue\":\"textislowercaseจอง\"}},\"_createTime\":\"2018-04-09T09:04:31.282239000Z\",\"_updateTime\":\"2018-04-09T09:04:31.282239000Z\"}`\r\n\r\nremove `.original `make it return correct document data.","created_at":"2018-04-09T13:48:16Z","updated_at":"2018-04-09T13:48:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/firebase/functions-samples/pulls/370/commits","review_comments_url":"https://api.github.com/repos/firebase/functions-samples/pulls/370/comments","review_comment_url":"https://api.github.com/repos/firebase/functions-samples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/firebase/functions-samples/issues/370/comments","statuses_url":"https://api.github.com/repos/firebase/functions-samples/statuses/a227cf7bdd8b42b9e7353b2b5c17cf50852e5a01","head":{"label":"sattha:fix-uppercase-firestore","ref":"fix-uppercase-firestore","sha":"a227cf7bdd8b42b9e7353b2b5c17cf50852e5a01","user":{"login":"sattha","id":10650619,"avatar_url":"https://avatars1.githubusercontent.com/u/10650619?v=4","gravatar_id":"","url":"https://api.github.com/users/sattha","html_url":"https://github.com/sattha","followers_url":"https://api.github.com/users/sattha/followers","following_url":"https://api.github.com/users/sattha/following{/other_user}","gists_url":"https://api.github.com/users/sattha/gists{/gist_id}","starred_url":"https://api.github.com/users/sattha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sattha/subscriptions","organizations_url":"https://api.github.com/users/sattha/orgs","repos_url":"https://api.github.com/users/sattha/repos","events_url":"https://api.github.com/users/sattha/events{/privacy}","received_events_url":"https://api.github.com/users/sattha/received_events","type":"User","site_admin":false},"repo":{"id":128777550,"name":"functions-samples","full_name":"sattha/functions-samples","owner":{"login":"sattha","id":10650619,"avatar_url":"https://avatars1.githubusercontent.com/u/10650619?v=4","gravatar_id":"","url":"https://api.github.com/users/sattha","html_url":"https://github.com/sattha","followers_url":"https://api.github.com/users/sattha/followers","following_url":"https://api.github.com/users/sattha/following{/other_user}","gists_url":"https://api.github.com/users/sattha/gists{/gist_id}","starred_url":"https://api.github.com/users/sattha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sattha/subscriptions","organizations_url":"https://api.github.com/users/sattha/orgs","repos_url":"https://api.github.com/users/sattha/repos","events_url":"https://api.github.com/users/sattha/events{/privacy}","received_events_url":"https://api.github.com/users/sattha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sattha/functions-samples","description":"Collection of sample apps showcasing popular use cases using Cloud Functions for Firebase","fork":true,"url":"https://api.github.com/repos/sattha/functions-samples","forks_url":"https://api.github.com/repos/sattha/functions-samples/forks","keys_url":"https://api.github.com/repos/sattha/functions-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sattha/functions-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sattha/functions-samples/teams","hooks_url":"https://api.github.com/repos/sattha/functions-samples/hooks","issue_events_url":"https://api.github.com/repos/sattha/functions-samples/issues/events{/number}","events_url":"https://api.github.com/repos/sattha/functions-samples/events","assignees_url":"https://api.github.com/repos/sattha/functions-samples/assignees{/user}","branches_url":"https://api.github.com/repos/sattha/functions-samples/branches{/branch}","tags_url":"https://api.github.com/repos/sattha/functions-samples/tags","blobs_url":"https://api.github.com/repos/sattha/functions-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sattha/functions-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sattha/functions-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/sattha/functions-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sattha/functions-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/sattha/functions-samples/languages","stargazers_url":"https://api.github.com/repos/sattha/functions-samples/stargazers","contributors_url":"https://api.github.com/repos/sattha/functions-samples/contributors","subscribers_url":"https://api.github.com/repos/sattha/functions-samples/subscribers","subscription_url":"https://api.github.com/repos/sattha/functions-samples/subscription","commits_url":"https://api.github.com/repos/sattha/functions-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/sattha/functions-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/sattha/functions-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/sattha/functions-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/sattha/functions-samples/contents/{+path}","compare_url":"https://api.github.com/repos/sattha/functions-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sattha/functions-samples/merges","archive_url":"https://api.github.com/repos/sattha/functions-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sattha/functions-samples/downloads","issues_url":"https://api.github.com/repos/sattha/functions-samples/issues{/number}","pulls_url":"https://api.github.com/repos/sattha/functions-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/sattha/functions-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/sattha/functions-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sattha/functions-samples/labels{/name}","releases_url":"https://api.github.com/repos/sattha/functions-samples/releases{/id}","deployments_url":"https://api.github.com/repos/sattha/functions-samples/deployments","created_at":"2018-04-09T13:37:28Z","updated_at":"2018-04-09T13:37:31Z","pushed_at":"2018-04-09T13:44:01Z","git_url":"git://github.com/sattha/functions-samples.git","ssh_url":"git@github.com:sattha/functions-samples.git","clone_url":"https://github.com/sattha/functions-samples.git","svn_url":"https://github.com/sattha/functions-samples","homepage":"https://firebase.google.com/docs/functions","size":3191,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"firebase:master","ref":"master","sha":"88c2e32567538054cfcaaeb6fa3a61e0d9dcc4c7","user":{"login":"firebase","id":1335026,"avatar_url":"https://avatars2.githubusercontent.com/u/1335026?v=4","gravatar_id":"","url":"https://api.github.com/users/firebase","html_url":"https://github.com/firebase","followers_url":"https://api.github.com/users/firebase/followers","following_url":"https://api.github.com/users/firebase/following{/other_user}","gists_url":"https://api.github.com/users/firebase/gists{/gist_id}","starred_url":"https://api.github.com/users/firebase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firebase/subscriptions","organizations_url":"https://api.github.com/users/firebase/orgs","repos_url":"https://api.github.com/users/firebase/repos","events_url":"https://api.github.com/users/firebase/events{/privacy}","received_events_url":"https://api.github.com/users/firebase/received_events","type":"Organization","site_admin":false},"repo":{"id":71274659,"name":"functions-samples","full_name":"firebase/functions-samples","owner":{"login":"firebase","id":1335026,"avatar_url":"https://avatars2.githubusercontent.com/u/1335026?v=4","gravatar_id":"","url":"https://api.github.com/users/firebase","html_url":"https://github.com/firebase","followers_url":"https://api.github.com/users/firebase/followers","following_url":"https://api.github.com/users/firebase/following{/other_user}","gists_url":"https://api.github.com/users/firebase/gists{/gist_id}","starred_url":"https://api.github.com/users/firebase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firebase/subscriptions","organizations_url":"https://api.github.com/users/firebase/orgs","repos_url":"https://api.github.com/users/firebase/repos","events_url":"https://api.github.com/users/firebase/events{/privacy}","received_events_url":"https://api.github.com/users/firebase/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/firebase/functions-samples","description":"Collection of sample apps showcasing popular use cases using Cloud Functions for Firebase","fork":false,"url":"https://api.github.com/repos/firebase/functions-samples","forks_url":"https://api.github.com/repos/firebase/functions-samples/forks","keys_url":"https://api.github.com/repos/firebase/functions-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/firebase/functions-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/firebase/functions-samples/teams","hooks_url":"https://api.github.com/repos/firebase/functions-samples/hooks","issue_events_url":"https://api.github.com/repos/firebase/functions-samples/issues/events{/number}","events_url":"https://api.github.com/repos/firebase/functions-samples/events","assignees_url":"https://api.github.com/repos/firebase/functions-samples/assignees{/user}","branches_url":"https://api.github.com/repos/firebase/functions-samples/branches{/branch}","tags_url":"https://api.github.com/repos/firebase/functions-samples/tags","blobs_url":"https://api.github.com/repos/firebase/functions-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/firebase/functions-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/firebase/functions-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/firebase/functions-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/firebase/functions-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/firebase/functions-samples/languages","stargazers_url":"https://api.github.com/repos/firebase/functions-samples/stargazers","contributors_url":"https://api.github.com/repos/firebase/functions-samples/contributors","subscribers_url":"https://api.github.com/repos/firebase/functions-samples/subscribers","subscription_url":"https://api.github.com/repos/firebase/functions-samples/subscription","commits_url":"https://api.github.com/repos/firebase/functions-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/firebase/functions-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/firebase/functions-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/firebase/functions-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/firebase/functions-samples/contents/{+path}","compare_url":"https://api.github.com/repos/firebase/functions-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/firebase/functions-samples/merges","archive_url":"https://api.github.com/repos/firebase/functions-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/firebase/functions-samples/downloads","issues_url":"https://api.github.com/repos/firebase/functions-samples/issues{/number}","pulls_url":"https://api.github.com/repos/firebase/functions-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/firebase/functions-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/firebase/functions-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/firebase/functions-samples/labels{/name}","releases_url":"https://api.github.com/repos/firebase/functions-samples/releases{/id}","deployments_url":"https://api.github.com/repos/firebase/functions-samples/deployments","created_at":"2016-10-18T17:40:55Z","updated_at":"2018-04-09T13:20:46Z","pushed_at":"2018-04-07T09:56:14Z","git_url":"git://github.com/firebase/functions-samples.git","ssh_url":"git@github.com:firebase/functions-samples.git","clone_url":"https://github.com/firebase/functions-samples.git","svn_url":"https://github.com/firebase/functions-samples","homepage":"https://firebase.google.com/docs/functions","size":3191,"stargazers_count":3441,"watchers_count":3441,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1065,"mirror_url":null,"archived":false,"open_issues_count":38,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1065,"open_issues":38,"watchers":3441,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/firebase/functions-samples/pulls/370"},"html":{"href":"https://github.com/firebase/functions-samples/pull/370"},"issue":{"href":"https://api.github.com/repos/firebase/functions-samples/issues/370"},"comments":{"href":"https://api.github.com/repos/firebase/functions-samples/issues/370/comments"},"review_comments":{"href":"https://api.github.com/repos/firebase/functions-samples/pulls/370/comments"},"review_comment":{"href":"https://api.github.com/repos/firebase/functions-samples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/firebase/functions-samples/pulls/370/commits"},"statuses":{"href":"https://api.github.com/repos/firebase/functions-samples/statuses/a227cf7bdd8b42b9e7353b2b5c17cf50852e5a01"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"sattha"}}