{"action":"closed","issue":{"url":"https://api.github.com/repos/mozilla/webmaker-core/issues/260","labels_url":"https://api.github.com/repos/mozilla/webmaker-core/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/webmaker-core/issues/260/comments","events_url":"https://api.github.com/repos/mozilla/webmaker-core/issues/260/events","html_url":"https://github.com/mozilla/webmaker-core/issues/260","id":95028212,"number":260,"title":"Network - Move API calls to Android","user":{"login":"toolness","id":124687,"avatar_url":"https://avatars.githubusercontent.com/u/124687?v=3","gravatar_id":"","url":"https://api.github.com/users/toolness","html_url":"https://github.com/toolness","followers_url":"https://api.github.com/users/toolness/followers","following_url":"https://api.github.com/users/toolness/following{/other_user}","gists_url":"https://api.github.com/users/toolness/gists{/gist_id}","starred_url":"https://api.github.com/users/toolness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolness/subscriptions","organizations_url":"https://api.github.com/users/toolness/orgs","repos_url":"https://api.github.com/users/toolness/repos","events_url":"https://api.github.com/users/toolness/events{/privacy}","received_events_url":"https://api.github.com/users/toolness/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/webmaker-core/labels/android","name":"android","color":"006b75"},{"url":"https://api.github.com/repos/mozilla/webmaker-core/labels/assigned-to-contributor","name":"assigned-to-contributor","color":"ededed"},{"url":"https://api.github.com/repos/mozilla/webmaker-core/labels/help%20wanted","name":"help wanted","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mozilla/webmaker-core/milestones/1","html_url":"https://github.com/mozilla/webmaker-core/milestones/Backlog","labels_url":"https://api.github.com/repos/mozilla/webmaker-core/milestones/1/labels","id":1195611,"number":1,"title":"Backlog","description":"","creator":{"login":"xmatthewx","id":53411,"avatar_url":"https://avatars.githubusercontent.com/u/53411?v=3","gravatar_id":"","url":"https://api.github.com/users/xmatthewx","html_url":"https://github.com/xmatthewx","followers_url":"https://api.github.com/users/xmatthewx/followers","following_url":"https://api.github.com/users/xmatthewx/following{/other_user}","gists_url":"https://api.github.com/users/xmatthewx/gists{/gist_id}","starred_url":"https://api.github.com/users/xmatthewx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xmatthewx/subscriptions","organizations_url":"https://api.github.com/users/xmatthewx/orgs","repos_url":"https://api.github.com/users/xmatthewx/repos","events_url":"https://api.github.com/users/xmatthewx/events{/privacy}","received_events_url":"https://api.github.com/users/xmatthewx/received_events","type":"User","site_admin":false},"open_issues":222,"closed_issues":28,"state":"open","created_at":"2015-07-06T19:52:15Z","updated_at":"2015-11-02T17:29:13Z","due_on":"2024-01-01T08:00:00Z","closed_at":null},"comments":0,"created_at":"2015-07-14T20:05:33Z","updated_at":"2015-11-02T17:29:13Z","closed_at":"2015-11-02T17:29:13Z","body":"This issue has been migrated from mozilla/webmaker-android#2354.\n\nIt was originally written by [thisandagain](https://api.github.com/users/thisandagain) on Mon Jun 29 2015 and had the following description:\n\n> Related: mozilla/webmaker-android#1946 mozilla/webmaker-android#2005 mozilla/webmaker-android#2179\r\n> \r\n> All API calls are currently handled by `./lib/api.js` which is nice and simple but has one major drawback in that API requests need to complete prior to the current webview being dismissed / destroyed. This leads to issues in which long-running API requests can not be run in the background which blocks the UI and leads to performance issues (**particularly** on 2G and 3G cell networks). In addition, having the network layer exist in JS makes it more difficult to detect and manage network state effectively.\r\n> \r\n> I recommend that we attempt to port the existing `./lib/api.js` API over to Java with as minimal changes as possible as a starting point. Tracking this specific SOW in mozilla/webmaker-android#2355 \r\n> \r\n> - [ ] Port existing `./lib/api.js` to Java (#2355)\r\n> - [ ] Add network availability detection\r\n> - [ ] Implement global network queue\n\n\nOn Mon Jun 29 2015, [Pomax](https://api.github.com/users/Pomax) commented:\n\n> As first step, let's tackle the parity refactor, so the code does the same thing it does now, except through Java rather than JS.\r\n> \r\n> - [ ] https://github.com/mozilla/webmaker-android/issues/2355 - uplift `api.js` from JS to Java\n\n\n"}}