{"action":"opened","number":22,"pull_request":{"url":"https://api.github.com/repos/edx/edx-enterprise-data/pulls/22","id":169483176,"html_url":"https://github.com/edx/edx-enterprise-data/pull/22","diff_url":"https://github.com/edx/edx-enterprise-data/pull/22.diff","patch_url":"https://github.com/edx/edx-enterprise-data/pull/22.patch","issue_url":"https://api.github.com/repos/edx/edx-enterprise-data/issues/22","number":22,"state":"open","locked":false,"title":"Fixing issue with list in email headers","user":{"login":"adamstankiewicz","id":2828721,"avatar_url":"https://avatars0.githubusercontent.com/u/2828721?v=4","gravatar_id":"","url":"https://api.github.com/users/adamstankiewicz","html_url":"https://github.com/adamstankiewicz","followers_url":"https://api.github.com/users/adamstankiewicz/followers","following_url":"https://api.github.com/users/adamstankiewicz/following{/other_user}","gists_url":"https://api.github.com/users/adamstankiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/adamstankiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamstankiewicz/subscriptions","organizations_url":"https://api.github.com/users/adamstankiewicz/orgs","repos_url":"https://api.github.com/users/adamstankiewicz/repos","events_url":"https://api.github.com/users/adamstankiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/adamstankiewicz/received_events","type":"User","site_admin":false},"body":"Now that I was able to actually test the sending of reports to multiple emails, I noticed that there was an error in the build about not having an `encode` method on the `list` data type.\r\n\r\nUpon further investigation, I learned that `msg['To']` is actually setting the email headers (which must be a string) as opposed to the `client.send_raw_email` method accepting a list.\r\n\r\nThis PR fixes this issue by converting the email list to a comma-separated string before setting the `msg['To']` header.","created_at":"2018-02-15T20:57:40Z","updated_at":"2018-02-15T20:57:40Z","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/edx/edx-enterprise-data/pulls/22/commits","review_comments_url":"https://api.github.com/repos/edx/edx-enterprise-data/pulls/22/comments","review_comment_url":"https://api.github.com/repos/edx/edx-enterprise-data/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/edx-enterprise-data/issues/22/comments","statuses_url":"https://api.github.com/repos/edx/edx-enterprise-data/statuses/cb4f9503e7caa51940c9a4de0ed81d95186b8515","head":{"label":"edx:astankiewicz/fixing-email-headers","ref":"astankiewicz/fixing-email-headers","sha":"cb4f9503e7caa51940c9a4de0ed81d95186b8515","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars3.githubusercontent.com/u/3179841?v=4","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":105808527,"name":"edx-enterprise-data","full_name":"edx/edx-enterprise-data","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars3.githubusercontent.com/u/3179841?v=4","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/edx-enterprise-data","description":"The edX Enterprise Data repo is the home to tools and products related to providing access to Enterprise related data.","fork":false,"url":"https://api.github.com/repos/edx/edx-enterprise-data","forks_url":"https://api.github.com/repos/edx/edx-enterprise-data/forks","keys_url":"https://api.github.com/repos/edx/edx-enterprise-data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/edx-enterprise-data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/edx-enterprise-data/teams","hooks_url":"https://api.github.com/repos/edx/edx-enterprise-data/hooks","issue_events_url":"https://api.github.com/repos/edx/edx-enterprise-data/issues/events{/number}","events_url":"https://api.github.com/repos/edx/edx-enterprise-data/events","assignees_url":"https://api.github.com/repos/edx/edx-enterprise-data/assignees{/user}","branches_url":"https://api.github.com/repos/edx/edx-enterprise-data/branches{/branch}","tags_url":"https://api.github.com/repos/edx/edx-enterprise-data/tags","blobs_url":"https://api.github.com/repos/edx/edx-enterprise-data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/edx-enterprise-data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/edx-enterprise-data/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/edx-enterprise-data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/edx-enterprise-data/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/edx-enterprise-data/languages","stargazers_url":"https://api.github.com/repos/edx/edx-enterprise-data/stargazers","contributors_url":"https://api.github.com/repos/edx/edx-enterprise-data/contributors","subscribers_url":"https://api.github.com/repos/edx/edx-enterprise-data/subscribers","subscription_url":"https://api.github.com/repos/edx/edx-enterprise-data/subscription","commits_url":"https://api.github.com/repos/edx/edx-enterprise-data/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/edx-enterprise-data/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/edx-enterprise-data/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/edx-enterprise-data/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/edx-enterprise-data/contents/{+path}","compare_url":"https://api.github.com/repos/edx/edx-enterprise-data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/edx-enterprise-data/merges","archive_url":"https://api.github.com/repos/edx/edx-enterprise-data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/edx-enterprise-data/downloads","issues_url":"https://api.github.com/repos/edx/edx-enterprise-data/issues{/number}","pulls_url":"https://api.github.com/repos/edx/edx-enterprise-data/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/edx-enterprise-data/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/edx-enterprise-data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/edx-enterprise-data/labels{/name}","releases_url":"https://api.github.com/repos/edx/edx-enterprise-data/releases{/id}","deployments_url":"https://api.github.com/repos/edx/edx-enterprise-data/deployments","created_at":"2017-10-04T19:19:49Z","updated_at":"2017-12-11T19:04:38Z","pushed_at":"2018-02-15T20:53:47Z","git_url":"git://github.com/edx/edx-enterprise-data.git","ssh_url":"git@github.com:edx/edx-enterprise-data.git","clone_url":"https://github.com/edx/edx-enterprise-data.git","svn_url":"https://github.com/edx/edx-enterprise-data","homepage":null,"size":49,"stargazers_count":2,"watchers_count":2,"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":1,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"edx:master","ref":"master","sha":"62539dcfc81e55b1c78b07f3fca9c6ef0087fd69","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars3.githubusercontent.com/u/3179841?v=4","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":105808527,"name":"edx-enterprise-data","full_name":"edx/edx-enterprise-data","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars3.githubusercontent.com/u/3179841?v=4","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/edx-enterprise-data","description":"The edX Enterprise Data repo is the home to tools and products related to providing access to Enterprise related data.","fork":false,"url":"https://api.github.com/repos/edx/edx-enterprise-data","forks_url":"https://api.github.com/repos/edx/edx-enterprise-data/forks","keys_url":"https://api.github.com/repos/edx/edx-enterprise-data/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/edx-enterprise-data/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/edx-enterprise-data/teams","hooks_url":"https://api.github.com/repos/edx/edx-enterprise-data/hooks","issue_events_url":"https://api.github.com/repos/edx/edx-enterprise-data/issues/events{/number}","events_url":"https://api.github.com/repos/edx/edx-enterprise-data/events","assignees_url":"https://api.github.com/repos/edx/edx-enterprise-data/assignees{/user}","branches_url":"https://api.github.com/repos/edx/edx-enterprise-data/branches{/branch}","tags_url":"https://api.github.com/repos/edx/edx-enterprise-data/tags","blobs_url":"https://api.github.com/repos/edx/edx-enterprise-data/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/edx-enterprise-data/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/edx-enterprise-data/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/edx-enterprise-data/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/edx-enterprise-data/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/edx-enterprise-data/languages","stargazers_url":"https://api.github.com/repos/edx/edx-enterprise-data/stargazers","contributors_url":"https://api.github.com/repos/edx/edx-enterprise-data/contributors","subscribers_url":"https://api.github.com/repos/edx/edx-enterprise-data/subscribers","subscription_url":"https://api.github.com/repos/edx/edx-enterprise-data/subscription","commits_url":"https://api.github.com/repos/edx/edx-enterprise-data/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/edx-enterprise-data/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/edx-enterprise-data/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/edx-enterprise-data/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/edx-enterprise-data/contents/{+path}","compare_url":"https://api.github.com/repos/edx/edx-enterprise-data/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/edx-enterprise-data/merges","archive_url":"https://api.github.com/repos/edx/edx-enterprise-data/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/edx-enterprise-data/downloads","issues_url":"https://api.github.com/repos/edx/edx-enterprise-data/issues{/number}","pulls_url":"https://api.github.com/repos/edx/edx-enterprise-data/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/edx-enterprise-data/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/edx-enterprise-data/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/edx-enterprise-data/labels{/name}","releases_url":"https://api.github.com/repos/edx/edx-enterprise-data/releases{/id}","deployments_url":"https://api.github.com/repos/edx/edx-enterprise-data/deployments","created_at":"2017-10-04T19:19:49Z","updated_at":"2017-12-11T19:04:38Z","pushed_at":"2018-02-15T20:53:47Z","git_url":"git://github.com/edx/edx-enterprise-data.git","ssh_url":"git@github.com:edx/edx-enterprise-data.git","clone_url":"https://github.com/edx/edx-enterprise-data.git","svn_url":"https://github.com/edx/edx-enterprise-data","homepage":null,"size":49,"stargazers_count":2,"watchers_count":2,"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":1,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/edx-enterprise-data/pulls/22"},"html":{"href":"https://github.com/edx/edx-enterprise-data/pull/22"},"issue":{"href":"https://api.github.com/repos/edx/edx-enterprise-data/issues/22"},"comments":{"href":"https://api.github.com/repos/edx/edx-enterprise-data/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/edx-enterprise-data/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/edx-enterprise-data/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/edx-enterprise-data/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/edx/edx-enterprise-data/statuses/cb4f9503e7caa51940c9a4de0ed81d95186b8515"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":5,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"adamstankiewicz"}}