{"action":"created","issue":{"url":"https://api.github.com/repos/bitwarden/browser/issues/35","repository_url":"https://api.github.com/repos/bitwarden/browser","labels_url":"https://api.github.com/repos/bitwarden/browser/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/bitwarden/browser/issues/35/comments","events_url":"https://api.github.com/repos/bitwarden/browser/issues/35/events","html_url":"https://github.com/bitwarden/browser/issues/35","id":184869086,"number":35,"title":"Callback Hell to Promises","user":{"login":"ArtemNikolaev","id":4076586,"avatar_url":"https://avatars.githubusercontent.com/u/4076586?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtemNikolaev","html_url":"https://github.com/ArtemNikolaev","followers_url":"https://api.github.com/users/ArtemNikolaev/followers","following_url":"https://api.github.com/users/ArtemNikolaev/following{/other_user}","gists_url":"https://api.github.com/users/ArtemNikolaev/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtemNikolaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtemNikolaev/subscriptions","organizations_url":"https://api.github.com/users/ArtemNikolaev/orgs","repos_url":"https://api.github.com/users/ArtemNikolaev/repos","events_url":"https://api.github.com/users/ArtemNikolaev/events{/privacy}","received_events_url":"https://api.github.com/users/ArtemNikolaev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-24T15:10:35Z","updated_at":"2016-10-24T17:02:17Z","closed_at":null,"body":"Find many code samples like that:\r\n![Callback Hell](http://image.prntscr.com/image/12d4926a0a6a48698d69f23e534df664.png)\r\n\r\nWhat about rewrite things like that to Promises?\r\n\r\n Angular has its own promise functionality: [$q](https://docs.angularjs.org/api/ng/service/$q), so there is no big problem to create clean and understandable code."},"comment":{"url":"https://api.github.com/repos/bitwarden/browser/issues/comments/255800761","html_url":"https://github.com/bitwarden/browser/issues/35#issuecomment-255800761","issue_url":"https://api.github.com/repos/bitwarden/browser/issues/35","id":255800761,"user":{"login":"kspearrin","id":1190944,"avatar_url":"https://avatars.githubusercontent.com/u/1190944?v=3","gravatar_id":"","url":"https://api.github.com/users/kspearrin","html_url":"https://github.com/kspearrin","followers_url":"https://api.github.com/users/kspearrin/followers","following_url":"https://api.github.com/users/kspearrin/following{/other_user}","gists_url":"https://api.github.com/users/kspearrin/gists{/gist_id}","starred_url":"https://api.github.com/users/kspearrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kspearrin/subscriptions","organizations_url":"https://api.github.com/users/kspearrin/orgs","repos_url":"https://api.github.com/users/kspearrin/repos","events_url":"https://api.github.com/users/kspearrin/events{/privacy}","received_events_url":"https://api.github.com/users/kspearrin/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T17:02:17Z","updated_at":"2016-10-24T17:02:17Z","body":"Yea, this is probably the most extreme example in the codebase. I started to implement `q` promises in many parts of the codebase which also suffered from the same issue, it just never made it to this part of the code since it was the only case that seemed so extreme and I didn't want to spend the time refactoring it all."}}
{"actor":{"display_login":"kspearrin"}}