couchbaselabs / ToDoLite-Android

To-Do list sample app for Couchbase Lite, native Android version
190 stars 96 forks source link

Couchbase View uses external data #27

Closed AndriyBas closed 9 years ago

AndriyBas commented 9 years ago

function getQuery(Database database, final String ignoreUserId) uses fileld ignoreUserId inside View's mapper function. According to official docs it is incorrect : "It must be a "pure" function: That means any time it's called with the same input, it must produce exactly the same output. In other words, it can't use any external state, just its input JSON."

tleyden commented 9 years ago

@AndriyBas what is the actual issue you are seeing? Here are the bug reporting guidelines: https://github.com/couchbase/mobile/wiki/Reporting-Bugs

I'm closing, but will reopen if it is demonstrated to be a bug.