{"action":"created","issue":{"url":"https://api.github.com/repos/cloudant/couchdb-couch-replicator/issues/91","repository_url":"https://api.github.com/repos/cloudant/couchdb-couch-replicator","labels_url":"https://api.github.com/repos/cloudant/couchdb-couch-replicator/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/cloudant/couchdb-couch-replicator/issues/91/comments","events_url":"https://api.github.com/repos/cloudant/couchdb-couch-replicator/issues/91/events","html_url":"https://github.com/cloudant/couchdb-couch-replicator/pull/91","id":184394525,"number":91,"title":"Canceling a transient replication via a \"replication_id\" works again","user":{"login":"nickva","id":211822,"avatar_url":"https://avatars.githubusercontent.com/u/211822?v=3","gravatar_id":"","url":"https://api.github.com/users/nickva","html_url":"https://github.com/nickva","followers_url":"https://api.github.com/users/nickva/followers","following_url":"https://api.github.com/users/nickva/following{/other_user}","gists_url":"https://api.github.com/users/nickva/gists{/gist_id}","starred_url":"https://api.github.com/users/nickva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickva/subscriptions","organizations_url":"https://api.github.com/users/nickva/orgs","repos_url":"https://api.github.com/users/nickva/repos","events_url":"https://api.github.com/users/nickva/events{/privacy}","received_events_url":"https://api.github.com/users/nickva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-21T03:59:46Z","updated_at":"2016-10-21T14:44:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cloudant/couchdb-couch-replicator/pulls/91","html_url":"https://github.com/cloudant/couchdb-couch-replicator/pull/91","diff_url":"https://github.com/cloudant/couchdb-couch-replicator/pull/91.diff","patch_url":"https://github.com/cloudant/couchdb-couch-replicator/pull/91.patch"},"body":"Canceling a transient replication by POST-ing to _replicate was failing because\r\nit was assumed request body had to always be well-formed (with source, target,\r\n...).\r\n\r\nHowever it is valid to cancel a replication with a body which has just\r\n`\"cancel\": true` and either `replication_id`, `id` or `_local_id` fields.\r\n\r\nExample:\r\n\r\nCreating a transient continuous replication\r\n```\r\nhttp --auth=adm:pass :15984/_replicate \\\r\n  source='http://adm:pass@localhost:15984/s' \\\r\n  target='http://adm:pass@localhost:15984/r' \\\r\n  create_target:='true' \\\r\n  continuous:='true'\r\n{\r\n    \"_local_id\": \"14ed9e9f8411232bdcd2387a8f578806+continuous+create_target\",\r\n    \"ok\": true\r\n}\r\n```\r\n\r\nCanceling\r\n\r\n```\r\nhttp --auth=adm:pass :15984/_replicate \\\r\n  cancel:='true' \\\r\n  replication_id='14ed9e9f8411232bdcd2387a8f578806+continuous+create_target'\r\n{\r\n    \"_local_id\": \"14ed9e9f8411232bdcd2387a8f578806+continuous+create_target\",\r\n    \"ok\": true\r\n}\r\n```\r\n\r\nLog shows:\r\n\r\n```\r\nCanceling replication '14ed9e9f8411232bdcd2387a8f578806+continuous+create_target'\r\n```"},"comment":{"url":"https://api.github.com/repos/cloudant/couchdb-couch-replicator/issues/comments/255396510","html_url":"https://github.com/cloudant/couchdb-couch-replicator/pull/91#issuecomment-255396510","issue_url":"https://api.github.com/repos/cloudant/couchdb-couch-replicator/issues/91","id":255396510,"user":{"login":"rnewson","id":47223,"avatar_url":"https://avatars.githubusercontent.com/u/47223?v=3","gravatar_id":"","url":"https://api.github.com/users/rnewson","html_url":"https://github.com/rnewson","followers_url":"https://api.github.com/users/rnewson/followers","following_url":"https://api.github.com/users/rnewson/following{/other_user}","gists_url":"https://api.github.com/users/rnewson/gists{/gist_id}","starred_url":"https://api.github.com/users/rnewson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnewson/subscriptions","organizations_url":"https://api.github.com/users/rnewson/orgs","repos_url":"https://api.github.com/users/rnewson/repos","events_url":"https://api.github.com/users/rnewson/events{/privacy}","received_events_url":"https://api.github.com/users/rnewson/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T14:44:52Z","updated_at":"2016-10-21T14:44:52Z","body":"+1"}}
{"actor":{"display_login":"rnewson"}}