{"action":"created","issue":{"url":"https://api.github.com/repos/caskdata/cdap/issues/2962","labels_url":"https://api.github.com/repos/caskdata/cdap/issues/2962/labels{/name}","comments_url":"https://api.github.com/repos/caskdata/cdap/issues/2962/comments","events_url":"https://api.github.com/repos/caskdata/cdap/issues/2962/events","html_url":"https://github.com/caskdata/cdap/pull/2962","id":88583058,"number":2962,"title":"Flattens node module dependencies with shrinkwrap","user":{"login":"ajainarayanan","id":1452845,"avatar_url":"https://avatars.githubusercontent.com/u/1452845?v=3","gravatar_id":"","url":"https://api.github.com/users/ajainarayanan","html_url":"https://github.com/ajainarayanan","followers_url":"https://api.github.com/users/ajainarayanan/followers","following_url":"https://api.github.com/users/ajainarayanan/following{/other_user}","gists_url":"https://api.github.com/users/ajainarayanan/gists{/gist_id}","starred_url":"https://api.github.com/users/ajainarayanan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajainarayanan/subscriptions","organizations_url":"https://api.github.com/users/ajainarayanan/orgs","repos_url":"https://api.github.com/users/ajainarayanan/repos","events_url":"https://api.github.com/users/ajainarayanan/events{/privacy}","received_events_url":"https://api.github.com/users/ajainarayanan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/caskdata/cdap/labels/3.0","name":"3.0","color":"0052cc"},{"url":"https://api.github.com/repos/caskdata/cdap/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/caskdata/cdap/labels/UI","name":"UI","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-16T01:22:48Z","updated_at":"2015-06-16T01:32:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/caskdata/cdap/pulls/2962","html_url":"https://github.com/caskdata/cdap/pull/2962","diff_url":"https://github.com/caskdata/cdap/pull/2962.diff","patch_url":"https://github.com/caskdata/cdap/pull/2962.patch"},"body":"Right now there is no way to freeze on dependencies for node modules in node proxy. shrinkwrap allows us to lock onto the specific versions. So any subsequent npm install would install only those specific versions guaranteeing a stable version of node server based on current dependencies.\r\n\r\nNOTE:\r\n  I have manually gone through all 1st level dependencies' package.json files to check what is the min node version that it needs to run stable. Based on that I have modified the min version of node engine to be 0.10.0. This ensures that if the user is using a node version that is less than that then npm install would fail, indicating that they need a newer version of node. "},"comment":{"url":"https://api.github.com/repos/caskdata/cdap/issues/comments/112254503","html_url":"https://github.com/caskdata/cdap/pull/2962#issuecomment-112254503","issue_url":"https://api.github.com/repos/caskdata/cdap/issues/2962","id":112254503,"user":{"login":"ajainarayanan","id":1452845,"avatar_url":"https://avatars.githubusercontent.com/u/1452845?v=3","gravatar_id":"","url":"https://api.github.com/users/ajainarayanan","html_url":"https://github.com/ajainarayanan","followers_url":"https://api.github.com/users/ajainarayanan/followers","following_url":"https://api.github.com/users/ajainarayanan/following{/other_user}","gists_url":"https://api.github.com/users/ajainarayanan/gists{/gist_id}","starred_url":"https://api.github.com/users/ajainarayanan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajainarayanan/subscriptions","organizations_url":"https://api.github.com/users/ajainarayanan/orgs","repos_url":"https://api.github.com/users/ajainarayanan/repos","events_url":"https://api.github.com/users/ajainarayanan/events{/privacy}","received_events_url":"https://api.github.com/users/ajainarayanan/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T01:32:19Z","updated_at":"2015-06-16T01:32:19Z","body":"This change still needs to be integrated with beamer (when I do beamer software install cdap-ui) it doesn't beam npm-shrinkwrap.json file. Once that is done it should be available for cluster. Right now I have this cluster (http://104.154.39.178:9999/ns/default) that has these minor node changes. "}}