{"action":"closed","number":126,"pull_request":{"url":"https://api.github.com/repos/edx/cs_comments_service/pulls/126","id":33101158,"html_url":"https://github.com/edx/cs_comments_service/pull/126","diff_url":"https://github.com/edx/cs_comments_service/pull/126.diff","patch_url":"https://github.com/edx/cs_comments_service/pull/126.patch","issue_url":"https://api.github.com/repos/edx/cs_comments_service/issues/126","number":126,"state":"closed","locked":false,"title":"Add ability to set ssl option through env variable.","user":{"login":"mtyaka","id":32585,"avatar_url":"https://avatars.githubusercontent.com/u/32585?v=3","gravatar_id":"","url":"https://api.github.com/users/mtyaka","html_url":"https://github.com/mtyaka","followers_url":"https://api.github.com/users/mtyaka/followers","following_url":"https://api.github.com/users/mtyaka/following{/other_user}","gists_url":"https://api.github.com/users/mtyaka/gists{/gist_id}","starred_url":"https://api.github.com/users/mtyaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtyaka/subscriptions","organizations_url":"https://api.github.com/users/mtyaka/orgs","repos_url":"https://api.github.com/users/mtyaka/repos","events_url":"https://api.github.com/users/mtyaka/events{/privacy}","received_events_url":"https://api.github.com/users/mtyaka/received_events","type":"User","site_admin":false},"body":"Makes it possible to use SSL for the mongo connections by setting the `MONGOID_USE_SSL` environment variable to `True`.\r\n\r\n*Background*: A third-party Open edX installation for Harvard is using an externally hosted mongo cluster. Due to security policies, the connections from cs_comments_service to the mongo cluster are required to be encrypted. Mongoid supports ssl connections by setting the `ssl` parameter to true when initializing a connection. This change makes it possible to initialize PyMongo/Mongoid connections so that they are use SSL encryption by setting an environment variable (which is in turn set up by edx/configuration, see https://github.com/edx/configuration/pull/1944).\r\n*Partner information*: Harvard, for a third-party Open edX installation\r\n*Jira ticket*: https://openedx.atlassian.net/browse/OSPR-518","created_at":"2015-04-11T10:14:30Z","updated_at":"2015-05-08T23:58:24Z","closed_at":"2015-05-08T23:58:24Z","merged_at":"2015-05-08T23:58:24Z","merge_commit_sha":"38329aea66edd5f7f24debc49a1b1594c37a53e3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edx/cs_comments_service/pulls/126/commits","review_comments_url":"https://api.github.com/repos/edx/cs_comments_service/pulls/126/comments","review_comment_url":"https://api.github.com/repos/edx/cs_comments_service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/cs_comments_service/issues/126/comments","statuses_url":"https://api.github.com/repos/edx/cs_comments_service/statuses/e863ec41c4f1c557d42e6db0a7a8a020e93ab5ab","head":{"label":"gsehub:mongo-ssl","ref":"mongo-ssl","sha":"e863ec41c4f1c557d42e6db0a7a8a020e93ab5ab","user":{"login":"gsehub","id":6352981,"avatar_url":"https://avatars.githubusercontent.com/u/6352981?v=3","gravatar_id":"","url":"https://api.github.com/users/gsehub","html_url":"https://github.com/gsehub","followers_url":"https://api.github.com/users/gsehub/followers","following_url":"https://api.github.com/users/gsehub/following{/other_user}","gists_url":"https://api.github.com/users/gsehub/gists{/gist_id}","starred_url":"https://api.github.com/users/gsehub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsehub/subscriptions","organizations_url":"https://api.github.com/users/gsehub/orgs","repos_url":"https://api.github.com/users/gsehub/repos","events_url":"https://api.github.com/users/gsehub/events{/privacy}","received_events_url":"https://api.github.com/users/gsehub/received_events","type":"Organization","site_admin":false},"repo":{"id":33713085,"name":"cs_comments_service","full_name":"gsehub/cs_comments_service","owner":{"login":"gsehub","id":6352981,"avatar_url":"https://avatars.githubusercontent.com/u/6352981?v=3","gravatar_id":"","url":"https://api.github.com/users/gsehub","html_url":"https://github.com/gsehub","followers_url":"https://api.github.com/users/gsehub/followers","following_url":"https://api.github.com/users/gsehub/following{/other_user}","gists_url":"https://api.github.com/users/gsehub/gists{/gist_id}","starred_url":"https://api.github.com/users/gsehub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsehub/subscriptions","organizations_url":"https://api.github.com/users/gsehub/orgs","repos_url":"https://api.github.com/users/gsehub/repos","events_url":"https://api.github.com/users/gsehub/events{/privacy}","received_events_url":"https://api.github.com/users/gsehub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gsehub/cs_comments_service","description":"server side of the comment service","fork":true,"url":"https://api.github.com/repos/gsehub/cs_comments_service","forks_url":"https://api.github.com/repos/gsehub/cs_comments_service/forks","keys_url":"https://api.github.com/repos/gsehub/cs_comments_service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gsehub/cs_comments_service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gsehub/cs_comments_service/teams","hooks_url":"https://api.github.com/repos/gsehub/cs_comments_service/hooks","issue_events_url":"https://api.github.com/repos/gsehub/cs_comments_service/issues/events{/number}","events_url":"https://api.github.com/repos/gsehub/cs_comments_service/events","assignees_url":"https://api.github.com/repos/gsehub/cs_comments_service/assignees{/user}","branches_url":"https://api.github.com/repos/gsehub/cs_comments_service/branches{/branch}","tags_url":"https://api.github.com/repos/gsehub/cs_comments_service/tags","blobs_url":"https://api.github.com/repos/gsehub/cs_comments_service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gsehub/cs_comments_service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gsehub/cs_comments_service/git/refs{/sha}","trees_url":"https://api.github.com/repos/gsehub/cs_comments_service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gsehub/cs_comments_service/statuses/{sha}","languages_url":"https://api.github.com/repos/gsehub/cs_comments_service/languages","stargazers_url":"https://api.github.com/repos/gsehub/cs_comments_service/stargazers","contributors_url":"https://api.github.com/repos/gsehub/cs_comments_service/contributors","subscribers_url":"https://api.github.com/repos/gsehub/cs_comments_service/subscribers","subscription_url":"https://api.github.com/repos/gsehub/cs_comments_service/subscription","commits_url":"https://api.github.com/repos/gsehub/cs_comments_service/commits{/sha}","git_commits_url":"https://api.github.com/repos/gsehub/cs_comments_service/git/commits{/sha}","comments_url":"https://api.github.com/repos/gsehub/cs_comments_service/comments{/number}","issue_comment_url":"https://api.github.com/repos/gsehub/cs_comments_service/issues/comments{/number}","contents_url":"https://api.github.com/repos/gsehub/cs_comments_service/contents/{+path}","compare_url":"https://api.github.com/repos/gsehub/cs_comments_service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gsehub/cs_comments_service/merges","archive_url":"https://api.github.com/repos/gsehub/cs_comments_service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gsehub/cs_comments_service/downloads","issues_url":"https://api.github.com/repos/gsehub/cs_comments_service/issues{/number}","pulls_url":"https://api.github.com/repos/gsehub/cs_comments_service/pulls{/number}","milestones_url":"https://api.github.com/repos/gsehub/cs_comments_service/milestones{/number}","notifications_url":"https://api.github.com/repos/gsehub/cs_comments_service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gsehub/cs_comments_service/labels{/name}","releases_url":"https://api.github.com/repos/gsehub/cs_comments_service/releases{/id}","created_at":"2015-04-10T06:44:48Z","updated_at":"2015-04-10T06:44:49Z","pushed_at":"2015-04-11T10:20:12Z","git_url":"git://github.com/gsehub/cs_comments_service.git","ssh_url":"git@github.com:gsehub/cs_comments_service.git","clone_url":"https://github.com/gsehub/cs_comments_service.git","svn_url":"https://github.com/gsehub/cs_comments_service","homepage":null,"size":1130,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"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":"edx:master","ref":"master","sha":"172989a76a023837a3f99d0de8dc54a0ad52fbcb","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","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":4732120,"name":"cs_comments_service","full_name":"edx/cs_comments_service","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","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/cs_comments_service","description":"server side of the comment service","fork":false,"url":"https://api.github.com/repos/edx/cs_comments_service","forks_url":"https://api.github.com/repos/edx/cs_comments_service/forks","keys_url":"https://api.github.com/repos/edx/cs_comments_service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/cs_comments_service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/cs_comments_service/teams","hooks_url":"https://api.github.com/repos/edx/cs_comments_service/hooks","issue_events_url":"https://api.github.com/repos/edx/cs_comments_service/issues/events{/number}","events_url":"https://api.github.com/repos/edx/cs_comments_service/events","assignees_url":"https://api.github.com/repos/edx/cs_comments_service/assignees{/user}","branches_url":"https://api.github.com/repos/edx/cs_comments_service/branches{/branch}","tags_url":"https://api.github.com/repos/edx/cs_comments_service/tags","blobs_url":"https://api.github.com/repos/edx/cs_comments_service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/cs_comments_service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/cs_comments_service/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/cs_comments_service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/cs_comments_service/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/cs_comments_service/languages","stargazers_url":"https://api.github.com/repos/edx/cs_comments_service/stargazers","contributors_url":"https://api.github.com/repos/edx/cs_comments_service/contributors","subscribers_url":"https://api.github.com/repos/edx/cs_comments_service/subscribers","subscription_url":"https://api.github.com/repos/edx/cs_comments_service/subscription","commits_url":"https://api.github.com/repos/edx/cs_comments_service/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/cs_comments_service/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/cs_comments_service/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/cs_comments_service/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/cs_comments_service/contents/{+path}","compare_url":"https://api.github.com/repos/edx/cs_comments_service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/cs_comments_service/merges","archive_url":"https://api.github.com/repos/edx/cs_comments_service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/cs_comments_service/downloads","issues_url":"https://api.github.com/repos/edx/cs_comments_service/issues{/number}","pulls_url":"https://api.github.com/repos/edx/cs_comments_service/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/cs_comments_service/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/cs_comments_service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/cs_comments_service/labels{/name}","releases_url":"https://api.github.com/repos/edx/cs_comments_service/releases{/id}","created_at":"2012-06-20T22:12:04Z","updated_at":"2015-04-27T17:46:04Z","pushed_at":"2015-05-08T23:58:24Z","git_url":"git://github.com/edx/cs_comments_service.git","ssh_url":"git@github.com:edx/cs_comments_service.git","clone_url":"https://github.com/edx/cs_comments_service.git","svn_url":"https://github.com/edx/cs_comments_service","homepage":null,"size":3217,"stargazers_count":21,"watchers_count":21,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":57,"mirror_url":null,"open_issues_count":4,"forks":57,"open_issues":4,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/cs_comments_service/pulls/126"},"html":{"href":"https://github.com/edx/cs_comments_service/pull/126"},"issue":{"href":"https://api.github.com/repos/edx/cs_comments_service/issues/126"},"comments":{"href":"https://api.github.com/repos/edx/cs_comments_service/issues/126/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/cs_comments_service/pulls/126/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/cs_comments_service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/cs_comments_service/pulls/126/commits"},"statuses":{"href":"https://api.github.com/repos/edx/cs_comments_service/statuses/e863ec41c4f1c557d42e6db0a7a8a020e93ab5ab"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jimabramson","id":1349368,"avatar_url":"https://avatars.githubusercontent.com/u/1349368?v=3","gravatar_id":"","url":"https://api.github.com/users/jimabramson","html_url":"https://github.com/jimabramson","followers_url":"https://api.github.com/users/jimabramson/followers","following_url":"https://api.github.com/users/jimabramson/following{/other_user}","gists_url":"https://api.github.com/users/jimabramson/gists{/gist_id}","starred_url":"https://api.github.com/users/jimabramson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimabramson/subscriptions","organizations_url":"https://api.github.com/users/jimabramson/orgs","repos_url":"https://api.github.com/users/jimabramson/repos","events_url":"https://api.github.com/users/jimabramson/events{/privacy}","received_events_url":"https://api.github.com/users/jimabramson/received_events","type":"User","site_admin":false},"comments":8,"review_comments":0,"commits":1,"additions":2,"deletions":0,"changed_files":2}}