{"action":"created","issue":{"url":"https://api.github.com/repos/Growstuff/growstuff/issues/716","labels_url":"https://api.github.com/repos/Growstuff/growstuff/issues/716/labels{/name}","comments_url":"https://api.github.com/repos/Growstuff/growstuff/issues/716/comments","events_url":"https://api.github.com/repos/Growstuff/growstuff/issues/716/events","html_url":"https://github.com/Growstuff/growstuff/pull/716","id":57918839,"number":716,"title":"exclude unapproved crops from search","user":{"login":"oshiho3","id":7848188,"avatar_url":"https://avatars.githubusercontent.com/u/7848188?v=3","gravatar_id":"","url":"https://api.github.com/users/oshiho3","html_url":"https://github.com/oshiho3","followers_url":"https://api.github.com/users/oshiho3/followers","following_url":"https://api.github.com/users/oshiho3/following{/other_user}","gists_url":"https://api.github.com/users/oshiho3/gists{/gist_id}","starred_url":"https://api.github.com/users/oshiho3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oshiho3/subscriptions","organizations_url":"https://api.github.com/users/oshiho3/orgs","repos_url":"https://api.github.com/users/oshiho3/repos","events_url":"https://api.github.com/users/oshiho3/events{/privacy}","received_events_url":"https://api.github.com/users/oshiho3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-17T12:34:40Z","updated_at":"2015-02-17T23:17:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Growstuff/growstuff/pulls/716","html_url":"https://github.com/Growstuff/growstuff/pull/716","diff_url":"https://github.com/Growstuff/growstuff/pull/716.diff","patch_url":"https://github.com/Growstuff/growstuff/pull/716.patch"},"body":"This change will remove unapproved crops from elasticsearch result as mentioned in https://github.com/Growstuff/growstuff/pull/715#issuecomment-74646241."},"comment":{"url":"https://api.github.com/repos/Growstuff/growstuff/issues/comments/74776647","html_url":"https://github.com/Growstuff/growstuff/pull/716#issuecomment-74776647","issue_url":"https://api.github.com/repos/Growstuff/growstuff/issues/716","id":74776647,"user":{"login":"oshiho3","id":7848188,"avatar_url":"https://avatars.githubusercontent.com/u/7848188?v=3","gravatar_id":"","url":"https://api.github.com/users/oshiho3","html_url":"https://github.com/oshiho3","followers_url":"https://api.github.com/users/oshiho3/followers","following_url":"https://api.github.com/users/oshiho3/following{/other_user}","gists_url":"https://api.github.com/users/oshiho3/gists{/gist_id}","starred_url":"https://api.github.com/users/oshiho3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oshiho3/subscriptions","organizations_url":"https://api.github.com/users/oshiho3/orgs","repos_url":"https://api.github.com/users/oshiho3/repos","events_url":"https://api.github.com/users/oshiho3/events{/privacy}","received_events_url":"https://api.github.com/users/oshiho3/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T23:17:16Z","updated_at":"2015-02-17T23:17:16Z","body":"Hi Maco!\r\nThanks for looking at it. I don't remember setting fallback when elasticsearch is unavailable. I meant to purely control it by env variable (It may be a good idea to implement fallback, but the drawback for doing it is that even when elasticsearch is down it won't get noticed. What do you think @Skud?).\r\nMaybe I'm not configuring the env variable right. I'm going to run a few tests to figure out what's causing this.\r\n\r\nI'm going to update the sql search to check the approval_status as well. I was too sleepy last night to finish that bit :-( I'll put WIP in the PR title while I'm fixing travis issue and updating sql search.\r\n"}}