{"action":"created","issue":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/5506","repository_url":"https://api.github.com/repos/HabitRPG/habitrpg","labels_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/5506/labels{/name}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/5506/comments","events_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/5506/events","html_url":"https://github.com/HabitRPG/habitrpg/issues/5506","id":91524066,"number":5506,"title":"if deleting challenge tasks fails, user is removed from challenge anyway","user":{"login":"Alys","id":1495809,"avatar_url":"https://avatars.githubusercontent.com/u/1495809?v=3","gravatar_id":"","url":"https://api.github.com/users/Alys","html_url":"https://github.com/Alys","followers_url":"https://api.github.com/users/Alys/followers","following_url":"https://api.github.com/users/Alys/following{/other_user}","gists_url":"https://api.github.com/users/Alys/gists{/gist_id}","starred_url":"https://api.github.com/users/Alys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alys/subscriptions","organizations_url":"https://api.github.com/users/Alys/orgs","repos_url":"https://api.github.com/users/Alys/repos","events_url":"https://api.github.com/users/Alys/events{/privacy}","received_events_url":"https://api.github.com/users/Alys/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HabitRPG/habitrpg/labels/priority%20-%20minor","name":"priority - minor","color":"DDDDDD"},{"url":"https://api.github.com/repos/HabitRPG/habitrpg/labels/wait","name":"wait","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-27T22:27:17Z","updated_at":"2016-06-01T09:29:35Z","closed_at":"2016-06-01T09:29:34Z","body":"When leaving a challenge and deleting challenge tasks, a rare bug can cause the challenge ID to become \"lost\" at the point where the tasks are deleted. This used to result in all non-challenge tasks being deleted (https://github.com/HabitRPG/habitrpg/issues/4466) but now it merely results in the tasks remaining while the user is removed from the challenge (https://github.com/HabitRPG/habitrpg/pull/5504). This means that the user has to delete the tasks manually.\r\n\r\nIt would be better if the user was not removed from the challenge if deleting the tasks fails. I.e., the code that removes the user should check for success/failure of deleting the tasks and not take other actions if the deletion is not successful.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/23201751-if-deleting-challenge-tasks-fails-user-is-removed-from-challenge-anyway?utm_campaign=plugin&utm_content=tracker%2F68393&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F68393&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/comments/222940731","html_url":"https://github.com/HabitRPG/habitrpg/issues/5506#issuecomment-222940731","issue_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/5506","id":222940731,"user":{"login":"paglias","id":589911,"avatar_url":"https://avatars.githubusercontent.com/u/589911?v=3","gravatar_id":"","url":"https://api.github.com/users/paglias","html_url":"https://github.com/paglias","followers_url":"https://api.github.com/users/paglias/followers","following_url":"https://api.github.com/users/paglias/following{/other_user}","gists_url":"https://api.github.com/users/paglias/gists{/gist_id}","starred_url":"https://api.github.com/users/paglias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paglias/subscriptions","organizations_url":"https://api.github.com/users/paglias/orgs","repos_url":"https://api.github.com/users/paglias/repos","events_url":"https://api.github.com/users/paglias/events{/privacy}","received_events_url":"https://api.github.com/users/paglias/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T09:29:34Z","updated_at":"2016-06-01T09:29:34Z","body":"Should be fixed, reopen if it happens again"}}
{"actor":{"display_login":"paglias"}}