{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/1103","repository_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/1103/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/1103/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/1103/events","html_url":"https://github.com/couchbase/couchbase-lite-java-core/issues/1103","id":140595998,"number":1103,"title":"_changes does not match Apache CouchDB with \"since=now\" support","user":{"login":"tjdett","id":437845,"avatar_url":"https://avatars.githubusercontent.com/u/437845?v=3","gravatar_id":"","url":"https://api.github.com/users/tjdett","html_url":"https://github.com/tjdett","followers_url":"https://api.github.com/users/tjdett/followers","following_url":"https://api.github.com/users/tjdett/following{/other_user}","gists_url":"https://api.github.com/users/tjdett/gists{/gist_id}","starred_url":"https://api.github.com/users/tjdett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjdett/subscriptions","organizations_url":"https://api.github.com/users/tjdett/orgs","repos_url":"https://api.github.com/users/tjdett/repos","events_url":"https://api.github.com/users/tjdett/events{/privacy}","received_events_url":"https://api.github.com/users/tjdett/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/labels/backlog","name":"backlog","color":"ededed"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/milestones/10","html_url":"https://github.com/couchbase/couchbase-lite-java-core/milestones/1.5","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/milestones/10/labels","id":1846140,"number":10,"title":"1.5","description":"Place holder for post 1.3","creator":{"login":"hideki","id":15889,"avatar_url":"https://avatars.githubusercontent.com/u/15889?v=3","gravatar_id":"","url":"https://api.github.com/users/hideki","html_url":"https://github.com/hideki","followers_url":"https://api.github.com/users/hideki/followers","following_url":"https://api.github.com/users/hideki/following{/other_user}","gists_url":"https://api.github.com/users/hideki/gists{/gist_id}","starred_url":"https://api.github.com/users/hideki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideki/subscriptions","organizations_url":"https://api.github.com/users/hideki/orgs","repos_url":"https://api.github.com/users/hideki/repos","events_url":"https://api.github.com/users/hideki/events{/privacy}","received_events_url":"https://api.github.com/users/hideki/received_events","type":"User","site_admin":false},"open_issues":87,"closed_issues":24,"state":"open","created_at":"2016-06-23T20:38:56Z","updated_at":"2016-10-07T23:33:07Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-03-14T07:24:43Z","updated_at":"2016-10-07T23:46:02Z","closed_at":null,"body":"In Apache CouchDB, the `_changes` option for `since` can be specified either as a sequence number, or \"now\" as an alias for the most recent sequence number.\r\n<http://docs.couchdb.org/en/stable/api/database/changes.html>\r\n\r\nThe implementation does not support the second case. `Router` [assumes since is an integer](https://github.com/couchbase/couchbase-lite-java-core/blob/dd1aac476618c54d4fefb1ebf256a82efa8fa11a/src/main/java/com/couchbase/lite/router/Router.java#L1583), resulting in a `400 Bad Request` response.\r\n\r\n[Sohva](https://github.com/gnieh/sohva) is currently an example of a CouchDB client library which [assumes `since=now` is permissible](https://github.com/gnieh/sohva/blob/488274bb4a973edf339fbca9ecb5ac4cc56f53aa/sohva-client/src/main/scala/gnieh/sohva/async/ChangeStream.scala#L106).\r\n\r\n(Tested with couchbase-lite-java-core 1.2.0, but cause verified in current master.)"},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/comments/252385853","html_url":"https://github.com/couchbase/couchbase-lite-java-core/issues/1103#issuecomment-252385853","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/1103","id":252385853,"user":{"login":"pasin","id":801454,"avatar_url":"https://avatars.githubusercontent.com/u/801454?v=3","gravatar_id":"","url":"https://api.github.com/users/pasin","html_url":"https://github.com/pasin","followers_url":"https://api.github.com/users/pasin/followers","following_url":"https://api.github.com/users/pasin/following{/other_user}","gists_url":"https://api.github.com/users/pasin/gists{/gist_id}","starred_url":"https://api.github.com/users/pasin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pasin/subscriptions","organizations_url":"https://api.github.com/users/pasin/orgs","repos_url":"https://api.github.com/users/pasin/repos","events_url":"https://api.github.com/users/pasin/events{/privacy}","received_events_url":"https://api.github.com/users/pasin/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T23:46:02Z","updated_at":"2016-10-07T23:46:02Z","body":"I created the API issue here : https://github.com/couchbaselabs/couchbase-lite-api/issues/164."}}
{"actor":{"display_login":"pasin"}}