{"action":"closed","issue":{"url":"https://api.github.com/repos/IEEEKeralaSection/rescuekerala/issues/913","repository_url":"https://api.github.com/repos/IEEEKeralaSection/rescuekerala","labels_url":"https://api.github.com/repos/IEEEKeralaSection/rescuekerala/issues/913/labels{/name}","comments_url":"https://api.github.com/repos/IEEEKeralaSection/rescuekerala/issues/913/comments","events_url":"https://api.github.com/repos/IEEEKeralaSection/rescuekerala/issues/913/events","html_url":"https://github.com/IEEEKeralaSection/rescuekerala/issues/913","id":353523630,"node_id":"MDU6SXNzdWUzNTM1MjM2MzA=","number":913,"title":"broken query","user":{"login":"ja8zyjits","id":10775161,"node_id":"MDQ6VXNlcjEwNzc1MTYx","avatar_url":"https://avatars2.githubusercontent.com/u/10775161?v=4","gravatar_id":"","url":"https://api.github.com/users/ja8zyjits","html_url":"https://github.com/ja8zyjits","followers_url":"https://api.github.com/users/ja8zyjits/followers","following_url":"https://api.github.com/users/ja8zyjits/following{/other_user}","gists_url":"https://api.github.com/users/ja8zyjits/gists{/gist_id}","starred_url":"https://api.github.com/users/ja8zyjits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ja8zyjits/subscriptions","organizations_url":"https://api.github.com/users/ja8zyjits/orgs","repos_url":"https://api.github.com/users/ja8zyjits/repos","events_url":"https://api.github.com/users/ja8zyjits/events{/privacy}","received_events_url":"https://api.github.com/users/ja8zyjits/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-23T19:36:40Z","updated_at":"2018-08-24T14:14:43Z","closed_at":"2018-08-24T14:14:43Z","author_association":"NONE","body":"### Subject of the issue\r\nfor `/relief_camps/data` endpoint using `RescueCamp.objects.latest('id')` will throw error, if the model is empty. Though such cases are rare but it fails the test.\r\n\r\n### Steps to reproduce\r\ntry to run that query in any empty model\r\n`mainapp.models.RescueCamp.DoesNotExist: RescueCamp matching query does not exist.`\r\nThe same goes for `request/data` though we removed that endpoint.\r\n\r\n### Expected behaviour\r\nit should be either in `try/catch` or handled properly\r\n\r\n### Actual behaviour\r\nthrows error\r\nfound this while on #562 \r\n"}}
{"actor":{"display_login":"biswaz"}}