{"action":"created","issue":{"url":"https://api.github.com/repos/jembi/openhim-core-js/issues/579","labels_url":"https://api.github.com/repos/jembi/openhim-core-js/issues/579/labels{/name}","comments_url":"https://api.github.com/repos/jembi/openhim-core-js/issues/579/comments","events_url":"https://api.github.com/repos/jembi/openhim-core-js/issues/579/events","html_url":"https://github.com/jembi/openhim-core-js/issues/579","id":115010525,"number":579,"title":"Fix broken dependencies","user":{"login":"devcritter","id":1872071,"avatar_url":"https://avatars.githubusercontent.com/u/1872071?v=3","gravatar_id":"","url":"https://api.github.com/users/devcritter","html_url":"https://github.com/devcritter","followers_url":"https://api.github.com/users/devcritter/followers","following_url":"https://api.github.com/users/devcritter/following{/other_user}","gists_url":"https://api.github.com/users/devcritter/gists{/gist_id}","starred_url":"https://api.github.com/users/devcritter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devcritter/subscriptions","organizations_url":"https://api.github.com/users/devcritter/orgs","repos_url":"https://api.github.com/users/devcritter/repos","events_url":"https://api.github.com/users/devcritter/events{/privacy}","received_events_url":"https://api.github.com/users/devcritter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jembi/openhim-core-js/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-04T09:33:12Z","updated_at":"2015-11-05T08:44:54Z","closed_at":"2015-11-05T08:44:54Z","body":"The current master is breaking due to mongoose and agenda:\r\n\r\nagenda ^0.6.0 gives\r\n> /openhim-core-js/node_modules/mongoskin/lib/utils.js:33\r\n  var skinClassName = 'Skin' + NativeClass.name;\r\n                                          ^\r\nTypeError: Cannot read property 'name' of undefined\r\n    at makeSkinClass (/openhim-core-js/node_modules/mongoskin/lib/utils.js:33:43)\r\n    at Object.<anonymous> (/openhim-core-js/node_modules/mongoskin/lib/admin.js:18:37)\r\n\r\nUpgrading to ^0.7.0 breaks existing code however\r\n> 2015-11-04T09:32:05.289Z - info: [worker1] Started rerun task processor\r\n /openhim-core-js/node_modules/agenda/lib/agenda.js:277\r\n    this._collection.findAndModify({name: props.name, type: 'single'}, {}, update, {upsert: true, new: true}, processDbResult);\r\n                    ^\r\n TypeError: Cannot read property 'findAndModify' of undefined\r\n    at [object Object].Agenda.saveJob (/openhim-core-js/node_modules/agenda/lib/agenda.js:277:21)\r\n    at Job.save (/openhim-core-js/node_modules/agenda/lib/job.js:217:15)\r\n    at createJob (/openhim-core-js/node_modules/agenda/lib/agenda.js:192:9)\r\n    at [object Object].Agenda.every (/openhim-core-js/node_modules/agenda/lib/agenda.js:182:12)\r\n    at Object.setupAgenda (/openhim-core-js/src/alerts.coffee:283:10)\r\n    at startAgenda (/openhim-core-js/src/server.coffee:232:12)\r\n    at /openhim-core-js/src/server.coffee:525:21\r\n\r\nmongoose 4.0.2 gives\r\n> Error: Cannot find module 'mongodb/node_modules/mongodb-core/node_modules/bson/lib/bson/objectid'\r\n    at Function.Module._resolveFilename (module.js:337:15)\r\n\r\nthough upgrading to 4.0.3 fixes the problem"},"comment":{"url":"https://api.github.com/repos/jembi/openhim-core-js/issues/comments/153990734","html_url":"https://github.com/jembi/openhim-core-js/issues/579#issuecomment-153990734","issue_url":"https://api.github.com/repos/jembi/openhim-core-js/issues/579","id":153990734,"user":{"login":"devcritter","id":1872071,"avatar_url":"https://avatars.githubusercontent.com/u/1872071?v=3","gravatar_id":"","url":"https://api.github.com/users/devcritter","html_url":"https://github.com/devcritter","followers_url":"https://api.github.com/users/devcritter/followers","following_url":"https://api.github.com/users/devcritter/following{/other_user}","gists_url":"https://api.github.com/users/devcritter/gists{/gist_id}","starred_url":"https://api.github.com/users/devcritter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devcritter/subscriptions","organizations_url":"https://api.github.com/users/devcritter/orgs","repos_url":"https://api.github.com/users/devcritter/repos","events_url":"https://api.github.com/users/devcritter/events{/privacy}","received_events_url":"https://api.github.com/users/devcritter/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T08:44:54Z","updated_at":"2015-11-05T08:44:54Z","body":"Closing this issue for now. The issue only occurs on node version 5 and after discussion it was decided that we will officially only focus on supporting node LTS branches."}}