{"action":"created","issue":{"url":"https://api.github.com/repos/kapouille/mongoquery/issues/10","repository_url":"https://api.github.com/repos/kapouille/mongoquery","labels_url":"https://api.github.com/repos/kapouille/mongoquery/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/kapouille/mongoquery/issues/10/comments","events_url":"https://api.github.com/repos/kapouille/mongoquery/issues/10/events","html_url":"https://github.com/kapouille/mongoquery/pull/10","id":247853840,"number":10,"title":"Better support for $exists + 2 bugfixes","user":{"login":"kerfab","id":14938596,"avatar_url":"https://avatars0.githubusercontent.com/u/14938596?v=4","gravatar_id":"","url":"https://api.github.com/users/kerfab","html_url":"https://github.com/kerfab","followers_url":"https://api.github.com/users/kerfab/followers","following_url":"https://api.github.com/users/kerfab/following{/other_user}","gists_url":"https://api.github.com/users/kerfab/gists{/gist_id}","starred_url":"https://api.github.com/users/kerfab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerfab/subscriptions","organizations_url":"https://api.github.com/users/kerfab/orgs","repos_url":"https://api.github.com/users/kerfab/repos","events_url":"https://api.github.com/users/kerfab/events{/privacy}","received_events_url":"https://api.github.com/users/kerfab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-08-03T22:30:28Z","updated_at":"2017-08-15T04:19:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kapouille/mongoquery/pulls/10","html_url":"https://github.com/kapouille/mongoquery/pull/10","diff_url":"https://github.com/kapouille/mongoquery/pull/10.diff","patch_url":"https://github.com/kapouille/mongoquery/pull/10.patch"},"body":"This PR upgrades:\r\n\r\n- `$exists` now only follows the dotted notation and no longer supports brackets '[]' for list index annotation which makes it more consistent with modern MongoDB query standard\r\n\r\n- `$exists` will now recurse into lists just as mongodb, and will recurse even more than MongoDB (MongoDB does not support nested arrays very well... `$exists` in mongoquery will do)\r\n\r\nFixes two bug:\r\n\r\n- The following code was causing a TypeError exception:\r\n\r\n    from mongoquery import Query\r\n    q = Query({'a':{'$gt':3}})\r\n    q.match({'b':'f'})\r\n\r\nNow fixed with another exception handling case.\r\n\r\n- The following code was causing an out of range exception:\r\n\r\n    from mongoquery import Query\r\n    q = Query({'a.2':{'$in':3}})\r\n    q.match({'a':[0,1]})\r\n\r\nI made an exception handling in most of comparison operators, I think it was the right thing to do in order to properly manage the return value expected (example: `nin` returns `True` not `False` on error)"},"comment":{"url":"https://api.github.com/repos/kapouille/mongoquery/issues/comments/322373696","html_url":"https://github.com/kapouille/mongoquery/pull/10#issuecomment-322373696","issue_url":"https://api.github.com/repos/kapouille/mongoquery/issues/10","id":322373696,"user":{"login":"kerfab","id":14938596,"avatar_url":"https://avatars0.githubusercontent.com/u/14938596?v=4","gravatar_id":"","url":"https://api.github.com/users/kerfab","html_url":"https://github.com/kerfab","followers_url":"https://api.github.com/users/kerfab/followers","following_url":"https://api.github.com/users/kerfab/following{/other_user}","gists_url":"https://api.github.com/users/kerfab/gists{/gist_id}","starred_url":"https://api.github.com/users/kerfab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerfab/subscriptions","organizations_url":"https://api.github.com/users/kerfab/orgs","repos_url":"https://api.github.com/users/kerfab/repos","events_url":"https://api.github.com/users/kerfab/events{/privacy}","received_events_url":"https://api.github.com/users/kerfab/received_events","type":"User","site_admin":false},"created_at":"2017-08-15T04:19:23Z","updated_at":"2017-08-15T04:19:23Z","body":"Please see https://github.com/kapouille/mongoquery/pull/11 for the updated PR"}}
{"actor":{"display_login":"kerfab"}}