{"action":"created","comment":{"url":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/comments/206316905","pull_request_review_id":141710511,"id":206316905,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNjMxNjkwNQ==","diff_hunk":"@@ -1,10 +1,24 @@\n import connexion\n import six\n+import json\n \n from flask import current_app\n \n from data_explorer.models.export_url_response import ExportUrlResponse  # noqa: E501\n \n \n def export_url_post():  # noqa: E501\n-    return ExportUrlResponse(url='EXPORT_URL')\n+    requests = []\n+    for table_name in current_app.config['TABLE_NAMES']:\n+        # Treat table names as BigQuery tables if they conform to project_id.dataset.table_id\n+        if len(table_name.split(\".\")) == 3:\n+            requests.append(\n+                json.dumps({\n+                    \"name\": table_name.split(\".\")[2],\n+                    \"entityType\": \"BigQueryTables\",","path":"api/data_explorer/controllers/export_url_controller.py","position":19,"original_position":19,"commit_id":"3779269ce9f1ee39afefba9e0dc8a5fadf45c2cb","original_commit_id":"3779269ce9f1ee39afefba9e0dc8a5fadf45c2cb","user":{"login":"melissachang","id":10929390,"node_id":"MDQ6VXNlcjEwOTI5Mzkw","avatar_url":"https://avatars1.githubusercontent.com/u/10929390?v=4","gravatar_id":"","url":"https://api.github.com/users/melissachang","html_url":"https://github.com/melissachang","followers_url":"https://api.github.com/users/melissachang/followers","following_url":"https://api.github.com/users/melissachang/following{/other_user}","gists_url":"https://api.github.com/users/melissachang/gists{/gist_id}","starred_url":"https://api.github.com/users/melissachang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melissachang/subscriptions","organizations_url":"https://api.github.com/users/melissachang/orgs","repos_url":"https://api.github.com/users/melissachang/repos","events_url":"https://api.github.com/users/melissachang/events{/privacy}","received_events_url":"https://api.github.com/users/melissachang/received_events","type":"User","site_admin":false},"body":"We can call this whatever we want. Saturn doesn't care if it's \"BigQueryTables\" or \"BigQuery table\". I chose \"BigQuery table\" to be consistent with current Saturn/FireCloud naming (\"participant\", \"sample\").","created_at":"2018-07-30T20:51:00Z","updated_at":"2018-07-30T20:51:06Z","html_url":"https://github.com/DataBiosphere/data-explorer/pull/114#discussion_r206316905","pull_request_url":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/114","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/comments/206316905"},"html":{"href":"https://github.com/DataBiosphere/data-explorer/pull/114#discussion_r206316905"},"pull_request":{"href":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/114"}}},"pull_request":{"url":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/114","id":204915318,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0OTE1MzE4","html_url":"https://github.com/DataBiosphere/data-explorer/pull/114","diff_url":"https://github.com/DataBiosphere/data-explorer/pull/114.diff","patch_url":"https://github.com/DataBiosphere/data-explorer/pull/114.patch","issue_url":"https://api.github.com/repos/DataBiosphere/data-explorer/issues/114","number":114,"state":"open","locked":false,"title":"Convert table names to request json and set up tests","user":{"login":"alahwa","id":6598882,"node_id":"MDQ6VXNlcjY1OTg4ODI=","avatar_url":"https://avatars0.githubusercontent.com/u/6598882?v=4","gravatar_id":"","url":"https://api.github.com/users/alahwa","html_url":"https://github.com/alahwa","followers_url":"https://api.github.com/users/alahwa/followers","following_url":"https://api.github.com/users/alahwa/following{/other_user}","gists_url":"https://api.github.com/users/alahwa/gists{/gist_id}","starred_url":"https://api.github.com/users/alahwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alahwa/subscriptions","organizations_url":"https://api.github.com/users/alahwa/orgs","repos_url":"https://api.github.com/users/alahwa/repos","events_url":"https://api.github.com/users/alahwa/events{/privacy}","received_events_url":"https://api.github.com/users/alahwa/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-30T20:07:55Z","updated_at":"2018-07-30T20:51:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30d1c52060b93fef00f6192e52977690092fa001","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/114/commits","review_comments_url":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/114/comments","review_comment_url":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DataBiosphere/data-explorer/issues/114/comments","statuses_url":"https://api.github.com/repos/DataBiosphere/data-explorer/statuses/3779269ce9f1ee39afefba9e0dc8a5fadf45c2cb","head":{"label":"DataBiosphere:ah/export-json","ref":"ah/export-json","sha":"3779269ce9f1ee39afefba9e0dc8a5fadf45c2cb","user":{"login":"DataBiosphere","id":32805087,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyODA1MDg3","avatar_url":"https://avatars0.githubusercontent.com/u/32805087?v=4","gravatar_id":"","url":"https://api.github.com/users/DataBiosphere","html_url":"https://github.com/DataBiosphere","followers_url":"https://api.github.com/users/DataBiosphere/followers","following_url":"https://api.github.com/users/DataBiosphere/following{/other_user}","gists_url":"https://api.github.com/users/DataBiosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/DataBiosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataBiosphere/subscriptions","organizations_url":"https://api.github.com/users/DataBiosphere/orgs","repos_url":"https://api.github.com/users/DataBiosphere/repos","events_url":"https://api.github.com/users/DataBiosphere/events{/privacy}","received_events_url":"https://api.github.com/users/DataBiosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":119908069,"node_id":"MDEwOlJlcG9zaXRvcnkxMTk5MDgwNjk=","name":"data-explorer","full_name":"DataBiosphere/data-explorer","owner":{"login":"DataBiosphere","id":32805087,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyODA1MDg3","avatar_url":"https://avatars0.githubusercontent.com/u/32805087?v=4","gravatar_id":"","url":"https://api.github.com/users/DataBiosphere","html_url":"https://github.com/DataBiosphere","followers_url":"https://api.github.com/users/DataBiosphere/followers","following_url":"https://api.github.com/users/DataBiosphere/following{/other_user}","gists_url":"https://api.github.com/users/DataBiosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/DataBiosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataBiosphere/subscriptions","organizations_url":"https://api.github.com/users/DataBiosphere/orgs","repos_url":"https://api.github.com/users/DataBiosphere/repos","events_url":"https://api.github.com/users/DataBiosphere/events{/privacy}","received_events_url":"https://api.github.com/users/DataBiosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DataBiosphere/data-explorer","description":null,"fork":false,"url":"https://api.github.com/repos/DataBiosphere/data-explorer","forks_url":"https://api.github.com/repos/DataBiosphere/data-explorer/forks","keys_url":"https://api.github.com/repos/DataBiosphere/data-explorer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataBiosphere/data-explorer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataBiosphere/data-explorer/teams","hooks_url":"https://api.github.com/repos/DataBiosphere/data-explorer/hooks","issue_events_url":"https://api.github.com/repos/DataBiosphere/data-explorer/issues/events{/number}","events_url":"https://api.github.com/repos/DataBiosphere/data-explorer/events","assignees_url":"https://api.github.com/repos/DataBiosphere/data-explorer/assignees{/user}","branches_url":"https://api.github.com/repos/DataBiosphere/data-explorer/branches{/branch}","tags_url":"https://api.github.com/repos/DataBiosphere/data-explorer/tags","blobs_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataBiosphere/data-explorer/statuses/{sha}","languages_url":"https://api.github.com/repos/DataBiosphere/data-explorer/languages","stargazers_url":"https://api.github.com/repos/DataBiosphere/data-explorer/stargazers","contributors_url":"https://api.github.com/repos/DataBiosphere/data-explorer/contributors","subscribers_url":"https://api.github.com/repos/DataBiosphere/data-explorer/subscribers","subscription_url":"https://api.github.com/repos/DataBiosphere/data-explorer/subscription","commits_url":"https://api.github.com/repos/DataBiosphere/data-explorer/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataBiosphere/data-explorer/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataBiosphere/data-explorer/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataBiosphere/data-explorer/contents/{+path}","compare_url":"https://api.github.com/repos/DataBiosphere/data-explorer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataBiosphere/data-explorer/merges","archive_url":"https://api.github.com/repos/DataBiosphere/data-explorer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataBiosphere/data-explorer/downloads","issues_url":"https://api.github.com/repos/DataBiosphere/data-explorer/issues{/number}","pulls_url":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls{/number}","milestones_url":"https://api.github.com/repos/DataBiosphere/data-explorer/milestones{/number}","notifications_url":"https://api.github.com/repos/DataBiosphere/data-explorer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataBiosphere/data-explorer/labels{/name}","releases_url":"https://api.github.com/repos/DataBiosphere/data-explorer/releases{/id}","deployments_url":"https://api.github.com/repos/DataBiosphere/data-explorer/deployments","created_at":"2018-02-01T23:53:44Z","updated_at":"2018-07-27T03:59:56Z","pushed_at":"2018-07-30T20:46:18Z","git_url":"git://github.com/DataBiosphere/data-explorer.git","ssh_url":"git@github.com:DataBiosphere/data-explorer.git","clone_url":"https://github.com/DataBiosphere/data-explorer.git","svn_url":"https://github.com/DataBiosphere/data-explorer","homepage":null,"size":526,"stargazers_count":1,"watchers_count":1,"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":9,"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","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":9,"watchers":1,"default_branch":"master"}},"base":{"label":"DataBiosphere:master","ref":"master","sha":"0feb264b979bd2e94e48d87387bebb049814ac30","user":{"login":"DataBiosphere","id":32805087,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyODA1MDg3","avatar_url":"https://avatars0.githubusercontent.com/u/32805087?v=4","gravatar_id":"","url":"https://api.github.com/users/DataBiosphere","html_url":"https://github.com/DataBiosphere","followers_url":"https://api.github.com/users/DataBiosphere/followers","following_url":"https://api.github.com/users/DataBiosphere/following{/other_user}","gists_url":"https://api.github.com/users/DataBiosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/DataBiosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataBiosphere/subscriptions","organizations_url":"https://api.github.com/users/DataBiosphere/orgs","repos_url":"https://api.github.com/users/DataBiosphere/repos","events_url":"https://api.github.com/users/DataBiosphere/events{/privacy}","received_events_url":"https://api.github.com/users/DataBiosphere/received_events","type":"Organization","site_admin":false},"repo":{"id":119908069,"node_id":"MDEwOlJlcG9zaXRvcnkxMTk5MDgwNjk=","name":"data-explorer","full_name":"DataBiosphere/data-explorer","owner":{"login":"DataBiosphere","id":32805087,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyODA1MDg3","avatar_url":"https://avatars0.githubusercontent.com/u/32805087?v=4","gravatar_id":"","url":"https://api.github.com/users/DataBiosphere","html_url":"https://github.com/DataBiosphere","followers_url":"https://api.github.com/users/DataBiosphere/followers","following_url":"https://api.github.com/users/DataBiosphere/following{/other_user}","gists_url":"https://api.github.com/users/DataBiosphere/gists{/gist_id}","starred_url":"https://api.github.com/users/DataBiosphere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataBiosphere/subscriptions","organizations_url":"https://api.github.com/users/DataBiosphere/orgs","repos_url":"https://api.github.com/users/DataBiosphere/repos","events_url":"https://api.github.com/users/DataBiosphere/events{/privacy}","received_events_url":"https://api.github.com/users/DataBiosphere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DataBiosphere/data-explorer","description":null,"fork":false,"url":"https://api.github.com/repos/DataBiosphere/data-explorer","forks_url":"https://api.github.com/repos/DataBiosphere/data-explorer/forks","keys_url":"https://api.github.com/repos/DataBiosphere/data-explorer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataBiosphere/data-explorer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataBiosphere/data-explorer/teams","hooks_url":"https://api.github.com/repos/DataBiosphere/data-explorer/hooks","issue_events_url":"https://api.github.com/repos/DataBiosphere/data-explorer/issues/events{/number}","events_url":"https://api.github.com/repos/DataBiosphere/data-explorer/events","assignees_url":"https://api.github.com/repos/DataBiosphere/data-explorer/assignees{/user}","branches_url":"https://api.github.com/repos/DataBiosphere/data-explorer/branches{/branch}","tags_url":"https://api.github.com/repos/DataBiosphere/data-explorer/tags","blobs_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataBiosphere/data-explorer/statuses/{sha}","languages_url":"https://api.github.com/repos/DataBiosphere/data-explorer/languages","stargazers_url":"https://api.github.com/repos/DataBiosphere/data-explorer/stargazers","contributors_url":"https://api.github.com/repos/DataBiosphere/data-explorer/contributors","subscribers_url":"https://api.github.com/repos/DataBiosphere/data-explorer/subscribers","subscription_url":"https://api.github.com/repos/DataBiosphere/data-explorer/subscription","commits_url":"https://api.github.com/repos/DataBiosphere/data-explorer/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataBiosphere/data-explorer/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataBiosphere/data-explorer/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataBiosphere/data-explorer/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataBiosphere/data-explorer/contents/{+path}","compare_url":"https://api.github.com/repos/DataBiosphere/data-explorer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataBiosphere/data-explorer/merges","archive_url":"https://api.github.com/repos/DataBiosphere/data-explorer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataBiosphere/data-explorer/downloads","issues_url":"https://api.github.com/repos/DataBiosphere/data-explorer/issues{/number}","pulls_url":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls{/number}","milestones_url":"https://api.github.com/repos/DataBiosphere/data-explorer/milestones{/number}","notifications_url":"https://api.github.com/repos/DataBiosphere/data-explorer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataBiosphere/data-explorer/labels{/name}","releases_url":"https://api.github.com/repos/DataBiosphere/data-explorer/releases{/id}","deployments_url":"https://api.github.com/repos/DataBiosphere/data-explorer/deployments","created_at":"2018-02-01T23:53:44Z","updated_at":"2018-07-27T03:59:56Z","pushed_at":"2018-07-30T20:46:18Z","git_url":"git://github.com/DataBiosphere/data-explorer.git","ssh_url":"git@github.com:DataBiosphere/data-explorer.git","clone_url":"https://github.com/DataBiosphere/data-explorer.git","svn_url":"https://github.com/DataBiosphere/data-explorer","homepage":null,"size":526,"stargazers_count":1,"watchers_count":1,"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":9,"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","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/114"},"html":{"href":"https://github.com/DataBiosphere/data-explorer/pull/114"},"issue":{"href":"https://api.github.com/repos/DataBiosphere/data-explorer/issues/114"},"comments":{"href":"https://api.github.com/repos/DataBiosphere/data-explorer/issues/114/comments"},"review_comments":{"href":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/114/comments"},"review_comment":{"href":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DataBiosphere/data-explorer/pulls/114/commits"},"statuses":{"href":"https://api.github.com/repos/DataBiosphere/data-explorer/statuses/3779269ce9f1ee39afefba9e0dc8a5fadf45c2cb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"melissachang"}}