{"action":"closed","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/535","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/535/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/535/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/535/events","html_url":"https://github.com/couchbase/couchbase-lite-android/issues/535","id":59480826,"number":535,"title":"Preexisting documents in a channel are not replicating to the client.","user":{"login":"J-R-W","id":8051304,"avatar_url":"https://avatars.githubusercontent.com/u/8051304?v=3","gravatar_id":"","url":"https://api.github.com/users/J-R-W","html_url":"https://github.com/J-R-W","followers_url":"https://api.github.com/users/J-R-W/followers","following_url":"https://api.github.com/users/J-R-W/following{/other_user}","gists_url":"https://api.github.com/users/J-R-W/gists{/gist_id}","starred_url":"https://api.github.com/users/J-R-W/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/J-R-W/subscriptions","organizations_url":"https://api.github.com/users/J-R-W/orgs","repos_url":"https://api.github.com/users/J-R-W/repos","events_url":"https://api.github.com/users/J-R-W/events{/privacy}","received_events_url":"https://api.github.com/users/J-R-W/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/labels/P2:%20medium","name":"P2: medium","color":"eb6420"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/labels/release-prep","name":"release-prep","color":"207de5"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/labels/reproduce/investigate","name":"reproduce/investigate","color":"fbca04"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/labels/review","name":"review","color":"ededed"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/labels/S3:%20major","name":"S3: major","color":"fbca04"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/labels/size-large","name":"size-large","color":"f7c6c7"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/labels/testneeded","name":"testneeded","color":"5319e7"}],"state":"closed","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/milestones/14","html_url":"https://github.com/couchbase/couchbase-lite-android/milestones/1.1.0","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/milestones/14/labels","id":1092857,"number":14,"title":"1.1.0","description":"","creator":{"login":"zgramana","id":759830,"avatar_url":"https://avatars.githubusercontent.com/u/759830?v=3","gravatar_id":"","url":"https://api.github.com/users/zgramana","html_url":"https://github.com/zgramana","followers_url":"https://api.github.com/users/zgramana/followers","following_url":"https://api.github.com/users/zgramana/following{/other_user}","gists_url":"https://api.github.com/users/zgramana/gists{/gist_id}","starred_url":"https://api.github.com/users/zgramana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zgramana/subscriptions","organizations_url":"https://api.github.com/users/zgramana/orgs","repos_url":"https://api.github.com/users/zgramana/repos","events_url":"https://api.github.com/users/zgramana/events{/privacy}","received_events_url":"https://api.github.com/users/zgramana/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":6,"state":"open","created_at":"2015-05-01T18:47:43Z","updated_at":"2015-05-12T18:43:15Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2015-03-02T13:27:56Z","updated_at":"2015-05-12T18:43:15Z","closed_at":"2015-05-12T18:43:15Z","body":"I am on my second prototype iteration. This round I have separated documents into additional channels. I am now allowing the client (android CBL 1.0.4) to request to join a given channel by creating a join document.  \r\n\r\nAfter a join document is received I can see from the user's sync gateway's changes feed that the user is added to the requested channel and the preexisting documents do show up in the feed. However these documents are not replicated down to the client. \r\n\r\nSteps\r\n1) The client creates the join document in this case doc_id \"fcj-46584223b5640e61e058b24353dd73cfadcc5cfad231f31ccc47dfd772136d5c-0238db848c67469b8ee90993524567834a9c3a9802963726dc32a76feb7cae09-0\"\r\n\r\n2) In the below sync gateway changes feed link.  You should see the six identified preexisting documents  that the client does not receive.  I do think it looks odd that the join document and the six preexisting documents share the same sequence number but I am assuming it's normal.\r\n\r\nhttps://gist.github.com/J-R-W/6ac205a63846d3cbe192\r\n\r\n3) Below are the CBL logs I cannot see any of the missing documents being replicated in the log. For sequence 46 (seq=46) I am only seeing the join doc.\r\n\r\nhttps://gist.github.com/J-R-W/4519b43e66a1fc454edc\r\n\r\n4) I don't see the missing documents in the CBL's \"docs\" view below. \r\n\r\n![screenshot_2015-03-02-09-54-12](https://cloud.githubusercontent.com/assets/8051304/6441280/03d40df0-c119-11e4-9be3-d80c327af7ef.png)\r\n\r\n5) Below is the sync gateway's log. \r\n\r\nhttps://gist.github.com/J-R-W/6788a1014ee34a9c8af7\r\n\r\nI think this could be an issue with either the SGW or CBL lite I am now running the most recent github build of SGW on Ubuntu 14 LTS and can reliably reproduce this issue. \r\n\r\nI'm looking forward to getting this iteration out to my alpha user's so do not hesitate to ask me anything. \r\n\r\n-Justin\r\n\r\nP.S. Overall the framework has been great to work with.  Kudos. :)"}}