{"action":"created","comment":{"url":"https://api.github.com/repos/biocore/qiita/pulls/comments/215061168","pull_request_review_id":152246398,"id":215061168,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTA2MTE2OA==","diff_hunk":"@@ -0,0 +1,14 @@\n+# August 31, 2018\n+# Strip any UTF-8 characters that are not also printable ASCII characters\n+# from study titles. As some analysis packages cannot interpret UTF-8\n+# characters, it becomes important to remove them from study titles, as\n+# they are used as metadata/identifiers when creating new analyses.\n+from qiita_db.study import Study\n+from re import sub\n+\n+studies = Study.get_by_status('public')\n+\n+for study in studies:\n+    title = study.title\n+    new_title = sub(r'[^\\x20-\\x7E]+', '', title)","path":"qiita_db/support_files/patches/python_patches/66.py","position":null,"original_position":13,"commit_id":"043f5eb6f0a889d27e44c69360dbf14f5418dfd5","original_commit_id":"f6cfb15c91c550d8b95cb87a691255bfb747c125","user":{"login":"charles-cowart","id":42684307,"node_id":"MDQ6VXNlcjQyNjg0MzA3","avatar_url":"https://avatars2.githubusercontent.com/u/42684307?v=4","gravatar_id":"","url":"https://api.github.com/users/charles-cowart","html_url":"https://github.com/charles-cowart","followers_url":"https://api.github.com/users/charles-cowart/followers","following_url":"https://api.github.com/users/charles-cowart/following{/other_user}","gists_url":"https://api.github.com/users/charles-cowart/gists{/gist_id}","starred_url":"https://api.github.com/users/charles-cowart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charles-cowart/subscriptions","organizations_url":"https://api.github.com/users/charles-cowart/orgs","repos_url":"https://api.github.com/users/charles-cowart/repos","events_url":"https://api.github.com/users/charles-cowart/events{/privacy}","received_events_url":"https://api.github.com/users/charles-cowart/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-09-04T20:46:11Z","updated_at":"2018-09-04T20:46:11Z","html_url":"https://github.com/biocore/qiita/pull/2658#discussion_r215061168","pull_request_url":"https://api.github.com/repos/biocore/qiita/pulls/2658","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/biocore/qiita/pulls/comments/215061168"},"html":{"href":"https://github.com/biocore/qiita/pull/2658#discussion_r215061168"},"pull_request":{"href":"https://api.github.com/repos/biocore/qiita/pulls/2658"}},"in_reply_to_id":215050545},"pull_request":{"url":"https://api.github.com/repos/biocore/qiita/pulls/2658","id":212518102,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNTE4MTAy","html_url":"https://github.com/biocore/qiita/pull/2658","diff_url":"https://github.com/biocore/qiita/pull/2658.diff","patch_url":"https://github.com/biocore/qiita/pull/2658.patch","issue_url":"https://api.github.com/repos/biocore/qiita/issues/2658","number":2658,"state":"open","locked":false,"title":"Fixes #2398","user":{"login":"charles-cowart","id":42684307,"node_id":"MDQ6VXNlcjQyNjg0MzA3","avatar_url":"https://avatars2.githubusercontent.com/u/42684307?v=4","gravatar_id":"","url":"https://api.github.com/users/charles-cowart","html_url":"https://github.com/charles-cowart","followers_url":"https://api.github.com/users/charles-cowart/followers","following_url":"https://api.github.com/users/charles-cowart/following{/other_user}","gists_url":"https://api.github.com/users/charles-cowart/gists{/gist_id}","starred_url":"https://api.github.com/users/charles-cowart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charles-cowart/subscriptions","organizations_url":"https://api.github.com/users/charles-cowart/orgs","repos_url":"https://api.github.com/users/charles-cowart/repos","events_url":"https://api.github.com/users/charles-cowart/events{/privacy}","received_events_url":"https://api.github.com/users/charles-cowart/received_events","type":"User","site_admin":false},"body":"Strips UTF-8 characters from study titles\r\nUTF-8 characters that are not also printable ASCII characters are stripped\r\nfrom new study titles, as well as existing studies flagged 'public'. This is\r\nbecause study titles are passed as metadata to new analyses, and some analysis\r\npackages may not work well with them.","created_at":"2018-09-01T00:24:15Z","updated_at":"2018-09-04T20:46:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7484557eb64171cb2f2c5e49b5c485b160455893","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/biocore/qiita/pulls/2658/commits","review_comments_url":"https://api.github.com/repos/biocore/qiita/pulls/2658/comments","review_comment_url":"https://api.github.com/repos/biocore/qiita/pulls/comments{/number}","comments_url":"https://api.github.com/repos/biocore/qiita/issues/2658/comments","statuses_url":"https://api.github.com/repos/biocore/qiita/statuses/043f5eb6f0a889d27e44c69360dbf14f5418dfd5","head":{"label":"charles-cowart:dev","ref":"dev","sha":"043f5eb6f0a889d27e44c69360dbf14f5418dfd5","user":{"login":"charles-cowart","id":42684307,"node_id":"MDQ6VXNlcjQyNjg0MzA3","avatar_url":"https://avatars2.githubusercontent.com/u/42684307?v=4","gravatar_id":"","url":"https://api.github.com/users/charles-cowart","html_url":"https://github.com/charles-cowart","followers_url":"https://api.github.com/users/charles-cowart/followers","following_url":"https://api.github.com/users/charles-cowart/following{/other_user}","gists_url":"https://api.github.com/users/charles-cowart/gists{/gist_id}","starred_url":"https://api.github.com/users/charles-cowart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charles-cowart/subscriptions","organizations_url":"https://api.github.com/users/charles-cowart/orgs","repos_url":"https://api.github.com/users/charles-cowart/repos","events_url":"https://api.github.com/users/charles-cowart/events{/privacy}","received_events_url":"https://api.github.com/users/charles-cowart/received_events","type":"User","site_admin":false},"repo":{"id":146042867,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYwNDI4Njc=","name":"qiita","full_name":"charles-cowart/qiita","owner":{"login":"charles-cowart","id":42684307,"node_id":"MDQ6VXNlcjQyNjg0MzA3","avatar_url":"https://avatars2.githubusercontent.com/u/42684307?v=4","gravatar_id":"","url":"https://api.github.com/users/charles-cowart","html_url":"https://github.com/charles-cowart","followers_url":"https://api.github.com/users/charles-cowart/followers","following_url":"https://api.github.com/users/charles-cowart/following{/other_user}","gists_url":"https://api.github.com/users/charles-cowart/gists{/gist_id}","starred_url":"https://api.github.com/users/charles-cowart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charles-cowart/subscriptions","organizations_url":"https://api.github.com/users/charles-cowart/orgs","repos_url":"https://api.github.com/users/charles-cowart/repos","events_url":"https://api.github.com/users/charles-cowart/events{/privacy}","received_events_url":"https://api.github.com/users/charles-cowart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/charles-cowart/qiita","description":"Qiita - A multi-omics databasing effort","fork":true,"url":"https://api.github.com/repos/charles-cowart/qiita","forks_url":"https://api.github.com/repos/charles-cowart/qiita/forks","keys_url":"https://api.github.com/repos/charles-cowart/qiita/keys{/key_id}","collaborators_url":"https://api.github.com/repos/charles-cowart/qiita/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/charles-cowart/qiita/teams","hooks_url":"https://api.github.com/repos/charles-cowart/qiita/hooks","issue_events_url":"https://api.github.com/repos/charles-cowart/qiita/issues/events{/number}","events_url":"https://api.github.com/repos/charles-cowart/qiita/events","assignees_url":"https://api.github.com/repos/charles-cowart/qiita/assignees{/user}","branches_url":"https://api.github.com/repos/charles-cowart/qiita/branches{/branch}","tags_url":"https://api.github.com/repos/charles-cowart/qiita/tags","blobs_url":"https://api.github.com/repos/charles-cowart/qiita/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/charles-cowart/qiita/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/charles-cowart/qiita/git/refs{/sha}","trees_url":"https://api.github.com/repos/charles-cowart/qiita/git/trees{/sha}","statuses_url":"https://api.github.com/repos/charles-cowart/qiita/statuses/{sha}","languages_url":"https://api.github.com/repos/charles-cowart/qiita/languages","stargazers_url":"https://api.github.com/repos/charles-cowart/qiita/stargazers","contributors_url":"https://api.github.com/repos/charles-cowart/qiita/contributors","subscribers_url":"https://api.github.com/repos/charles-cowart/qiita/subscribers","subscription_url":"https://api.github.com/repos/charles-cowart/qiita/subscription","commits_url":"https://api.github.com/repos/charles-cowart/qiita/commits{/sha}","git_commits_url":"https://api.github.com/repos/charles-cowart/qiita/git/commits{/sha}","comments_url":"https://api.github.com/repos/charles-cowart/qiita/comments{/number}","issue_comment_url":"https://api.github.com/repos/charles-cowart/qiita/issues/comments{/number}","contents_url":"https://api.github.com/repos/charles-cowart/qiita/contents/{+path}","compare_url":"https://api.github.com/repos/charles-cowart/qiita/compare/{base}...{head}","merges_url":"https://api.github.com/repos/charles-cowart/qiita/merges","archive_url":"https://api.github.com/repos/charles-cowart/qiita/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/charles-cowart/qiita/downloads","issues_url":"https://api.github.com/repos/charles-cowart/qiita/issues{/number}","pulls_url":"https://api.github.com/repos/charles-cowart/qiita/pulls{/number}","milestones_url":"https://api.github.com/repos/charles-cowart/qiita/milestones{/number}","notifications_url":"https://api.github.com/repos/charles-cowart/qiita/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/charles-cowart/qiita/labels{/name}","releases_url":"https://api.github.com/repos/charles-cowart/qiita/releases{/id}","deployments_url":"https://api.github.com/repos/charles-cowart/qiita/deployments","created_at":"2018-08-24T21:47:29Z","updated_at":"2018-08-24T21:47:33Z","pushed_at":"2018-09-04T20:45:16Z","git_url":"git://github.com/charles-cowart/qiita.git","ssh_url":"git@github.com:charles-cowart/qiita.git","clone_url":"https://github.com/charles-cowart/qiita.git","svn_url":"https://github.com/charles-cowart/qiita","homepage":"http://qiita.microbio.me","size":33995,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"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":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"biocore:dev","ref":"dev","sha":"28e897e166cde887d7ccbb20a8d709869ee87a38","user":{"login":"biocore","id":6241857,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyNDE4NTc=","avatar_url":"https://avatars3.githubusercontent.com/u/6241857?v=4","gravatar_id":"","url":"https://api.github.com/users/biocore","html_url":"https://github.com/biocore","followers_url":"https://api.github.com/users/biocore/followers","following_url":"https://api.github.com/users/biocore/following{/other_user}","gists_url":"https://api.github.com/users/biocore/gists{/gist_id}","starred_url":"https://api.github.com/users/biocore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biocore/subscriptions","organizations_url":"https://api.github.com/users/biocore/orgs","repos_url":"https://api.github.com/users/biocore/repos","events_url":"https://api.github.com/users/biocore/events{/privacy}","received_events_url":"https://api.github.com/users/biocore/received_events","type":"Organization","site_admin":false},"repo":{"id":13131245,"node_id":"MDEwOlJlcG9zaXRvcnkxMzEzMTI0NQ==","name":"qiita","full_name":"biocore/qiita","owner":{"login":"biocore","id":6241857,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyNDE4NTc=","avatar_url":"https://avatars3.githubusercontent.com/u/6241857?v=4","gravatar_id":"","url":"https://api.github.com/users/biocore","html_url":"https://github.com/biocore","followers_url":"https://api.github.com/users/biocore/followers","following_url":"https://api.github.com/users/biocore/following{/other_user}","gists_url":"https://api.github.com/users/biocore/gists{/gist_id}","starred_url":"https://api.github.com/users/biocore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biocore/subscriptions","organizations_url":"https://api.github.com/users/biocore/orgs","repos_url":"https://api.github.com/users/biocore/repos","events_url":"https://api.github.com/users/biocore/events{/privacy}","received_events_url":"https://api.github.com/users/biocore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biocore/qiita","description":"Qiita - A multi-omics databasing effort","fork":false,"url":"https://api.github.com/repos/biocore/qiita","forks_url":"https://api.github.com/repos/biocore/qiita/forks","keys_url":"https://api.github.com/repos/biocore/qiita/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biocore/qiita/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biocore/qiita/teams","hooks_url":"https://api.github.com/repos/biocore/qiita/hooks","issue_events_url":"https://api.github.com/repos/biocore/qiita/issues/events{/number}","events_url":"https://api.github.com/repos/biocore/qiita/events","assignees_url":"https://api.github.com/repos/biocore/qiita/assignees{/user}","branches_url":"https://api.github.com/repos/biocore/qiita/branches{/branch}","tags_url":"https://api.github.com/repos/biocore/qiita/tags","blobs_url":"https://api.github.com/repos/biocore/qiita/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biocore/qiita/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biocore/qiita/git/refs{/sha}","trees_url":"https://api.github.com/repos/biocore/qiita/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biocore/qiita/statuses/{sha}","languages_url":"https://api.github.com/repos/biocore/qiita/languages","stargazers_url":"https://api.github.com/repos/biocore/qiita/stargazers","contributors_url":"https://api.github.com/repos/biocore/qiita/contributors","subscribers_url":"https://api.github.com/repos/biocore/qiita/subscribers","subscription_url":"https://api.github.com/repos/biocore/qiita/subscription","commits_url":"https://api.github.com/repos/biocore/qiita/commits{/sha}","git_commits_url":"https://api.github.com/repos/biocore/qiita/git/commits{/sha}","comments_url":"https://api.github.com/repos/biocore/qiita/comments{/number}","issue_comment_url":"https://api.github.com/repos/biocore/qiita/issues/comments{/number}","contents_url":"https://api.github.com/repos/biocore/qiita/contents/{+path}","compare_url":"https://api.github.com/repos/biocore/qiita/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biocore/qiita/merges","archive_url":"https://api.github.com/repos/biocore/qiita/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biocore/qiita/downloads","issues_url":"https://api.github.com/repos/biocore/qiita/issues{/number}","pulls_url":"https://api.github.com/repos/biocore/qiita/pulls{/number}","milestones_url":"https://api.github.com/repos/biocore/qiita/milestones{/number}","notifications_url":"https://api.github.com/repos/biocore/qiita/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biocore/qiita/labels{/name}","releases_url":"https://api.github.com/repos/biocore/qiita/releases{/id}","deployments_url":"https://api.github.com/repos/biocore/qiita/deployments","created_at":"2013-09-26T18:50:43Z","updated_at":"2018-09-02T03:50:30Z","pushed_at":"2018-09-04T20:45:18Z","git_url":"git://github.com/biocore/qiita.git","ssh_url":"git@github.com:biocore/qiita.git","clone_url":"https://github.com/biocore/qiita.git","svn_url":"https://github.com/biocore/qiita","homepage":"http://qiita.microbio.me","size":33959,"stargazers_count":53,"watchers_count":53,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"archived":false,"open_issues_count":180,"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":56,"open_issues":180,"watchers":53,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biocore/qiita/pulls/2658"},"html":{"href":"https://github.com/biocore/qiita/pull/2658"},"issue":{"href":"https://api.github.com/repos/biocore/qiita/issues/2658"},"comments":{"href":"https://api.github.com/repos/biocore/qiita/issues/2658/comments"},"review_comments":{"href":"https://api.github.com/repos/biocore/qiita/pulls/2658/comments"},"review_comment":{"href":"https://api.github.com/repos/biocore/qiita/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/biocore/qiita/pulls/2658/commits"},"statuses":{"href":"https://api.github.com/repos/biocore/qiita/statuses/043f5eb6f0a889d27e44c69360dbf14f5418dfd5"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"charles-cowart"}}