{"action":"created","issue":{"url":"https://api.github.com/repos/dimagi/commcare-hq/issues/9690","labels_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/9690/labels{/name}","comments_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/9690/comments","events_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/9690/events","html_url":"https://github.com/dimagi/commcare-hq/pull/9690","id":123452729,"number":9690,"title":"Add `match_all` filter if all filters are removed.","user":{"login":"esoergel","id":2367539,"avatar_url":"https://avatars.githubusercontent.com/u/2367539?v=3","gravatar_id":"","url":"https://api.github.com/users/esoergel","html_url":"https://github.com/esoergel","followers_url":"https://api.github.com/users/esoergel/followers","following_url":"https://api.github.com/users/esoergel/following{/other_user}","gists_url":"https://api.github.com/users/esoergel/gists{/gist_id}","starred_url":"https://api.github.com/users/esoergel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esoergel/subscriptions","organizations_url":"https://api.github.com/users/esoergel/orgs","repos_url":"https://api.github.com/users/esoergel/repos","events_url":"https://api.github.com/users/esoergel/events{/privacy}","received_events_url":"https://api.github.com/users/esoergel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dimagi/commcare-hq/labels/No%20lint%20errors","name":"No lint errors","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-22T10:12:31Z","updated_at":"2015-12-22T15:00:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dimagi/commcare-hq/pulls/9690","html_url":"https://github.com/dimagi/commcare-hq/pull/9690","diff_url":"https://github.com/dimagi/commcare-hq/pull/9690.diff","patch_url":"https://github.com/dimagi/commcare-hq/pull/9690.patch"},"body":"If you try to send a query to elasticsearch with no filters, it will throw an exception.  ESQuery normally has the `\"match_all\"` noop filter to prevent this, but you could still trigger this condition by removing the default filters directly.\nhttps://github.com/dimagi/commcare-hq/commit/b3afe204082c222b918bbb0e077f722047cb2e59#commitcomment-15082505"},"comment":{"url":"https://api.github.com/repos/dimagi/commcare-hq/issues/comments/166637760","html_url":"https://github.com/dimagi/commcare-hq/pull/9690#issuecomment-166637760","issue_url":"https://api.github.com/repos/dimagi/commcare-hq/issues/9690","id":166637760,"user":{"login":"czue","id":66555,"avatar_url":"https://avatars.githubusercontent.com/u/66555?v=3","gravatar_id":"","url":"https://api.github.com/users/czue","html_url":"https://github.com/czue","followers_url":"https://api.github.com/users/czue/followers","following_url":"https://api.github.com/users/czue/following{/other_user}","gists_url":"https://api.github.com/users/czue/gists{/gist_id}","starred_url":"https://api.github.com/users/czue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czue/subscriptions","organizations_url":"https://api.github.com/users/czue/orgs","repos_url":"https://api.github.com/users/czue/repos","events_url":"https://api.github.com/users/czue/events{/privacy}","received_events_url":"https://api.github.com/users/czue/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T15:00:50Z","updated_at":"2015-12-22T15:00:50Z","body":"thanks!"}}