{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/364","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/364/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/364/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/364/events","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/364","id":35916695,"number":364,"title":"CBLQuery doesn't call observer on dispatch queue","user":{"login":"snej","id":43241,"avatar_url":"https://avatars.githubusercontent.com/u/43241?v=3","gravatar_id":"","url":"https://api.github.com/users/snej","html_url":"https://github.com/snej","followers_url":"https://api.github.com/users/snej/followers","following_url":"https://api.github.com/users/snej/following{/other_user}","gists_url":"https://api.github.com/users/snej/gists{/gist_id}","starred_url":"https://api.github.com/users/snej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snej/subscriptions","organizations_url":"https://api.github.com/users/snej/orgs","repos_url":"https://api.github.com/users/snej/repos","events_url":"https://api.github.com/users/snej/events{/privacy}","received_events_url":"https://api.github.com/users/snej/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/f:%20Query","name":"f: Query","color":"bfd4f2"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/P1:%20high","name":"P1: high","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"snej","id":43241,"avatar_url":"https://avatars.githubusercontent.com/u/43241?v=3","gravatar_id":"","url":"https://api.github.com/users/snej","html_url":"https://github.com/snej","followers_url":"https://api.github.com/users/snej/followers","following_url":"https://api.github.com/users/snej/following{/other_user}","gists_url":"https://api.github.com/users/snej/gists{/gist_id}","starred_url":"https://api.github.com/users/snej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snej/subscriptions","organizations_url":"https://api.github.com/users/snej/orgs","repos_url":"https://api.github.com/users/snej/repos","events_url":"https://api.github.com/users/snej/events{/privacy}","received_events_url":"https://api.github.com/users/snej/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/milestones/10","html_url":"https://github.com/couchbase/couchbase-lite-ios/milestones/1.0.2","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/milestones/10/labels","id":760790,"number":10,"title":"1.0.2","description":"","creator":{"login":"jessliu","id":4998909,"avatar_url":"https://avatars.githubusercontent.com/u/4998909?v=3","gravatar_id":"","url":"https://api.github.com/users/jessliu","html_url":"https://github.com/jessliu","followers_url":"https://api.github.com/users/jessliu/followers","following_url":"https://api.github.com/users/jessliu/following{/other_user}","gists_url":"https://api.github.com/users/jessliu/gists{/gist_id}","starred_url":"https://api.github.com/users/jessliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessliu/subscriptions","organizations_url":"https://api.github.com/users/jessliu/orgs","repos_url":"https://api.github.com/users/jessliu/repos","events_url":"https://api.github.com/users/jessliu/events{/privacy}","received_events_url":"https://api.github.com/users/jessliu/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":28,"state":"closed","created_at":"2014-08-20T23:18:29Z","updated_at":"2014-10-23T21:30:49Z","due_on":null,"closed_at":"2014-10-23T21:30:49Z"},"comments":12,"created_at":"2014-06-17T18:18:25Z","updated_at":"2015-06-03T05:03:50Z","closed_at":"2014-06-24T16:56:13Z","body":"Per [this email thread](https://groups.google.com/d/msgid/mobile-couchbase/b7e9627b-3aa1-41bd-80c4-242d5ee67e65%40googlegroups.com?utm_medium=email&utm_source=footer), if a CBLManager instance is associated with a dispatch queue (instead of an NSThread) then a CBLLiveQuery won't notify its observers when the results change. See the thread for details and code examples."},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/comments/108193694","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/364#issuecomment-108193694","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/364","id":108193694,"user":{"login":"hermanccw","id":1000084,"avatar_url":"https://avatars.githubusercontent.com/u/1000084?v=3","gravatar_id":"","url":"https://api.github.com/users/hermanccw","html_url":"https://github.com/hermanccw","followers_url":"https://api.github.com/users/hermanccw/followers","following_url":"https://api.github.com/users/hermanccw/following{/other_user}","gists_url":"https://api.github.com/users/hermanccw/gists{/gist_id}","starred_url":"https://api.github.com/users/hermanccw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hermanccw/subscriptions","organizations_url":"https://api.github.com/users/hermanccw/orgs","repos_url":"https://api.github.com/users/hermanccw/repos","events_url":"https://api.github.com/users/hermanccw/events{/privacy}","received_events_url":"https://api.github.com/users/hermanccw/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T05:03:50Z","updated_at":"2015-06-03T05:03:50Z","body":"@snej I just try to do something as describe in this [google group thread](https://groups.google.com/forum/#!searchin/mobile-couchbase/livequery$20thread/mobile-couchbase/hApRE-18R54/0hbfYe5tzdkJ) and I am getting exactly the same problem.\r\n\r\ni am running the branch release/1.1.0 and I try to look for the test added in [a8611d2](https://github.com/couchbase/couchbase-lite-ios/commit/a8611d2d73740a72c0b6eb78c4f0fcee75292b29) and couldn't find it, was it somehow moved and missed? or is there a better way to run a LiveQuery under a dispatch queue?"}}