{"action":"created","comment":{"url":"https://api.github.com/repos/cloudant/python-cloudant/pulls/comments/185545665","pull_request_review_id":116956645,"id":185545665,"diff_hunk":"@@ -0,0 +1,53 @@\n+#!/usr/bin/env python\n+# Copyright (C) 2018 IBM Corp. All rights reserved.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\"\"\"\n+TODO\n+\"\"\"\n+\n+class Scheduler(object):","path":"src/cloudant/scheduler.py","position":19,"original_position":19,"commit_id":"58b37513245431b78a9f1d5f5abf8d3fc6380697","original_commit_id":"58b37513245431b78a9f1d5f5abf8d3fc6380697","user":{"login":"tomblench","id":6302842,"avatar_url":"https://avatars3.githubusercontent.com/u/6302842?v=4","gravatar_id":"","url":"https://api.github.com/users/tomblench","html_url":"https://github.com/tomblench","followers_url":"https://api.github.com/users/tomblench/followers","following_url":"https://api.github.com/users/tomblench/following{/other_user}","gists_url":"https://api.github.com/users/tomblench/gists{/gist_id}","starred_url":"https://api.github.com/users/tomblench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomblench/subscriptions","organizations_url":"https://api.github.com/users/tomblench/orgs","repos_url":"https://api.github.com/users/tomblench/repos","events_url":"https://api.github.com/users/tomblench/events{/privacy}","received_events_url":"https://api.github.com/users/tomblench/received_events","type":"User","site_admin":false},"body":"Good point. On java-cloudant we just did `/_scheduler/docs/_replicator/{docid}` on the assumption that having a different replication DB is so niche that most people won't need it, What do you think?","created_at":"2018-05-02T15:49:40Z","updated_at":"2018-05-02T15:49:41Z","html_url":"https://github.com/cloudant/python-cloudant/pull/379#discussion_r185545665","pull_request_url":"https://api.github.com/repos/cloudant/python-cloudant/pulls/379","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/cloudant/python-cloudant/pulls/comments/185545665"},"html":{"href":"https://github.com/cloudant/python-cloudant/pull/379#discussion_r185545665"},"pull_request":{"href":"https://api.github.com/repos/cloudant/python-cloudant/pulls/379"}},"in_reply_to_id":185535621},"pull_request":{"url":"https://api.github.com/repos/cloudant/python-cloudant/pulls/379","id":185434114,"html_url":"https://github.com/cloudant/python-cloudant/pull/379","diff_url":"https://github.com/cloudant/python-cloudant/pull/379.diff","patch_url":"https://github.com/cloudant/python-cloudant/pull/379.patch","issue_url":"https://api.github.com/repos/cloudant/python-cloudant/issues/379","number":379,"state":"open","locked":false,"title":"Add support for _scheduler endpoints","user":{"login":"tomblench","id":6302842,"avatar_url":"https://avatars3.githubusercontent.com/u/6302842?v=4","gravatar_id":"","url":"https://api.github.com/users/tomblench","html_url":"https://github.com/tomblench","followers_url":"https://api.github.com/users/tomblench/followers","following_url":"https://api.github.com/users/tomblench/following{/other_user}","gists_url":"https://api.github.com/users/tomblench/gists{/gist_id}","starred_url":"https://api.github.com/users/tomblench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomblench/subscriptions","organizations_url":"https://api.github.com/users/tomblench/orgs","repos_url":"https://api.github.com/users/tomblench/repos","events_url":"https://api.github.com/users/tomblench/events{/privacy}","received_events_url":"https://api.github.com/users/tomblench/received_events","type":"User","site_admin":false},"body":"## What\r\n\r\nAdd support for `_scheduler` endpoints\r\n\r\n## Testing\r\n\r\nAdded mock tests to `scheduler_tests.py`. Note that because `_scheduler/jobs` only lists running jobs, reliably testing against a real server is difficult and prone to timing errors.\r\n\r\n## Issues\r\n\r\nSee #347 \r\n\r\n## TODO\r\n\r\nDocstrings, CHANGELOG","created_at":"2018-05-02T13:12:42Z","updated_at":"2018-05-02T15:49:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"184fa7dd6dde99b2fcac71854aa48beb34c33334","assignee":{"login":"smithsz","id":5632401,"avatar_url":"https://avatars1.githubusercontent.com/u/5632401?v=4","gravatar_id":"","url":"https://api.github.com/users/smithsz","html_url":"https://github.com/smithsz","followers_url":"https://api.github.com/users/smithsz/followers","following_url":"https://api.github.com/users/smithsz/following{/other_user}","gists_url":"https://api.github.com/users/smithsz/gists{/gist_id}","starred_url":"https://api.github.com/users/smithsz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smithsz/subscriptions","organizations_url":"https://api.github.com/users/smithsz/orgs","repos_url":"https://api.github.com/users/smithsz/repos","events_url":"https://api.github.com/users/smithsz/events{/privacy}","received_events_url":"https://api.github.com/users/smithsz/received_events","type":"User","site_admin":false},"assignees":[{"login":"smithsz","id":5632401,"avatar_url":"https://avatars1.githubusercontent.com/u/5632401?v=4","gravatar_id":"","url":"https://api.github.com/users/smithsz","html_url":"https://github.com/smithsz","followers_url":"https://api.github.com/users/smithsz/followers","following_url":"https://api.github.com/users/smithsz/following{/other_user}","gists_url":"https://api.github.com/users/smithsz/gists{/gist_id}","starred_url":"https://api.github.com/users/smithsz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smithsz/subscriptions","organizations_url":"https://api.github.com/users/smithsz/orgs","repos_url":"https://api.github.com/users/smithsz/repos","events_url":"https://api.github.com/users/smithsz/events{/privacy}","received_events_url":"https://api.github.com/users/smithsz/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cloudant/python-cloudant/pulls/379/commits","review_comments_url":"https://api.github.com/repos/cloudant/python-cloudant/pulls/379/comments","review_comment_url":"https://api.github.com/repos/cloudant/python-cloudant/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudant/python-cloudant/issues/379/comments","statuses_url":"https://api.github.com/repos/cloudant/python-cloudant/statuses/58b37513245431b78a9f1d5f5abf8d3fc6380697","head":{"label":"cloudant:347-scheduler-endpoints","ref":"347-scheduler-endpoints","sha":"58b37513245431b78a9f1d5f5abf8d3fc6380697","user":{"login":"cloudant","id":44642,"avatar_url":"https://avatars0.githubusercontent.com/u/44642?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudant","html_url":"https://github.com/cloudant","followers_url":"https://api.github.com/users/cloudant/followers","following_url":"https://api.github.com/users/cloudant/following{/other_user}","gists_url":"https://api.github.com/users/cloudant/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant/subscriptions","organizations_url":"https://api.github.com/users/cloudant/orgs","repos_url":"https://api.github.com/users/cloudant/repos","events_url":"https://api.github.com/users/cloudant/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant/received_events","type":"Organization","site_admin":false},"repo":{"id":41557383,"name":"python-cloudant","full_name":"cloudant/python-cloudant","owner":{"login":"cloudant","id":44642,"avatar_url":"https://avatars0.githubusercontent.com/u/44642?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudant","html_url":"https://github.com/cloudant","followers_url":"https://api.github.com/users/cloudant/followers","following_url":"https://api.github.com/users/cloudant/following{/other_user}","gists_url":"https://api.github.com/users/cloudant/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant/subscriptions","organizations_url":"https://api.github.com/users/cloudant/orgs","repos_url":"https://api.github.com/users/cloudant/repos","events_url":"https://api.github.com/users/cloudant/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudant/python-cloudant","description":"A Python library for Cloudant and CouchDB","fork":false,"url":"https://api.github.com/repos/cloudant/python-cloudant","forks_url":"https://api.github.com/repos/cloudant/python-cloudant/forks","keys_url":"https://api.github.com/repos/cloudant/python-cloudant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudant/python-cloudant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudant/python-cloudant/teams","hooks_url":"https://api.github.com/repos/cloudant/python-cloudant/hooks","issue_events_url":"https://api.github.com/repos/cloudant/python-cloudant/issues/events{/number}","events_url":"https://api.github.com/repos/cloudant/python-cloudant/events","assignees_url":"https://api.github.com/repos/cloudant/python-cloudant/assignees{/user}","branches_url":"https://api.github.com/repos/cloudant/python-cloudant/branches{/branch}","tags_url":"https://api.github.com/repos/cloudant/python-cloudant/tags","blobs_url":"https://api.github.com/repos/cloudant/python-cloudant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudant/python-cloudant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudant/python-cloudant/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudant/python-cloudant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudant/python-cloudant/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudant/python-cloudant/languages","stargazers_url":"https://api.github.com/repos/cloudant/python-cloudant/stargazers","contributors_url":"https://api.github.com/repos/cloudant/python-cloudant/contributors","subscribers_url":"https://api.github.com/repos/cloudant/python-cloudant/subscribers","subscription_url":"https://api.github.com/repos/cloudant/python-cloudant/subscription","commits_url":"https://api.github.com/repos/cloudant/python-cloudant/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudant/python-cloudant/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudant/python-cloudant/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudant/python-cloudant/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudant/python-cloudant/contents/{+path}","compare_url":"https://api.github.com/repos/cloudant/python-cloudant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudant/python-cloudant/merges","archive_url":"https://api.github.com/repos/cloudant/python-cloudant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudant/python-cloudant/downloads","issues_url":"https://api.github.com/repos/cloudant/python-cloudant/issues{/number}","pulls_url":"https://api.github.com/repos/cloudant/python-cloudant/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudant/python-cloudant/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudant/python-cloudant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudant/python-cloudant/labels{/name}","releases_url":"https://api.github.com/repos/cloudant/python-cloudant/releases{/id}","deployments_url":"https://api.github.com/repos/cloudant/python-cloudant/deployments","created_at":"2015-08-28T16:22:49Z","updated_at":"2018-05-02T00:00:46Z","pushed_at":"2018-05-02T13:34:29Z","git_url":"git://github.com/cloudant/python-cloudant.git","ssh_url":"git@github.com:cloudant/python-cloudant.git","clone_url":"https://github.com/cloudant/python-cloudant.git","svn_url":"https://github.com/cloudant/python-cloudant","homepage":null,"size":1167,"stargazers_count":65,"watchers_count":65,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"archived":false,"open_issues_count":43,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":23,"open_issues":43,"watchers":65,"default_branch":"master"}},"base":{"label":"cloudant:master","ref":"master","sha":"51fb2ae79c045aac64cf70de54e96302b49914a2","user":{"login":"cloudant","id":44642,"avatar_url":"https://avatars0.githubusercontent.com/u/44642?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudant","html_url":"https://github.com/cloudant","followers_url":"https://api.github.com/users/cloudant/followers","following_url":"https://api.github.com/users/cloudant/following{/other_user}","gists_url":"https://api.github.com/users/cloudant/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant/subscriptions","organizations_url":"https://api.github.com/users/cloudant/orgs","repos_url":"https://api.github.com/users/cloudant/repos","events_url":"https://api.github.com/users/cloudant/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant/received_events","type":"Organization","site_admin":false},"repo":{"id":41557383,"name":"python-cloudant","full_name":"cloudant/python-cloudant","owner":{"login":"cloudant","id":44642,"avatar_url":"https://avatars0.githubusercontent.com/u/44642?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudant","html_url":"https://github.com/cloudant","followers_url":"https://api.github.com/users/cloudant/followers","following_url":"https://api.github.com/users/cloudant/following{/other_user}","gists_url":"https://api.github.com/users/cloudant/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudant/subscriptions","organizations_url":"https://api.github.com/users/cloudant/orgs","repos_url":"https://api.github.com/users/cloudant/repos","events_url":"https://api.github.com/users/cloudant/events{/privacy}","received_events_url":"https://api.github.com/users/cloudant/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudant/python-cloudant","description":"A Python library for Cloudant and CouchDB","fork":false,"url":"https://api.github.com/repos/cloudant/python-cloudant","forks_url":"https://api.github.com/repos/cloudant/python-cloudant/forks","keys_url":"https://api.github.com/repos/cloudant/python-cloudant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudant/python-cloudant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudant/python-cloudant/teams","hooks_url":"https://api.github.com/repos/cloudant/python-cloudant/hooks","issue_events_url":"https://api.github.com/repos/cloudant/python-cloudant/issues/events{/number}","events_url":"https://api.github.com/repos/cloudant/python-cloudant/events","assignees_url":"https://api.github.com/repos/cloudant/python-cloudant/assignees{/user}","branches_url":"https://api.github.com/repos/cloudant/python-cloudant/branches{/branch}","tags_url":"https://api.github.com/repos/cloudant/python-cloudant/tags","blobs_url":"https://api.github.com/repos/cloudant/python-cloudant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudant/python-cloudant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudant/python-cloudant/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudant/python-cloudant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudant/python-cloudant/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudant/python-cloudant/languages","stargazers_url":"https://api.github.com/repos/cloudant/python-cloudant/stargazers","contributors_url":"https://api.github.com/repos/cloudant/python-cloudant/contributors","subscribers_url":"https://api.github.com/repos/cloudant/python-cloudant/subscribers","subscription_url":"https://api.github.com/repos/cloudant/python-cloudant/subscription","commits_url":"https://api.github.com/repos/cloudant/python-cloudant/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudant/python-cloudant/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudant/python-cloudant/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudant/python-cloudant/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudant/python-cloudant/contents/{+path}","compare_url":"https://api.github.com/repos/cloudant/python-cloudant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudant/python-cloudant/merges","archive_url":"https://api.github.com/repos/cloudant/python-cloudant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudant/python-cloudant/downloads","issues_url":"https://api.github.com/repos/cloudant/python-cloudant/issues{/number}","pulls_url":"https://api.github.com/repos/cloudant/python-cloudant/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudant/python-cloudant/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudant/python-cloudant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudant/python-cloudant/labels{/name}","releases_url":"https://api.github.com/repos/cloudant/python-cloudant/releases{/id}","deployments_url":"https://api.github.com/repos/cloudant/python-cloudant/deployments","created_at":"2015-08-28T16:22:49Z","updated_at":"2018-05-02T00:00:46Z","pushed_at":"2018-05-02T13:34:29Z","git_url":"git://github.com/cloudant/python-cloudant.git","ssh_url":"git@github.com:cloudant/python-cloudant.git","clone_url":"https://github.com/cloudant/python-cloudant.git","svn_url":"https://github.com/cloudant/python-cloudant","homepage":null,"size":1167,"stargazers_count":65,"watchers_count":65,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"archived":false,"open_issues_count":43,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":23,"open_issues":43,"watchers":65,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudant/python-cloudant/pulls/379"},"html":{"href":"https://github.com/cloudant/python-cloudant/pull/379"},"issue":{"href":"https://api.github.com/repos/cloudant/python-cloudant/issues/379"},"comments":{"href":"https://api.github.com/repos/cloudant/python-cloudant/issues/379/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudant/python-cloudant/pulls/379/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudant/python-cloudant/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudant/python-cloudant/pulls/379/commits"},"statuses":{"href":"https://api.github.com/repos/cloudant/python-cloudant/statuses/58b37513245431b78a9f1d5f5abf8d3fc6380697"}},"author_association":"NONE"}}
{"actor":{"display_login":"tomblench"}}