{"action":"created","comment":{"url":"https://api.github.com/repos/onaio/onadata/pulls/comments/229933612","pull_request_review_id":170550196,"id":229933612,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTkzMzYxMg==","diff_hunk":"@@ -383,7 +383,14 @@ def __init__(self, username, id_string, filter_query=None,\n                  include_images=False, include_hxl=False,\n                  win_excel_utf8=False, total_records=None,\n                  index_tags=DEFAULT_INDEX_TAGS, value_select_multiples=False,\n-                 show_choice_labels=False, language=None):\n+                 show_choice_labels=False, language=None,\n+                 include_review=False):\n+\n+        if include_review:\n+            if not all(\n+                elem in self.ADDITIONAL_COLUMNS for elem in [REVIEW_STATUS,","path":"onadata/libs/utils/csv_builder.py","position":19,"original_position":19,"commit_id":"9549824fba478ab4fc6d20c8ec219fadd312091e","original_commit_id":"9549824fba478ab4fc6d20c8ec219fadd312091e","user":{"login":"ukanga","id":85585,"node_id":"MDQ6VXNlcjg1NTg1","avatar_url":"https://avatars0.githubusercontent.com/u/85585?v=4","gravatar_id":"","url":"https://api.github.com/users/ukanga","html_url":"https://github.com/ukanga","followers_url":"https://api.github.com/users/ukanga/followers","following_url":"https://api.github.com/users/ukanga/following{/other_user}","gists_url":"https://api.github.com/users/ukanga/gists{/gist_id}","starred_url":"https://api.github.com/users/ukanga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ukanga/subscriptions","organizations_url":"https://api.github.com/users/ukanga/orgs","repos_url":"https://api.github.com/users/ukanga/repos","events_url":"https://api.github.com/users/ukanga/events{/privacy}","received_events_url":"https://api.github.com/users/ukanga/received_events","type":"User","site_admin":false},"body":"Are there situations where the review fields would have been included?","created_at":"2018-11-01T04:00:29Z","updated_at":"2018-11-01T04:18:29Z","html_url":"https://github.com/onaio/onadata/pull/1488#discussion_r229933612","pull_request_url":"https://api.github.com/repos/onaio/onadata/pulls/1488","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/onaio/onadata/pulls/comments/229933612"},"html":{"href":"https://github.com/onaio/onadata/pull/1488#discussion_r229933612"},"pull_request":{"href":"https://api.github.com/repos/onaio/onadata/pulls/1488"}}},"pull_request":{"url":"https://api.github.com/repos/onaio/onadata/pulls/1488","id":222081044,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyMDgxMDQ0","html_url":"https://github.com/onaio/onadata/pull/1488","diff_url":"https://github.com/onaio/onadata/pull/1488.diff","patch_url":"https://github.com/onaio/onadata/pull/1488.patch","issue_url":"https://api.github.com/repos/onaio/onadata/issues/1488","number":1488,"state":"open","locked":false,"title":"Add submission fields to data exports","user":{"login":"kahummer","id":16018123,"node_id":"MDQ6VXNlcjE2MDE4MTIz","avatar_url":"https://avatars1.githubusercontent.com/u/16018123?v=4","gravatar_id":"","url":"https://api.github.com/users/kahummer","html_url":"https://github.com/kahummer","followers_url":"https://api.github.com/users/kahummer/followers","following_url":"https://api.github.com/users/kahummer/following{/other_user}","gists_url":"https://api.github.com/users/kahummer/gists{/gist_id}","starred_url":"https://api.github.com/users/kahummer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kahummer/subscriptions","organizations_url":"https://api.github.com/users/kahummer/orgs","repos_url":"https://api.github.com/users/kahummer/repos","events_url":"https://api.github.com/users/kahummer/events{/privacy}","received_events_url":"https://api.github.com/users/kahummer/received_events","type":"User","site_admin":false},"body":"Upon include_review \r\nAdd submission review fields to data exports\r\n\r\n**Milestone** \r\n- Having this fields should be optional depending on the form\r\n- Addition of this fields should be handled at form level\r\nFixes #1477 ","created_at":"2018-10-11T10:13:52Z","updated_at":"2018-11-01T04:18:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"158d2f4a6e36ac2f6ac53401542604233da42626","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Wambere","id":700719,"node_id":"MDQ6VXNlcjcwMDcxOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/700719?v=4","gravatar_id":"","url":"https://api.github.com/users/Wambere","html_url":"https://github.com/Wambere","followers_url":"https://api.github.com/users/Wambere/followers","following_url":"https://api.github.com/users/Wambere/following{/other_user}","gists_url":"https://api.github.com/users/Wambere/gists{/gist_id}","starred_url":"https://api.github.com/users/Wambere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wambere/subscriptions","organizations_url":"https://api.github.com/users/Wambere/orgs","repos_url":"https://api.github.com/users/Wambere/repos","events_url":"https://api.github.com/users/Wambere/events{/privacy}","received_events_url":"https://api.github.com/users/Wambere/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/onaio/onadata/pulls/1488/commits","review_comments_url":"https://api.github.com/repos/onaio/onadata/pulls/1488/comments","review_comment_url":"https://api.github.com/repos/onaio/onadata/pulls/comments{/number}","comments_url":"https://api.github.com/repos/onaio/onadata/issues/1488/comments","statuses_url":"https://api.github.com/repos/onaio/onadata/statuses/9549824fba478ab4fc6d20c8ec219fadd312091e","head":{"label":"onaio:add_status_comments_to_exports","ref":"add_status_comments_to_exports","sha":"9549824fba478ab4fc6d20c8ec219fadd312091e","user":{"login":"onaio","id":5450613,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTA2MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5450613?v=4","gravatar_id":"","url":"https://api.github.com/users/onaio","html_url":"https://github.com/onaio","followers_url":"https://api.github.com/users/onaio/followers","following_url":"https://api.github.com/users/onaio/following{/other_user}","gists_url":"https://api.github.com/users/onaio/gists{/gist_id}","starred_url":"https://api.github.com/users/onaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onaio/subscriptions","organizations_url":"https://api.github.com/users/onaio/orgs","repos_url":"https://api.github.com/users/onaio/repos","events_url":"https://api.github.com/users/onaio/events{/privacy}","received_events_url":"https://api.github.com/users/onaio/received_events","type":"Organization","site_admin":false},"repo":{"id":12888897,"node_id":"MDEwOlJlcG9zaXRvcnkxMjg4ODg5Nw==","name":"onadata","full_name":"onaio/onadata","private":false,"owner":{"login":"onaio","id":5450613,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTA2MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5450613?v=4","gravatar_id":"","url":"https://api.github.com/users/onaio","html_url":"https://github.com/onaio","followers_url":"https://api.github.com/users/onaio/followers","following_url":"https://api.github.com/users/onaio/following{/other_user}","gists_url":"https://api.github.com/users/onaio/gists{/gist_id}","starred_url":"https://api.github.com/users/onaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onaio/subscriptions","organizations_url":"https://api.github.com/users/onaio/orgs","repos_url":"https://api.github.com/users/onaio/repos","events_url":"https://api.github.com/users/onaio/events{/privacy}","received_events_url":"https://api.github.com/users/onaio/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/onaio/onadata","description":"Collect, Analyze and Share","fork":false,"url":"https://api.github.com/repos/onaio/onadata","forks_url":"https://api.github.com/repos/onaio/onadata/forks","keys_url":"https://api.github.com/repos/onaio/onadata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onaio/onadata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onaio/onadata/teams","hooks_url":"https://api.github.com/repos/onaio/onadata/hooks","issue_events_url":"https://api.github.com/repos/onaio/onadata/issues/events{/number}","events_url":"https://api.github.com/repos/onaio/onadata/events","assignees_url":"https://api.github.com/repos/onaio/onadata/assignees{/user}","branches_url":"https://api.github.com/repos/onaio/onadata/branches{/branch}","tags_url":"https://api.github.com/repos/onaio/onadata/tags","blobs_url":"https://api.github.com/repos/onaio/onadata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onaio/onadata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onaio/onadata/git/refs{/sha}","trees_url":"https://api.github.com/repos/onaio/onadata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onaio/onadata/statuses/{sha}","languages_url":"https://api.github.com/repos/onaio/onadata/languages","stargazers_url":"https://api.github.com/repos/onaio/onadata/stargazers","contributors_url":"https://api.github.com/repos/onaio/onadata/contributors","subscribers_url":"https://api.github.com/repos/onaio/onadata/subscribers","subscription_url":"https://api.github.com/repos/onaio/onadata/subscription","commits_url":"https://api.github.com/repos/onaio/onadata/commits{/sha}","git_commits_url":"https://api.github.com/repos/onaio/onadata/git/commits{/sha}","comments_url":"https://api.github.com/repos/onaio/onadata/comments{/number}","issue_comment_url":"https://api.github.com/repos/onaio/onadata/issues/comments{/number}","contents_url":"https://api.github.com/repos/onaio/onadata/contents/{+path}","compare_url":"https://api.github.com/repos/onaio/onadata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onaio/onadata/merges","archive_url":"https://api.github.com/repos/onaio/onadata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onaio/onadata/downloads","issues_url":"https://api.github.com/repos/onaio/onadata/issues{/number}","pulls_url":"https://api.github.com/repos/onaio/onadata/pulls{/number}","milestones_url":"https://api.github.com/repos/onaio/onadata/milestones{/number}","notifications_url":"https://api.github.com/repos/onaio/onadata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onaio/onadata/labels{/name}","releases_url":"https://api.github.com/repos/onaio/onadata/releases{/id}","deployments_url":"https://api.github.com/repos/onaio/onadata/deployments","created_at":"2013-09-17T07:25:01Z","updated_at":"2018-10-21T07:57:17Z","pushed_at":"2018-10-31T14:30:06Z","git_url":"git://github.com/onaio/onadata.git","ssh_url":"git@github.com:onaio/onadata.git","clone_url":"https://github.com/onaio/onadata.git","svn_url":"https://github.com/onaio/onadata","homepage":"https://ona.io","size":31352,"stargazers_count":138,"watchers_count":138,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":100,"mirror_url":null,"archived":false,"open_issues_count":128,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":100,"open_issues":128,"watchers":138,"default_branch":"master"}},"base":{"label":"onaio:master","ref":"master","sha":"07c89ef9a6039035ccabc35e384aa216cd9cfb82","user":{"login":"onaio","id":5450613,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTA2MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5450613?v=4","gravatar_id":"","url":"https://api.github.com/users/onaio","html_url":"https://github.com/onaio","followers_url":"https://api.github.com/users/onaio/followers","following_url":"https://api.github.com/users/onaio/following{/other_user}","gists_url":"https://api.github.com/users/onaio/gists{/gist_id}","starred_url":"https://api.github.com/users/onaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onaio/subscriptions","organizations_url":"https://api.github.com/users/onaio/orgs","repos_url":"https://api.github.com/users/onaio/repos","events_url":"https://api.github.com/users/onaio/events{/privacy}","received_events_url":"https://api.github.com/users/onaio/received_events","type":"Organization","site_admin":false},"repo":{"id":12888897,"node_id":"MDEwOlJlcG9zaXRvcnkxMjg4ODg5Nw==","name":"onadata","full_name":"onaio/onadata","private":false,"owner":{"login":"onaio","id":5450613,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTA2MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/5450613?v=4","gravatar_id":"","url":"https://api.github.com/users/onaio","html_url":"https://github.com/onaio","followers_url":"https://api.github.com/users/onaio/followers","following_url":"https://api.github.com/users/onaio/following{/other_user}","gists_url":"https://api.github.com/users/onaio/gists{/gist_id}","starred_url":"https://api.github.com/users/onaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onaio/subscriptions","organizations_url":"https://api.github.com/users/onaio/orgs","repos_url":"https://api.github.com/users/onaio/repos","events_url":"https://api.github.com/users/onaio/events{/privacy}","received_events_url":"https://api.github.com/users/onaio/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/onaio/onadata","description":"Collect, Analyze and Share","fork":false,"url":"https://api.github.com/repos/onaio/onadata","forks_url":"https://api.github.com/repos/onaio/onadata/forks","keys_url":"https://api.github.com/repos/onaio/onadata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onaio/onadata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onaio/onadata/teams","hooks_url":"https://api.github.com/repos/onaio/onadata/hooks","issue_events_url":"https://api.github.com/repos/onaio/onadata/issues/events{/number}","events_url":"https://api.github.com/repos/onaio/onadata/events","assignees_url":"https://api.github.com/repos/onaio/onadata/assignees{/user}","branches_url":"https://api.github.com/repos/onaio/onadata/branches{/branch}","tags_url":"https://api.github.com/repos/onaio/onadata/tags","blobs_url":"https://api.github.com/repos/onaio/onadata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onaio/onadata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onaio/onadata/git/refs{/sha}","trees_url":"https://api.github.com/repos/onaio/onadata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onaio/onadata/statuses/{sha}","languages_url":"https://api.github.com/repos/onaio/onadata/languages","stargazers_url":"https://api.github.com/repos/onaio/onadata/stargazers","contributors_url":"https://api.github.com/repos/onaio/onadata/contributors","subscribers_url":"https://api.github.com/repos/onaio/onadata/subscribers","subscription_url":"https://api.github.com/repos/onaio/onadata/subscription","commits_url":"https://api.github.com/repos/onaio/onadata/commits{/sha}","git_commits_url":"https://api.github.com/repos/onaio/onadata/git/commits{/sha}","comments_url":"https://api.github.com/repos/onaio/onadata/comments{/number}","issue_comment_url":"https://api.github.com/repos/onaio/onadata/issues/comments{/number}","contents_url":"https://api.github.com/repos/onaio/onadata/contents/{+path}","compare_url":"https://api.github.com/repos/onaio/onadata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onaio/onadata/merges","archive_url":"https://api.github.com/repos/onaio/onadata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onaio/onadata/downloads","issues_url":"https://api.github.com/repos/onaio/onadata/issues{/number}","pulls_url":"https://api.github.com/repos/onaio/onadata/pulls{/number}","milestones_url":"https://api.github.com/repos/onaio/onadata/milestones{/number}","notifications_url":"https://api.github.com/repos/onaio/onadata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onaio/onadata/labels{/name}","releases_url":"https://api.github.com/repos/onaio/onadata/releases{/id}","deployments_url":"https://api.github.com/repos/onaio/onadata/deployments","created_at":"2013-09-17T07:25:01Z","updated_at":"2018-10-21T07:57:17Z","pushed_at":"2018-10-31T14:30:06Z","git_url":"git://github.com/onaio/onadata.git","ssh_url":"git@github.com:onaio/onadata.git","clone_url":"https://github.com/onaio/onadata.git","svn_url":"https://github.com/onaio/onadata","homepage":"https://ona.io","size":31352,"stargazers_count":138,"watchers_count":138,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":100,"mirror_url":null,"archived":false,"open_issues_count":128,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":100,"open_issues":128,"watchers":138,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/onaio/onadata/pulls/1488"},"html":{"href":"https://github.com/onaio/onadata/pull/1488"},"issue":{"href":"https://api.github.com/repos/onaio/onadata/issues/1488"},"comments":{"href":"https://api.github.com/repos/onaio/onadata/issues/1488/comments"},"review_comments":{"href":"https://api.github.com/repos/onaio/onadata/pulls/1488/comments"},"review_comment":{"href":"https://api.github.com/repos/onaio/onadata/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/onaio/onadata/pulls/1488/commits"},"statuses":{"href":"https://api.github.com/repos/onaio/onadata/statuses/9549824fba478ab4fc6d20c8ec219fadd312091e"}},"author_association":"NONE"}}
{"actor":{"display_login":"ukanga"}}