{"action":"created","comment":{"url":"https://api.github.com/repos/mongodb/mongo-python-driver/pulls/comments/196602408","pull_request_review_id":130187858,"id":196602408,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjYwMjQwOA==","diff_hunk":"@@ -101,3 +179,59 @@ def __enter__(self):\n \n     def __exit__(self, exc_type, exc_val, exc_tb):\n         self.close()\n+\n+\n+class CollectionChangeStream(ChangeStream):","path":"pymongo/change_stream.py","position":155,"original_position":155,"commit_id":"c0d687980bcbff34b9e7b7648cd7c821210d389f","original_commit_id":"c0d687980bcbff34b9e7b7648cd7c821210d389f","user":{"login":"behackett","id":573553,"node_id":"MDQ6VXNlcjU3MzU1Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/573553?v=4","gravatar_id":"","url":"https://api.github.com/users/behackett","html_url":"https://github.com/behackett","followers_url":"https://api.github.com/users/behackett/followers","following_url":"https://api.github.com/users/behackett/following{/other_user}","gists_url":"https://api.github.com/users/behackett/gists{/gist_id}","starred_url":"https://api.github.com/users/behackett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behackett/subscriptions","organizations_url":"https://api.github.com/users/behackett/orgs","repos_url":"https://api.github.com/users/behackett/repos","events_url":"https://api.github.com/users/behackett/events{/privacy}","received_events_url":"https://api.github.com/users/behackett/received_events","type":"User","site_admin":false},"body":"I don't think we can change the type returned by Collection.watch. I think that should continue to return ChangeStream. Your abstract class can be an internal type line _ChangeStream.","created_at":"2018-06-19T22:48:40Z","updated_at":"2018-06-19T23:04:21Z","html_url":"https://github.com/mongodb/mongo-python-driver/pull/355#discussion_r196602408","pull_request_url":"https://api.github.com/repos/mongodb/mongo-python-driver/pulls/355","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-python-driver/pulls/comments/196602408"},"html":{"href":"https://github.com/mongodb/mongo-python-driver/pull/355#discussion_r196602408"},"pull_request":{"href":"https://api.github.com/repos/mongodb/mongo-python-driver/pulls/355"}}},"pull_request":{"url":"https://api.github.com/repos/mongodb/mongo-python-driver/pulls/355","id":194128108,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0MTI4MTA4","html_url":"https://github.com/mongodb/mongo-python-driver/pull/355","diff_url":"https://github.com/mongodb/mongo-python-driver/pull/355.diff","patch_url":"https://github.com/mongodb/mongo-python-driver/pull/355.patch","issue_url":"https://api.github.com/repos/mongodb/mongo-python-driver/issues/355","number":355,"state":"open","locked":false,"title":"[WIP] Add helpers and options for Change Streams Follow-on Work","user":{"login":"prashantmital","id":5883388,"node_id":"MDQ6VXNlcjU4ODMzODg=","avatar_url":"https://avatars3.githubusercontent.com/u/5883388?v=4","gravatar_id":"","url":"https://api.github.com/users/prashantmital","html_url":"https://github.com/prashantmital","followers_url":"https://api.github.com/users/prashantmital/followers","following_url":"https://api.github.com/users/prashantmital/following{/other_user}","gists_url":"https://api.github.com/users/prashantmital/gists{/gist_id}","starred_url":"https://api.github.com/users/prashantmital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prashantmital/subscriptions","organizations_url":"https://api.github.com/users/prashantmital/orgs","repos_url":"https://api.github.com/users/prashantmital/repos","events_url":"https://api.github.com/users/prashantmital/events{/privacy}","received_events_url":"https://api.github.com/users/prashantmital/received_events","type":"User","site_admin":false},"body":"WIP PR that makes it easier to track changes for https://jira.mongodb.org/browse/PYTHON-1565.","created_at":"2018-06-11T23:17:16Z","updated_at":"2018-06-19T23:04:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e14d6cf8a876deb3298c0498f2b249b7308c6bdc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mongodb/mongo-python-driver/pulls/355/commits","review_comments_url":"https://api.github.com/repos/mongodb/mongo-python-driver/pulls/355/comments","review_comment_url":"https://api.github.com/repos/mongodb/mongo-python-driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mongodb/mongo-python-driver/issues/355/comments","statuses_url":"https://api.github.com/repos/mongodb/mongo-python-driver/statuses/c0d687980bcbff34b9e7b7648cd7c821210d389f","head":{"label":"prashantmital:feat/PYTHON-1565","ref":"feat/PYTHON-1565","sha":"c0d687980bcbff34b9e7b7648cd7c821210d389f","user":{"login":"prashantmital","id":5883388,"node_id":"MDQ6VXNlcjU4ODMzODg=","avatar_url":"https://avatars3.githubusercontent.com/u/5883388?v=4","gravatar_id":"","url":"https://api.github.com/users/prashantmital","html_url":"https://github.com/prashantmital","followers_url":"https://api.github.com/users/prashantmital/followers","following_url":"https://api.github.com/users/prashantmital/following{/other_user}","gists_url":"https://api.github.com/users/prashantmital/gists{/gist_id}","starred_url":"https://api.github.com/users/prashantmital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prashantmital/subscriptions","organizations_url":"https://api.github.com/users/prashantmital/orgs","repos_url":"https://api.github.com/users/prashantmital/repos","events_url":"https://api.github.com/users/prashantmital/events{/privacy}","received_events_url":"https://api.github.com/users/prashantmital/received_events","type":"User","site_admin":false},"repo":{"id":133433936,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM0MzM5MzY=","name":"mongo-python-driver","full_name":"prashantmital/mongo-python-driver","owner":{"login":"prashantmital","id":5883388,"node_id":"MDQ6VXNlcjU4ODMzODg=","avatar_url":"https://avatars3.githubusercontent.com/u/5883388?v=4","gravatar_id":"","url":"https://api.github.com/users/prashantmital","html_url":"https://github.com/prashantmital","followers_url":"https://api.github.com/users/prashantmital/followers","following_url":"https://api.github.com/users/prashantmital/following{/other_user}","gists_url":"https://api.github.com/users/prashantmital/gists{/gist_id}","starred_url":"https://api.github.com/users/prashantmital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prashantmital/subscriptions","organizations_url":"https://api.github.com/users/prashantmital/orgs","repos_url":"https://api.github.com/users/prashantmital/repos","events_url":"https://api.github.com/users/prashantmital/events{/privacy}","received_events_url":"https://api.github.com/users/prashantmital/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prashantmital/mongo-python-driver","description":"PyMongo - the Python driver for MongoDB","fork":true,"url":"https://api.github.com/repos/prashantmital/mongo-python-driver","forks_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/forks","keys_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/teams","hooks_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/hooks","issue_events_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/issues/events{/number}","events_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/events","assignees_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/assignees{/user}","branches_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/branches{/branch}","tags_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/tags","blobs_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/languages","stargazers_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/stargazers","contributors_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/contributors","subscribers_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/subscribers","subscription_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/subscription","commits_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/contents/{+path}","compare_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/merges","archive_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/downloads","issues_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/issues{/number}","pulls_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/labels{/name}","releases_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/releases{/id}","deployments_url":"https://api.github.com/repos/prashantmital/mongo-python-driver/deployments","created_at":"2018-05-14T23:45:13Z","updated_at":"2018-05-18T23:03:17Z","pushed_at":"2018-06-19T22:16:39Z","git_url":"git://github.com/prashantmital/mongo-python-driver.git","ssh_url":"git@github.com:prashantmital/mongo-python-driver.git","clone_url":"https://github.com/prashantmital/mongo-python-driver.git","svn_url":"https://github.com/prashantmital/mongo-python-driver","homepage":"http://api.mongodb.org/python","size":13004,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mongodb:master","ref":"master","sha":"622d33d0cb1ab42177d241667801cb0e58a375b9","user":{"login":"mongodb","id":45120,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/45120?v=4","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"repo":{"id":108051,"node_id":"MDEwOlJlcG9zaXRvcnkxMDgwNTE=","name":"mongo-python-driver","full_name":"mongodb/mongo-python-driver","owner":{"login":"mongodb","id":45120,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/45120?v=4","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mongodb/mongo-python-driver","description":"PyMongo - the Python driver for MongoDB","fork":false,"url":"https://api.github.com/repos/mongodb/mongo-python-driver","forks_url":"https://api.github.com/repos/mongodb/mongo-python-driver/forks","keys_url":"https://api.github.com/repos/mongodb/mongo-python-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb/mongo-python-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb/mongo-python-driver/teams","hooks_url":"https://api.github.com/repos/mongodb/mongo-python-driver/hooks","issue_events_url":"https://api.github.com/repos/mongodb/mongo-python-driver/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb/mongo-python-driver/events","assignees_url":"https://api.github.com/repos/mongodb/mongo-python-driver/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb/mongo-python-driver/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb/mongo-python-driver/tags","blobs_url":"https://api.github.com/repos/mongodb/mongo-python-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb/mongo-python-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb/mongo-python-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb/mongo-python-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb/mongo-python-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb/mongo-python-driver/languages","stargazers_url":"https://api.github.com/repos/mongodb/mongo-python-driver/stargazers","contributors_url":"https://api.github.com/repos/mongodb/mongo-python-driver/contributors","subscribers_url":"https://api.github.com/repos/mongodb/mongo-python-driver/subscribers","subscription_url":"https://api.github.com/repos/mongodb/mongo-python-driver/subscription","commits_url":"https://api.github.com/repos/mongodb/mongo-python-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb/mongo-python-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb/mongo-python-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb/mongo-python-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodb/mongo-python-driver/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb/mongo-python-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb/mongo-python-driver/merges","archive_url":"https://api.github.com/repos/mongodb/mongo-python-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb/mongo-python-driver/downloads","issues_url":"https://api.github.com/repos/mongodb/mongo-python-driver/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb/mongo-python-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb/mongo-python-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb/mongo-python-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb/mongo-python-driver/labels{/name}","releases_url":"https://api.github.com/repos/mongodb/mongo-python-driver/releases{/id}","deployments_url":"https://api.github.com/repos/mongodb/mongo-python-driver/deployments","created_at":"2009-01-15T15:18:06Z","updated_at":"2018-06-19T19:23:25Z","pushed_at":"2018-06-19T22:16:40Z","git_url":"git://github.com/mongodb/mongo-python-driver.git","ssh_url":"git@github.com:mongodb/mongo-python-driver.git","clone_url":"https://github.com/mongodb/mongo-python-driver.git","svn_url":"https://github.com/mongodb/mongo-python-driver","homepage":"http://api.mongodb.org/python","size":13083,"stargazers_count":2387,"watchers_count":2387,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":798,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":798,"open_issues":4,"watchers":2387,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-python-driver/pulls/355"},"html":{"href":"https://github.com/mongodb/mongo-python-driver/pull/355"},"issue":{"href":"https://api.github.com/repos/mongodb/mongo-python-driver/issues/355"},"comments":{"href":"https://api.github.com/repos/mongodb/mongo-python-driver/issues/355/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb/mongo-python-driver/pulls/355/comments"},"review_comment":{"href":"https://api.github.com/repos/mongodb/mongo-python-driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mongodb/mongo-python-driver/pulls/355/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb/mongo-python-driver/statuses/c0d687980bcbff34b9e7b7648cd7c821210d389f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"behackett"}}