{"action":"closed","number":3,"pull_request":{"url":"https://api.github.com/repos/pocket-playlab/optimus-prime/pulls/3","id":35400793,"html_url":"https://github.com/pocket-playlab/optimus-prime/pull/3","diff_url":"https://github.com/pocket-playlab/optimus-prime/pull/3.diff","patch_url":"https://github.com/pocket-playlab/optimus-prime/pull/3.patch","issue_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/issues/3","number":3,"state":"closed","locked":false,"title":"BigQuery Nested-Fields String Transformer","user":{"login":"Anumodana","id":1274899,"avatar_url":"https://avatars.githubusercontent.com/u/1274899?v=3","gravatar_id":"","url":"https://api.github.com/users/Anumodana","html_url":"https://github.com/Anumodana","followers_url":"https://api.github.com/users/Anumodana/followers","following_url":"https://api.github.com/users/Anumodana/following{/other_user}","gists_url":"https://api.github.com/users/Anumodana/gists{/gist_id}","starred_url":"https://api.github.com/users/Anumodana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anumodana/subscriptions","organizations_url":"https://api.github.com/users/Anumodana/orgs","repos_url":"https://api.github.com/users/Anumodana/repos","events_url":"https://api.github.com/users/Anumodana/events{/privacy}","received_events_url":"https://api.github.com/users/Anumodana/received_events","type":"User","site_admin":false},"body":"This class accepts a hash object and converts one level nested-fields string to an array of hash for preparing data before inserting into Google BigQuery.\r\n\r\n### Example:\r\n\r\n#### record:\r\n\r\n    {\r\n      'field1' => 'value',\r\n      'field2' => \"{\\\"id\\\":298,\\\"type\\\":\\\"sms\\\",\\\"cost\\\":2}\\n\",\r\n      'field3' => \"{\\\"id\\\":299,\\\"type\\\":\\\"mms\\\",\\\"cost\\\":5}\\n\"\r\n    }\r\n\r\n#### keys:\r\n\r\n    [\"field2\", \"field3\"]\r\n\r\n#### output:\r\n\r\n    {\r\n      'field1' => 'value',\r\n      'field2' => [{ 'id' => 298, 'type' => 'sms', 'cost' => 2 }],\r\n      'field3' => [{ 'id' => 299, 'type' => 'mms', 'cost' => 5 }]\r\n    }","created_at":"2015-05-14T07:43:05Z","updated_at":"2015-05-14T09:39:25Z","closed_at":"2015-05-14T09:39:25Z","merged_at":"2015-05-14T09:39:25Z","merge_commit_sha":"4f602ae4d4fb278b3bde4b09270c1cb2287d1b4f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/pulls/3/commits","review_comments_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/pulls/3/comments","review_comment_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/issues/3/comments","statuses_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/statuses/76ca30775983b56dc7ef1d006846e1820fb60c05","head":{"label":"pocket-playlab:nested-data-string-transformer","ref":"nested-data-string-transformer","sha":"76ca30775983b56dc7ef1d006846e1820fb60c05","user":{"login":"pocket-playlab","id":6857738,"avatar_url":"https://avatars.githubusercontent.com/u/6857738?v=3","gravatar_id":"","url":"https://api.github.com/users/pocket-playlab","html_url":"https://github.com/pocket-playlab","followers_url":"https://api.github.com/users/pocket-playlab/followers","following_url":"https://api.github.com/users/pocket-playlab/following{/other_user}","gists_url":"https://api.github.com/users/pocket-playlab/gists{/gist_id}","starred_url":"https://api.github.com/users/pocket-playlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pocket-playlab/subscriptions","organizations_url":"https://api.github.com/users/pocket-playlab/orgs","repos_url":"https://api.github.com/users/pocket-playlab/repos","events_url":"https://api.github.com/users/pocket-playlab/events{/privacy}","received_events_url":"https://api.github.com/users/pocket-playlab/received_events","type":"Organization","site_admin":false},"repo":{"id":34781131,"name":"optimus-prime","full_name":"pocket-playlab/optimus-prime","owner":{"login":"pocket-playlab","id":6857738,"avatar_url":"https://avatars.githubusercontent.com/u/6857738?v=3","gravatar_id":"","url":"https://api.github.com/users/pocket-playlab","html_url":"https://github.com/pocket-playlab","followers_url":"https://api.github.com/users/pocket-playlab/followers","following_url":"https://api.github.com/users/pocket-playlab/following{/other_user}","gists_url":"https://api.github.com/users/pocket-playlab/gists{/gist_id}","starred_url":"https://api.github.com/users/pocket-playlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pocket-playlab/subscriptions","organizations_url":"https://api.github.com/users/pocket-playlab/orgs","repos_url":"https://api.github.com/users/pocket-playlab/repos","events_url":"https://api.github.com/users/pocket-playlab/events{/privacy}","received_events_url":"https://api.github.com/users/pocket-playlab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pocket-playlab/optimus-prime","description":"alpha ETL framework","fork":false,"url":"https://api.github.com/repos/pocket-playlab/optimus-prime","forks_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/forks","keys_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/teams","hooks_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/hooks","issue_events_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/issues/events{/number}","events_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/events","assignees_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/assignees{/user}","branches_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/branches{/branch}","tags_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/tags","blobs_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/git/refs{/sha}","trees_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/statuses/{sha}","languages_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/languages","stargazers_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/stargazers","contributors_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/contributors","subscribers_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/subscribers","subscription_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/subscription","commits_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/commits{/sha}","git_commits_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/git/commits{/sha}","comments_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/comments{/number}","issue_comment_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/issues/comments{/number}","contents_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/contents/{+path}","compare_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/merges","archive_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/downloads","issues_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/issues{/number}","pulls_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/pulls{/number}","milestones_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/milestones{/number}","notifications_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/labels{/name}","releases_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/releases{/id}","created_at":"2015-04-29T08:14:23Z","updated_at":"2015-04-30T09:50:02Z","pushed_at":"2015-05-14T09:39:25Z","git_url":"git://github.com/pocket-playlab/optimus-prime.git","ssh_url":"git@github.com:pocket-playlab/optimus-prime.git","clone_url":"https://github.com/pocket-playlab/optimus-prime.git","svn_url":"https://github.com/pocket-playlab/optimus-prime","homepage":"","size":1412,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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":"pocket-playlab:master","ref":"master","sha":"25731df6f9cd7f8159023a6591cab2d389ab6b9c","user":{"login":"pocket-playlab","id":6857738,"avatar_url":"https://avatars.githubusercontent.com/u/6857738?v=3","gravatar_id":"","url":"https://api.github.com/users/pocket-playlab","html_url":"https://github.com/pocket-playlab","followers_url":"https://api.github.com/users/pocket-playlab/followers","following_url":"https://api.github.com/users/pocket-playlab/following{/other_user}","gists_url":"https://api.github.com/users/pocket-playlab/gists{/gist_id}","starred_url":"https://api.github.com/users/pocket-playlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pocket-playlab/subscriptions","organizations_url":"https://api.github.com/users/pocket-playlab/orgs","repos_url":"https://api.github.com/users/pocket-playlab/repos","events_url":"https://api.github.com/users/pocket-playlab/events{/privacy}","received_events_url":"https://api.github.com/users/pocket-playlab/received_events","type":"Organization","site_admin":false},"repo":{"id":34781131,"name":"optimus-prime","full_name":"pocket-playlab/optimus-prime","owner":{"login":"pocket-playlab","id":6857738,"avatar_url":"https://avatars.githubusercontent.com/u/6857738?v=3","gravatar_id":"","url":"https://api.github.com/users/pocket-playlab","html_url":"https://github.com/pocket-playlab","followers_url":"https://api.github.com/users/pocket-playlab/followers","following_url":"https://api.github.com/users/pocket-playlab/following{/other_user}","gists_url":"https://api.github.com/users/pocket-playlab/gists{/gist_id}","starred_url":"https://api.github.com/users/pocket-playlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pocket-playlab/subscriptions","organizations_url":"https://api.github.com/users/pocket-playlab/orgs","repos_url":"https://api.github.com/users/pocket-playlab/repos","events_url":"https://api.github.com/users/pocket-playlab/events{/privacy}","received_events_url":"https://api.github.com/users/pocket-playlab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pocket-playlab/optimus-prime","description":"alpha ETL framework","fork":false,"url":"https://api.github.com/repos/pocket-playlab/optimus-prime","forks_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/forks","keys_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/teams","hooks_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/hooks","issue_events_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/issues/events{/number}","events_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/events","assignees_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/assignees{/user}","branches_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/branches{/branch}","tags_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/tags","blobs_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/git/refs{/sha}","trees_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/statuses/{sha}","languages_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/languages","stargazers_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/stargazers","contributors_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/contributors","subscribers_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/subscribers","subscription_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/subscription","commits_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/commits{/sha}","git_commits_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/git/commits{/sha}","comments_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/comments{/number}","issue_comment_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/issues/comments{/number}","contents_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/contents/{+path}","compare_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/merges","archive_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/downloads","issues_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/issues{/number}","pulls_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/pulls{/number}","milestones_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/milestones{/number}","notifications_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/labels{/name}","releases_url":"https://api.github.com/repos/pocket-playlab/optimus-prime/releases{/id}","created_at":"2015-04-29T08:14:23Z","updated_at":"2015-04-30T09:50:02Z","pushed_at":"2015-05-14T09:39:25Z","git_url":"git://github.com/pocket-playlab/optimus-prime.git","ssh_url":"git@github.com:pocket-playlab/optimus-prime.git","clone_url":"https://github.com/pocket-playlab/optimus-prime.git","svn_url":"https://github.com/pocket-playlab/optimus-prime","homepage":"","size":1412,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/pocket-playlab/optimus-prime/pulls/3"},"html":{"href":"https://github.com/pocket-playlab/optimus-prime/pull/3"},"issue":{"href":"https://api.github.com/repos/pocket-playlab/optimus-prime/issues/3"},"comments":{"href":"https://api.github.com/repos/pocket-playlab/optimus-prime/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/pocket-playlab/optimus-prime/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/pocket-playlab/optimus-prime/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pocket-playlab/optimus-prime/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/pocket-playlab/optimus-prime/statuses/76ca30775983b56dc7ef1d006846e1820fb60c05"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"Anumodana","id":1274899,"avatar_url":"https://avatars.githubusercontent.com/u/1274899?v=3","gravatar_id":"","url":"https://api.github.com/users/Anumodana","html_url":"https://github.com/Anumodana","followers_url":"https://api.github.com/users/Anumodana/followers","following_url":"https://api.github.com/users/Anumodana/following{/other_user}","gists_url":"https://api.github.com/users/Anumodana/gists{/gist_id}","starred_url":"https://api.github.com/users/Anumodana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anumodana/subscriptions","organizations_url":"https://api.github.com/users/Anumodana/orgs","repos_url":"https://api.github.com/users/Anumodana/repos","events_url":"https://api.github.com/users/Anumodana/events{/privacy}","received_events_url":"https://api.github.com/users/Anumodana/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":5,"additions":160,"deletions":0,"changed_files":2}}