{"action":"created","issue":{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/251","labels_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/251/comments","events_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/251/events","html_url":"https://github.com/thaliproject/Thali_CordovaPlugin/pull/251","id":113630932,"number":251,"title":"Use OS temporary folder as the download cache.","user":{"login":"vjrantal","id":207474,"avatar_url":"https://avatars.githubusercontent.com/u/207474?v=3","gravatar_id":"","url":"https://api.github.com/users/vjrantal","html_url":"https://github.com/vjrantal","followers_url":"https://api.github.com/users/vjrantal/followers","following_url":"https://api.github.com/users/vjrantal/following{/other_user}","gists_url":"https://api.github.com/users/vjrantal/gists{/gist_id}","starred_url":"https://api.github.com/users/vjrantal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjrantal/subscriptions","organizations_url":"https://api.github.com/users/vjrantal/orgs","repos_url":"https://api.github.com/users/vjrantal/repos","events_url":"https://api.github.com/users/vjrantal/events{/privacy}","received_events_url":"https://api.github.com/users/vjrantal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-10-27T16:56:47Z","updated_at":"2015-10-28T10:55:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/pulls/251","html_url":"https://github.com/thaliproject/Thali_CordovaPlugin/pull/251","diff_url":"https://github.com/thaliproject/Thali_CordovaPlugin/pull/251.diff","patch_url":"https://github.com/thaliproject/Thali_CordovaPlugin/pull/251.patch"},"body":"A part of the installation is the download of the required version of the\r\nJXCore Cordova plugin (currently ~90MB download) and unpacking that with jx\r\nbefore adding it as Cordova plugin using Cordova commands.\r\n\r\nThis commit implements caching of the unpacked plugin folder so that the\r\noverall installation process becomes faster. The OS temporary folder is used\r\nfor caching instead of any Thali-app folder so that full benefits of the cache\r\nare received even if the app-folder is re-generated (this is the case with CI\r\nscripts, for example).\r\n\r\nThis commit also adds some catches to the promise-chains so that in case of\r\nerrors, it is easier to see where the issue was.\r\n\r\nRelates to #192.\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/thaliproject/thali_cordovaplugin/251)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/comments/151799717","html_url":"https://github.com/thaliproject/Thali_CordovaPlugin/pull/251#issuecomment-151799717","issue_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/251","id":151799717,"user":{"login":"ThaliTester","id":13933164,"avatar_url":"https://avatars.githubusercontent.com/u/13933164?v=3","gravatar_id":"","url":"https://api.github.com/users/ThaliTester","html_url":"https://github.com/ThaliTester","followers_url":"https://api.github.com/users/ThaliTester/followers","following_url":"https://api.github.com/users/ThaliTester/following{/other_user}","gists_url":"https://api.github.com/users/ThaliTester/gists{/gist_id}","starred_url":"https://api.github.com/users/ThaliTester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThaliTester/subscriptions","organizations_url":"https://api.github.com/users/ThaliTester/orgs","repos_url":"https://api.github.com/users/ThaliTester/repos","events_url":"https://api.github.com/users/ThaliTester/events{/privacy}","received_events_url":"https://api.github.com/users/ThaliTester/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T10:55:08Z","updated_at":"2015-10-28T10:55:08Z","body":"PR is added to the queue for testing as 1. task. (dd7ac55)"}}