{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla-services/pageshot/issues/309","labels_url":"https://api.github.com/repos/mozilla-services/pageshot/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/mozilla-services/pageshot/issues/309/comments","events_url":"https://api.github.com/repos/mozilla-services/pageshot/issues/309/events","html_url":"https://github.com/mozilla-services/pageshot/issues/309","id":69619267,"number":309,"title":"Shot should get deleted when last clip is deleted","user":{"login":"ianb","id":44390,"avatar_url":"https://avatars.githubusercontent.com/u/44390?v=3","gravatar_id":"","url":"https://api.github.com/users/ianb","html_url":"https://github.com/ianb","followers_url":"https://api.github.com/users/ianb/followers","following_url":"https://api.github.com/users/ianb/following{/other_user}","gists_url":"https://api.github.com/users/ianb/gists{/gist_id}","starred_url":"https://api.github.com/users/ianb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianb/subscriptions","organizations_url":"https://api.github.com/users/ianb/orgs","repos_url":"https://api.github.com/users/ianb/repos","events_url":"https://api.github.com/users/ianb/events{/privacy}","received_events_url":"https://api.github.com/users/ianb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mozilla-services/pageshot/milestones/5","html_url":"https://github.com/mozilla-services/pageshot/milestones/The%20Shallow%20MVP","labels_url":"https://api.github.com/repos/mozilla-services/pageshot/milestones/5/labels","id":1041836,"number":5,"title":"The Shallow MVP","description":"Where we create something that can demonstrate our designs and flows, but doesn't emphasize working in practice","creator":{"login":"ianb","id":44390,"avatar_url":"https://avatars.githubusercontent.com/u/44390?v=3","gravatar_id":"","url":"https://api.github.com/users/ianb","html_url":"https://github.com/ianb","followers_url":"https://api.github.com/users/ianb/followers","following_url":"https://api.github.com/users/ianb/following{/other_user}","gists_url":"https://api.github.com/users/ianb/gists{/gist_id}","starred_url":"https://api.github.com/users/ianb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianb/subscriptions","organizations_url":"https://api.github.com/users/ianb/orgs","repos_url":"https://api.github.com/users/ianb/repos","events_url":"https://api.github.com/users/ianb/events{/privacy}","received_events_url":"https://api.github.com/users/ianb/received_events","type":"User","site_admin":false},"open_issues":37,"closed_issues":47,"state":"open","created_at":"2015-03-27T15:15:57Z","updated_at":"2015-05-14T15:22:17Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-04-20T15:56:38Z","updated_at":"2015-05-14T15:29:22Z","closed_at":null,"body":"After #308 is implemented:\r\n\r\nIn `lib/shooter.js` the ShotContext should notice when it is destroying that its shot has no clips, and delete the shot on the server at that point.\r\n\r\nI don't think we need to be too aggressive in deleting the shot early.  The server could also check if a shot has no clips, and refuse to render it in that case.  (Encourages a dirty database though.)"},"comment":{"url":"https://api.github.com/repos/mozilla-services/pageshot/issues/comments/102072595","html_url":"https://github.com/mozilla-services/pageshot/issues/309#issuecomment-102072595","issue_url":"https://api.github.com/repos/mozilla-services/pageshot/issues/309","id":102072595,"user":{"login":"ianb","id":44390,"avatar_url":"https://avatars.githubusercontent.com/u/44390?v=3","gravatar_id":"","url":"https://api.github.com/users/ianb","html_url":"https://github.com/ianb","followers_url":"https://api.github.com/users/ianb/followers","following_url":"https://api.github.com/users/ianb/following{/other_user}","gists_url":"https://api.github.com/users/ianb/gists{/gist_id}","starred_url":"https://api.github.com/users/ianb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianb/subscriptions","organizations_url":"https://api.github.com/users/ianb/orgs","repos_url":"https://api.github.com/users/ianb/repos","events_url":"https://api.github.com/users/ianb/events{/privacy}","received_events_url":"https://api.github.com/users/ianb/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T15:29:22Z","updated_at":"2015-05-14T15:29:22Z","body":"For now let's just give a 404 if a shot doesn't have any clips."}}