{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-workspace/issues/215","labels_url":"https://api.github.com/repos/strongloop/loopback-workspace/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-workspace/issues/215/comments","events_url":"https://api.github.com/repos/strongloop/loopback-workspace/issues/215/events","html_url":"https://github.com/strongloop/loopback-workspace/pull/215","id":95288036,"number":215,"title":"Refactor the workspace into the LoopBack 2.x structure","user":{"login":"ritch","id":462228,"avatar_url":"https://avatars.githubusercontent.com/u/462228?v=3","gravatar_id":"","url":"https://api.github.com/users/ritch","html_url":"https://github.com/ritch","followers_url":"https://api.github.com/users/ritch/followers","following_url":"https://api.github.com/users/ritch/following{/other_user}","gists_url":"https://api.github.com/users/ritch/gists{/gist_id}","starred_url":"https://api.github.com/users/ritch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ritch/subscriptions","organizations_url":"https://api.github.com/users/ritch/orgs","repos_url":"https://api.github.com/users/ritch/repos","events_url":"https://api.github.com/users/ritch/events{/privacy}","received_events_url":"https://api.github.com/users/ritch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback-workspace/labels/%23review","name":"#review","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"raymondfeng","id":540892,"avatar_url":"https://avatars.githubusercontent.com/u/540892?v=3","gravatar_id":"","url":"https://api.github.com/users/raymondfeng","html_url":"https://github.com/raymondfeng","followers_url":"https://api.github.com/users/raymondfeng/followers","following_url":"https://api.github.com/users/raymondfeng/following{/other_user}","gists_url":"https://api.github.com/users/raymondfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondfeng/subscriptions","organizations_url":"https://api.github.com/users/raymondfeng/orgs","repos_url":"https://api.github.com/users/raymondfeng/repos","events_url":"https://api.github.com/users/raymondfeng/events{/privacy}","received_events_url":"https://api.github.com/users/raymondfeng/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-07-15T20:54:06Z","updated_at":"2015-07-17T17:57:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/strongloop/loopback-workspace/pulls/215","html_url":"https://github.com/strongloop/loopback-workspace/pull/215","diff_url":"https://github.com/strongloop/loopback-workspace/pull/215.diff","patch_url":"https://github.com/strongloop/loopback-workspace/pull/215.patch"},"body":"This patch upgrades the workspace application into the LoopBack 2.x structure. The basic process was:\r\n\r\n - write a migration script that read the models.json and JS file and outputed 2.x style model files\r\n - added a \"ready\" event to allow the application to be booted enitrely before referencing models\r\n - removed some hacks for bugs fixed in boot 2.x (or by the ready event)\r\n - added a beforeEach reset for REST api tests\r\n\r\n/to @raymondfeng\r\n\r\nConnect to strongloop/loopback-workspace#213"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-workspace/issues/comments/122357094","html_url":"https://github.com/strongloop/loopback-workspace/pull/215#issuecomment-122357094","issue_url":"https://api.github.com/repos/strongloop/loopback-workspace/issues/215","id":122357094,"user":{"login":"raymondfeng","id":540892,"avatar_url":"https://avatars.githubusercontent.com/u/540892?v=3","gravatar_id":"","url":"https://api.github.com/users/raymondfeng","html_url":"https://github.com/raymondfeng","followers_url":"https://api.github.com/users/raymondfeng/followers","following_url":"https://api.github.com/users/raymondfeng/following{/other_user}","gists_url":"https://api.github.com/users/raymondfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondfeng/subscriptions","organizations_url":"https://api.github.com/users/raymondfeng/orgs","repos_url":"https://api.github.com/users/raymondfeng/repos","events_url":"https://api.github.com/users/raymondfeng/events{/privacy}","received_events_url":"https://api.github.com/users/raymondfeng/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T17:57:46Z","updated_at":"2015-07-17T17:57:46Z","body":"The code LGTM. We seem to miss a dependency on `compression`. \r\n```\r\nWed, 15 Jul 2015 20:55:34 GMT loopback:boot:config-loader merged test middleware configuration {\"initial:before\":{\"loopback#favicon\":{}},\"initial\":{\"compression\":{},\"cors\":{\"params\":{\"origin\":true,\"credentials\":true,\"maxAge\":86400}}},\"session\":{},\"auth\":{},\"parse\":{},\"routes\":{},\"files\":{},\"final\":{\"loopback#urlNotFound\":{}},\"final:after\":{\"errorhandler\":{}}}\r\nWed, 15 Jul 2015 20:55:34 GMT loopback:boot:compiler Skipping undefined - module not found\r\n/mnt/jenkins/workspace/loopback-workspace.pr/4263f9af/node_modules/loopback-boot/lib/compiler.js:355\r\n    throw err;\r\n          ^\r\nError: Cannot resolve path \"compression\"\r\n    at resolveAppPath (/mnt/jenkins/workspace/loopback-workspace.pr/4263f9af/node_modules/loopback-boot/lib/compiler.js:353:15)\r\n    at resolveAppScriptPath (/mnt/jenkins/workspace/loopback-workspace.pr/4263f9af/node_modules/loopback-boot/lib/compiler.js:678:22)\r\n    at resolveMiddlewarePath (/mnt/jenkins/workspace/loopback-workspace.pr/4263f9af/node_modules/loopback-boot/lib/compiler.js:554:20)\r\n    at /mnt/jenkins/workspace/loopback-workspace.pr/4263f9af/node_modules/loopback-boot/lib/compiler.js:472:24\r\n    at Array.forEach (native)\r\n    at /mnt/jenkins/workspace/loopback-workspace.pr/4263f9af/node_modules/loopback-boot/lib/compiler.js:471:18\r\n    at Array.forEach (native)\r\n    at /mnt/jenkins/workspace/loopback-workspace.pr/4263f9af/node_modules/loopback-boot/lib/compiler.js:466:30\r\n    at Array.forEach (native)\r\n```"}}