I suppose this the same case mentioned in the Chat app data model <https://github.com/couchbaselabs/CouchChat-iOS/wiki/Chat-App-Data-Model> :
"So in the chat app, we have channels for each chat room, but also a channel for user profiles. (I left it out of this document, but if you look at the actual implementation, you'll see there's also a channel for each user, which syncs the chat room documents for the rooms they have access to. This is needed because of a limitation in the implementation that we plan to fix, so maybe by the time you read this it's no longer necessary.)" If so, has this already been implemented, or is it in the roadmap? By the way, I've tried with the wildcard channel access(doc.username, "*") but it didn't work in my tests: the document didn't make it to the "other side". I'm running couchbase lite and sync gateway community edition 1.0.2. Either I'm missing something.. or it's this bug: https://github.com/couchbase/sync_gateway/issues/432 ? If I could set as well channel("*") for every document, that would be cheating meaning that "*" is not actually a "special keyword", but is rather being treated as any other channel. Anyway I'd suggest at least changing the default sync function from: function (doc) { channel(doc.channels); } to something like: function (doc) { channel("*"); var this_user = "Is there a way to get the username of this request context?" access(this_user, "*"); } BR, Thiago -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/9ee476b7-c367-44b2-91a4-c9c263611fb6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
