{"action":"closed","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/1674","repository_url":"https://api.github.com/repos/couchbase/couchbase-lite-android","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/1674/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/1674/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/1674/events","html_url":"https://github.com/couchbase/couchbase-lite-android/issues/1674","id":307573158,"number":1674,"title":"ReplicatorConfiguration.setDocumentIDs has no effect","user":{"login":"kuscsik","id":349209,"avatar_url":"https://avatars3.githubusercontent.com/u/349209?v=4","gravatar_id":"","url":"https://api.github.com/users/kuscsik","html_url":"https://github.com/kuscsik","followers_url":"https://api.github.com/users/kuscsik/followers","following_url":"https://api.github.com/users/kuscsik/following{/other_user}","gists_url":"https://api.github.com/users/kuscsik/gists{/gist_id}","starred_url":"https://api.github.com/users/kuscsik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuscsik/subscriptions","organizations_url":"https://api.github.com/users/kuscsik/orgs","repos_url":"https://api.github.com/users/kuscsik/repos","events_url":"https://api.github.com/users/kuscsik/events{/privacy}","received_events_url":"https://api.github.com/users/kuscsik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/milestones/21","html_url":"https://github.com/couchbase/couchbase-lite-android/milestone/21","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/milestones/21/labels","id":2351744,"number":21,"title":"2.0.0","description":"","creator":{"login":"djpongh","id":21346920,"avatar_url":"https://avatars3.githubusercontent.com/u/21346920?v=4","gravatar_id":"","url":"https://api.github.com/users/djpongh","html_url":"https://github.com/djpongh","followers_url":"https://api.github.com/users/djpongh/followers","following_url":"https://api.github.com/users/djpongh/following{/other_user}","gists_url":"https://api.github.com/users/djpongh/gists{/gist_id}","starred_url":"https://api.github.com/users/djpongh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djpongh/subscriptions","organizations_url":"https://api.github.com/users/djpongh/orgs","repos_url":"https://api.github.com/users/djpongh/repos","events_url":"https://api.github.com/users/djpongh/events{/privacy}","received_events_url":"https://api.github.com/users/djpongh/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":91,"state":"open","created_at":"2017-02-27T23:29:14Z","updated_at":"2018-03-22T20:38:15Z","due_on":"2018-02-28T08:00:00Z","closed_at":null},"comments":2,"created_at":"2018-03-22T09:55:43Z","updated_at":"2018-03-22T20:38:15Z","closed_at":"2018-03-22T20:38:15Z","author_association":"NONE","body":"Setting document ID in replicator configuration has no effect, pull replication not working.\r\n\r\nlite client v2\r\ncommit tested: 881cea188578bb86406e69b4c52ca7c2b48bc88a\r\n\r\nSteps to reproduce:\r\n\r\n1. Created document X using couchbase sync REST API.\r\n2. Android client sets up a push-pull replication of document X. setDocumentIDs() used to specify the document ID.\r\n3. Android client subscribes to document changes using addDocumentChangeListener(..)\r\n4. Modify document X using couchbase sync REST API.\r\n\r\nExpected outcome: Android device should receive the updated document.\r\nActual outcome: document update is not received.\r\n\r\nIn case setDocumentIDs() is not used at all, the client is successfully notified about document changes.\r\n\r\nReplicator config:\r\n```java\r\n        ReplicatorConfiguration replicatorConfiguration = new ReplicatorConfiguration(database, endpoint);\r\n        replicatorConfiguration.setReplicatorType(ReplicatorType.PUSH_AND_PULL);\r\n        replicatorConfiguration.setContinuous(true);\r\n        replicatorConfiguration.setAuthenticator(auth);\r\n        replicatorConfiguration.setDocumentIDs(docIds);\r\n```\r\n\r\nNote:\r\nAlso tested on the latest master branch, the document change listener is called on update of the document, but the document is not being pulled/synchronized as expected."}}
{"actor":{"display_login":"djpongh"}}