{"action":"created","issue":{"url":"https://api.github.com/repos/guardian/grid/issues/1324","labels_url":"https://api.github.com/repos/guardian/grid/issues/1324/labels{/name}","comments_url":"https://api.github.com/repos/guardian/grid/issues/1324/comments","events_url":"https://api.github.com/repos/guardian/grid/issues/1324/events","html_url":"https://github.com/guardian/grid/pull/1324","id":109796505,"number":1324,"title":"Allow deleting of images without an export.","user":{"login":"akash1810","id":836140,"avatar_url":"https://avatars.githubusercontent.com/u/836140?v=3","gravatar_id":"","url":"https://api.github.com/users/akash1810","html_url":"https://github.com/akash1810","followers_url":"https://api.github.com/users/akash1810/followers","following_url":"https://api.github.com/users/akash1810/following{/other_user}","gists_url":"https://api.github.com/users/akash1810/gists{/gist_id}","starred_url":"https://api.github.com/users/akash1810/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akash1810/subscriptions","organizations_url":"https://api.github.com/users/akash1810/orgs","repos_url":"https://api.github.com/users/akash1810/repos","events_url":"https://api.github.com/users/akash1810/events{/privacy}","received_events_url":"https://api.github.com/users/akash1810/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-05T13:31:02Z","updated_at":"2015-10-05T15:07:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/guardian/grid/pulls/1324","html_url":"https://github.com/guardian/grid/pull/1324","diff_url":"https://github.com/guardian/grid/pull/1324.diff","patch_url":"https://github.com/guardian/grid/pull/1324.patch"},"body":"These changes will allow any image that doesn't have an export to be manually deleted via a DELETE request to the media-api.\r\n\r\nThis change adds the DELETE action to an image response in the media-api iff there are no exports.\r\n\r\nReaper is not affected as `persisted=false` will still [omit `archived`, `staff-photographer` and `picdarUrn` images](https://github.com/guardian/grid/blob/aa-api-allow-delete-from-photographer/media-api/app/lib/elasticsearch/SearchFilters.scala#L100-L107)."},"comment":{"url":"https://api.github.com/repos/guardian/grid/issues/comments/145563041","html_url":"https://github.com/guardian/grid/pull/1324#issuecomment-145563041","issue_url":"https://api.github.com/repos/guardian/grid/issues/1324","id":145563041,"user":{"login":"theefer","id":36964,"avatar_url":"https://avatars.githubusercontent.com/u/36964?v=3","gravatar_id":"","url":"https://api.github.com/users/theefer","html_url":"https://github.com/theefer","followers_url":"https://api.github.com/users/theefer/followers","following_url":"https://api.github.com/users/theefer/following{/other_user}","gists_url":"https://api.github.com/users/theefer/gists{/gist_id}","starred_url":"https://api.github.com/users/theefer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theefer/subscriptions","organizations_url":"https://api.github.com/users/theefer/orgs","repos_url":"https://api.github.com/users/theefer/repos","events_url":"https://api.github.com/users/theefer/events{/privacy}","received_events_url":"https://api.github.com/users/theefer/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T15:07:22Z","updated_at":"2015-10-05T15:07:22Z","body":":+1: but in the absence of tests please quintuple check that it does what you think and doesn't allow deleting images with exports."}}