{"action":"created","issue":{"url":"https://api.github.com/repos/imeji-community/imeji/issues/1051","labels_url":"https://api.github.com/repos/imeji-community/imeji/issues/1051/labels{/name}","comments_url":"https://api.github.com/repos/imeji-community/imeji/issues/1051/comments","events_url":"https://api.github.com/repos/imeji-community/imeji/issues/1051/events","html_url":"https://github.com/imeji-community/imeji/issues/1051","id":68033657,"number":1051,"title":"API: Releasing an empty album is forbidden, but unlinking all members of a released album is ok.","user":{"login":"xrotwang","id":870184,"avatar_url":"https://avatars.githubusercontent.com/u/870184?v=3","gravatar_id":"","url":"https://api.github.com/users/xrotwang","html_url":"https://github.com/xrotwang","followers_url":"https://api.github.com/users/xrotwang/followers","following_url":"https://api.github.com/users/xrotwang/following{/other_user}","gists_url":"https://api.github.com/users/xrotwang/gists{/gist_id}","starred_url":"https://api.github.com/users/xrotwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xrotwang/subscriptions","organizations_url":"https://api.github.com/users/xrotwang/orgs","repos_url":"https://api.github.com/users/xrotwang/repos","events_url":"https://api.github.com/users/xrotwang/events{/privacy}","received_events_url":"https://api.github.com/users/xrotwang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/imeji-community/imeji/labels/Bug","name":"Bug","color":"CD5C5C"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-13T07:54:19Z","updated_at":"2015-04-21T07:32:45Z","closed_at":null,"body":"The API is inconsistent in the following way: Trying to release an album with no members results in\r\n```javascript\r\nERROR:pyimeji.api:got HTTP 422, expected HTTP 200\r\nERROR:pyimeji.api:{\r\n  \"error\" : {\r\n    \"code\" : \"1422\",\r\n    \"title\" : \"Unprocessable Entity\",\r\n    \"message\" : \"1422-message\",\r\n    \"exceptionReport\" : \"An empty album can not be released!\"\r\n  }\r\n}\r\n```\r\nbut unlinking all members of a released album is allowed. If there is no good reason to disallow release of empty albums (I don't know any), I'd vote for the simpler solution: allow release of empty albums.\r\n"},"comment":{"url":"https://api.github.com/repos/imeji-community/imeji/issues/comments/94671065","html_url":"https://github.com/imeji-community/imeji/issues/1051#issuecomment-94671065","issue_url":"https://api.github.com/repos/imeji-community/imeji/issues/1051","id":94671065,"user":{"login":"natasab","id":1485258,"avatar_url":"https://avatars.githubusercontent.com/u/1485258?v=3","gravatar_id":"","url":"https://api.github.com/users/natasab","html_url":"https://github.com/natasab","followers_url":"https://api.github.com/users/natasab/followers","following_url":"https://api.github.com/users/natasab/following{/other_user}","gists_url":"https://api.github.com/users/natasab/gists{/gist_id}","starred_url":"https://api.github.com/users/natasab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natasab/subscriptions","organizations_url":"https://api.github.com/users/natasab/orgs","repos_url":"https://api.github.com/users/natasab/repos","events_url":"https://api.github.com/users/natasab/events{/privacy}","received_events_url":"https://api.github.com/users/natasab/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T07:32:45Z","updated_at":"2015-04-21T07:32:45Z","body":"On the last comment: album only aggregates items which are explicitly selected by the album creator/editor. "}}