{"action":"created","comment":{"url":"https://api.github.com/repos/cloudant/CDTDatastore/pulls/comments/77354605","id":77354605,"diff_hunk":"@@ -0,0 +1,45 @@\n+//\n+// Created by Rhys Short on 02/09/2016.\n+// Copyright © 2016 IBM Corporation. All rights reserved.\n+//\n+//  Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file\n+//  except in compliance with the License. You may obtain a copy of the License at\n+//    http://www.apache.org/licenses/LICENSE-2.0\n+//  Unless required by applicable law or agreed to in writing, software distributed under the\n+//  License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\n+//  either express or implied. See the License for the specific language governing permissions\n+//  and limitations under the License.\n+\n+#import <Foundation/Foundation.h>\n+#import \"CDTDatastore.h\"\n+#import \"CDTReplicatorDelegate.h\"\n+\n+NS_ASSUME_NONNULL_BEGIN\n+\n+@interface CDTDatastore (Replication)\n+\n+/**\n+ * Creates a push replicator.\n+ * @param target The URL of the remote database to push to.\n+ * @param delegate An optional delegate for the replication\n+ * @param error A pointer to an error that will be set if the replicator could not be created.\n+ * @return A push replication.\n+ */\n+- (nullable CDTReplicator*) pushReplicationTarget:(NSURL*)target\n+                                     withDelegate:(nullable NSObject<CDTReplicatorDelegate>*)delegate\n+                                            error:(NSError *__autoreleasing *) error;\n+\n+/**\n+ * Creates a pull replicator.\n+ * @param source The URL of the database from which to pull from.\n+ * @param delegate An optional delegate for the replication.\n+ * @param error A pointer to an error that will be set if the replicator could not be created.\n+ * @return A pull replicator.\n+ */\n+- (nullable CDTReplicator*) pullReplicationSource:(NSURL*)source\n+                            withDelegate:(nullable NSObject<CDTReplicatorDelegate>*)delegate","path":"CDTDatastore/CDTReplicator/CDTDatastore+Replication.h","position":null,"original_position":40,"commit_id":"19c2fe01640041f25ce2058758d413d748c42593","original_commit_id":"a524c88629b1595b059948bb0dddfe1b9d34e65e","user":{"login":"rhyshort","id":1616727,"avatar_url":"https://avatars.githubusercontent.com/u/1616727?v=3","gravatar_id":"","url":"https://api.github.com/users/rhyshort","html_url":"https://github.com/rhyshort","followers_url":"https://api.github.com/users/rhyshort/followers","following_url":"https://api.github.com/users/rhyshort/following{/other_user}","gists_url":"https://api.github.com/users/rhyshort/gists{/gist_id}","starred_url":"https://api.github.com/users/rhyshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhyshort/subscriptions","organizations_url":"https://api.github.com/users/rhyshort/orgs","repos_url":"https://api.github.com/users/rhyshort/repos","events_url":"https://api.github.com/users/rhyshort/events{/privacy}","received_events_url":"https://api.github.com/users/rhyshort/received_events","type":"User","site_admin":false},"body":"done in 19c2fe0","created_at":"2016-09-02T14:25:17Z","updated_at":"2016-09-02T14:25:17Z","html_url":"https://github.com/cloudant/CDTDatastore/pull/318#discussion_r77354605","pull_request_url":"https://api.github.com/repos/cloudant/CDTDatastore/pulls/318","_links":{"self":{"href":"https://api.github.com/repos/cloudant/CDTDatastore/pulls/comments/77354605"},"html":{"href":"https://github.com/cloudant/CDTDatastore/pull/318#discussion_r77354605"},"pull_request":{"href":"https://api.github.com/repos/cloudant/CDTDatastore/pulls/318"}}},"pull_request":{"url":"https://api.github.com/repos/cloudant/CDTDatastore/pulls/318","id":83802794,"html_url":"https://github.com/cloudant/CDTDatastore/pull/318","diff_url":"https://github.com/cloudant/CDTDatastore/pull/318.diff","patch_url":"https://github.com/cloudant/CDTDatastore/pull/318.patch","issue_url":"https://api.github.com/repos/cloudant/CDTDatastore/issues/318","number":318,"state":"open","locked":false,"title":"Created category on CDTDatastore to manage replications","user":{"login":"rhyshort","id":1616727,"avatar_url":"https://avatars.githubusercontent.com/u/1616727?v=3","gravatar_id":"","url":"https://api.github.com/users/rhyshort","html_url":"https://github.com/rhyshort","followers_url":"https://api.github.com/users/rhyshort/followers","following_url":"https://api.github.com/users/rhyshort/following{/other_user}","gists_url":"https://api.github.com/users/rhyshort/gists{/gist_id}","starred_url":"https://api.github.com/users/rhyshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhyshort/subscriptions","organizations_url":"https://api.github.com/users/rhyshort/orgs","repos_url":"https://api.github.com/users/rhyshort/repos","events_url":"https://api.github.com/users/rhyshort/events{/privacy}","received_events_url":"https://api.github.com/users/rhyshort/received_events","type":"User","site_admin":false},"body":"## What\r\nCreate category on CDTDatastore to manage replications \r\n\r\n## Why\r\nCurrently is a pain to set up a replication when all you want to do is set up a simple push or pull replication eg a replication with no filters or interceptors.\r\n\r\n## Tests\r\n\r\nNew tests added to DatastoreReplicationTests to check that the replicator is created as intended.\r\n\r\n## Issues\r\n\r\nResolves #267","created_at":"2016-09-02T13:37:23Z","updated_at":"2016-09-02T14:25:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d9b4db1f1ef49c0858953d46cdb19c5ef6b2e6e9","assignee":{"login":"brynh","id":12249863,"avatar_url":"https://avatars.githubusercontent.com/u/12249863?v=3","gravatar_id":"","url":"https://api.github.com/users/brynh","html_url":"https://github.com/brynh","followers_url":"https://api.github.com/users/brynh/followers","following_url":"https://api.github.com/users/brynh/following{/other_user}","gists_url":"https://api.github.com/users/brynh/gists{/gist_id}","starred_url":"https://api.github.com/users/brynh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brynh/subscriptions","organizations_url":"https://api.github.com/users/brynh/orgs","repos_url":"https://api.github.com/users/brynh/repos","events_url":"https://api.github.com/users/brynh/events{/privacy}","received_events_url":"https://api.github.com/users/brynh/received_events","type":"User","site_admin":false},"assignees":[{"login":"brynh","id":12249863,"avatar_url":"https://avatars.githubusercontent.com/u/12249863?v=3","gravatar_id":"","url":"https://api.github.com/users/brynh","html_url":"https://github.com/brynh","followers_url":"https://api.github.com/users/brynh/followers","following_url":"https://api.github.com/users/brynh/following{/other_user}","gists_url":"https://api.github.com/users/brynh/gists{/gist_id}","starred_url":"https://api.github.com/users/brynh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brynh/subscriptions","organizations_url":"https://api.github.com/users/brynh/orgs","repos_url":"https://api.github.com/users/brynh/repos","events_url":"https://api.github.com/users/brynh/events{/privacy}","received_events_url":"https://api.github.com/users/brynh/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/cloudant/CDTDatastore/pulls/318/commits","review_comments_url":"https://api.github.com/repos/cloudant/CDTDatastore/pulls/318/comments","review_comment_url":"https://api.github.com/repos/cloudant/CDTDatastore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudant/CDTDatastore/issues/318/comments","statuses_url":"https://api.github.com/repos/cloudant/CDTDatastore/statuses/19c2fe01640041f25ce2058758d413d748c42593","head":{"label":"cloudant:267-replication-cat","ref":"267-replication-cat","sha":"19c2fe01640041f25ce2058758d413d748c42593","user":{"login":"cloudant","id":44642,"avatar_url":"https://avatars.githubusercontent.com/u/44642?v=3","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":15022868,"name":"CDTDatastore","full_name":"cloudant/CDTDatastore","owner":{"login":"cloudant","id":44642,"avatar_url":"https://avatars.githubusercontent.com/u/44642?v=3","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/CDTDatastore","description":"Cloudant Sync iOS datastore library.","fork":false,"url":"https://api.github.com/repos/cloudant/CDTDatastore","forks_url":"https://api.github.com/repos/cloudant/CDTDatastore/forks","keys_url":"https://api.github.com/repos/cloudant/CDTDatastore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudant/CDTDatastore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudant/CDTDatastore/teams","hooks_url":"https://api.github.com/repos/cloudant/CDTDatastore/hooks","issue_events_url":"https://api.github.com/repos/cloudant/CDTDatastore/issues/events{/number}","events_url":"https://api.github.com/repos/cloudant/CDTDatastore/events","assignees_url":"https://api.github.com/repos/cloudant/CDTDatastore/assignees{/user}","branches_url":"https://api.github.com/repos/cloudant/CDTDatastore/branches{/branch}","tags_url":"https://api.github.com/repos/cloudant/CDTDatastore/tags","blobs_url":"https://api.github.com/repos/cloudant/CDTDatastore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudant/CDTDatastore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudant/CDTDatastore/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudant/CDTDatastore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudant/CDTDatastore/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudant/CDTDatastore/languages","stargazers_url":"https://api.github.com/repos/cloudant/CDTDatastore/stargazers","contributors_url":"https://api.github.com/repos/cloudant/CDTDatastore/contributors","subscribers_url":"https://api.github.com/repos/cloudant/CDTDatastore/subscribers","subscription_url":"https://api.github.com/repos/cloudant/CDTDatastore/subscription","commits_url":"https://api.github.com/repos/cloudant/CDTDatastore/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudant/CDTDatastore/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudant/CDTDatastore/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudant/CDTDatastore/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudant/CDTDatastore/contents/{+path}","compare_url":"https://api.github.com/repos/cloudant/CDTDatastore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudant/CDTDatastore/merges","archive_url":"https://api.github.com/repos/cloudant/CDTDatastore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudant/CDTDatastore/downloads","issues_url":"https://api.github.com/repos/cloudant/CDTDatastore/issues{/number}","pulls_url":"https://api.github.com/repos/cloudant/CDTDatastore/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudant/CDTDatastore/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudant/CDTDatastore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudant/CDTDatastore/labels{/name}","releases_url":"https://api.github.com/repos/cloudant/CDTDatastore/releases{/id}","deployments_url":"https://api.github.com/repos/cloudant/CDTDatastore/deployments","created_at":"2013-12-08T11:59:05Z","updated_at":"2016-08-31T17:04:37Z","pushed_at":"2016-09-02T14:24:34Z","git_url":"git://github.com/cloudant/CDTDatastore.git","ssh_url":"git@github.com:cloudant/CDTDatastore.git","clone_url":"https://github.com/cloudant/CDTDatastore.git","svn_url":"https://github.com/cloudant/CDTDatastore","homepage":null,"size":7449,"stargazers_count":118,"watchers_count":118,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":45,"forks":28,"open_issues":45,"watchers":118,"default_branch":"master"}},"base":{"label":"cloudant:master","ref":"master","sha":"a43a5cab51b98f68b3a041ec3578d1052d943c15","user":{"login":"cloudant","id":44642,"avatar_url":"https://avatars.githubusercontent.com/u/44642?v=3","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":15022868,"name":"CDTDatastore","full_name":"cloudant/CDTDatastore","owner":{"login":"cloudant","id":44642,"avatar_url":"https://avatars.githubusercontent.com/u/44642?v=3","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/CDTDatastore","description":"Cloudant Sync iOS datastore library.","fork":false,"url":"https://api.github.com/repos/cloudant/CDTDatastore","forks_url":"https://api.github.com/repos/cloudant/CDTDatastore/forks","keys_url":"https://api.github.com/repos/cloudant/CDTDatastore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudant/CDTDatastore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudant/CDTDatastore/teams","hooks_url":"https://api.github.com/repos/cloudant/CDTDatastore/hooks","issue_events_url":"https://api.github.com/repos/cloudant/CDTDatastore/issues/events{/number}","events_url":"https://api.github.com/repos/cloudant/CDTDatastore/events","assignees_url":"https://api.github.com/repos/cloudant/CDTDatastore/assignees{/user}","branches_url":"https://api.github.com/repos/cloudant/CDTDatastore/branches{/branch}","tags_url":"https://api.github.com/repos/cloudant/CDTDatastore/tags","blobs_url":"https://api.github.com/repos/cloudant/CDTDatastore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudant/CDTDatastore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudant/CDTDatastore/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudant/CDTDatastore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudant/CDTDatastore/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudant/CDTDatastore/languages","stargazers_url":"https://api.github.com/repos/cloudant/CDTDatastore/stargazers","contributors_url":"https://api.github.com/repos/cloudant/CDTDatastore/contributors","subscribers_url":"https://api.github.com/repos/cloudant/CDTDatastore/subscribers","subscription_url":"https://api.github.com/repos/cloudant/CDTDatastore/subscription","commits_url":"https://api.github.com/repos/cloudant/CDTDatastore/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudant/CDTDatastore/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudant/CDTDatastore/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudant/CDTDatastore/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudant/CDTDatastore/contents/{+path}","compare_url":"https://api.github.com/repos/cloudant/CDTDatastore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudant/CDTDatastore/merges","archive_url":"https://api.github.com/repos/cloudant/CDTDatastore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudant/CDTDatastore/downloads","issues_url":"https://api.github.com/repos/cloudant/CDTDatastore/issues{/number}","pulls_url":"https://api.github.com/repos/cloudant/CDTDatastore/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudant/CDTDatastore/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudant/CDTDatastore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudant/CDTDatastore/labels{/name}","releases_url":"https://api.github.com/repos/cloudant/CDTDatastore/releases{/id}","deployments_url":"https://api.github.com/repos/cloudant/CDTDatastore/deployments","created_at":"2013-12-08T11:59:05Z","updated_at":"2016-08-31T17:04:37Z","pushed_at":"2016-09-02T14:24:34Z","git_url":"git://github.com/cloudant/CDTDatastore.git","ssh_url":"git@github.com:cloudant/CDTDatastore.git","clone_url":"https://github.com/cloudant/CDTDatastore.git","svn_url":"https://github.com/cloudant/CDTDatastore","homepage":null,"size":7449,"stargazers_count":118,"watchers_count":118,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":45,"forks":28,"open_issues":45,"watchers":118,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudant/CDTDatastore/pulls/318"},"html":{"href":"https://github.com/cloudant/CDTDatastore/pull/318"},"issue":{"href":"https://api.github.com/repos/cloudant/CDTDatastore/issues/318"},"comments":{"href":"https://api.github.com/repos/cloudant/CDTDatastore/issues/318/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudant/CDTDatastore/pulls/318/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudant/CDTDatastore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudant/CDTDatastore/pulls/318/commits"},"statuses":{"href":"https://api.github.com/repos/cloudant/CDTDatastore/statuses/19c2fe01640041f25ce2058758d413d748c42593"}}}}
{"actor":{"display_login":"rhyshort"}}