{"action":"opened","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/956","repository_url":"https://api.github.com/repos/couchbase/couchbase-lite-android","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/956/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/956/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-android/issues/956/events","html_url":"https://github.com/couchbase/couchbase-lite-android/issues/956","id":170086128,"number":956,"title":"android query view via REST API still returns multiple doc revisions of one document on Couchbase lite 1.3","user":{"login":"HanzhiDou","id":1235136,"avatar_url":"https://avatars.githubusercontent.com/u/1235136?v=3","gravatar_id":"","url":"https://api.github.com/users/HanzhiDou","html_url":"https://github.com/HanzhiDou","followers_url":"https://api.github.com/users/HanzhiDou/followers","following_url":"https://api.github.com/users/HanzhiDou/following{/other_user}","gists_url":"https://api.github.com/users/HanzhiDou/gists{/gist_id}","starred_url":"https://api.github.com/users/HanzhiDou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HanzhiDou/subscriptions","organizations_url":"https://api.github.com/users/HanzhiDou/orgs","repos_url":"https://api.github.com/users/HanzhiDou/repos","events_url":"https://api.github.com/users/HanzhiDou/events{/privacy}","received_events_url":"https://api.github.com/users/HanzhiDou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-09T05:38:59Z","updated_at":"2016-08-09T05:38:59Z","closed_at":null,"body":"Hi,\r\n\r\nI build a cordova app using Couchbase-Lite-PhoneGap-Plugin and have same problem as described in the following closed issues in 1.2.1:\r\n\r\nQuerying local CBLite via REST API returns all doc revisions (not just current rev):\r\nhttps://github.com/couchbase/couchbase-lite-java-core/issues/1098\r\n\r\nThen I upgraded the plugin to 1.3.0 released few days ago, unfortunately the problem is still there.\r\n\r\nMy view definition is quite simple, and it works very well on iOS:\r\n\r\n`            mainproperties_by_uid_workoutid: {\r\n                map: [\r\n                    \"function(doc) { if (doc.t && doc.t === 'S' && doc.u && doc.w && doc.edt && doc.stats && doc.stats.d > 0)\",\r\n                    \" { emit([doc.u, doc.w], { userId: doc.u, workoutId: doc.w, elementDocType: doc.edt, sportType: doc.st, \",\r\n                    \" title: doc.tl, planId: doc.pid, goalCategory: doc.gc, goalId: doc.gid, categories: doc.cats, tags: doc.tags, \",\r\n                    \" notes: doc.notes, map: doc.map, mapOssUrl: doc.mapOssUrl, stats: doc.stats });\",\r\n                    \" }\",\r\n                    \"}\"\r\n                ].join('')\r\n            },`\r\n\r\nany quick fix or workaround?\r\n\r\nThanks!\r\n"}}
{"actor":{"display_login":"HanzhiDou"}}