{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/1089","repository_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler","labels_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/1089/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/1089/comments","events_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/1089/events","html_url":"https://github.com/strongloop/loopback-datasource-juggler/pull/1089","id":176186472,"number":1089,"title":"fix null foreign keys","user":{"login":"waldemarzahn","id":945224,"avatar_url":"https://avatars.githubusercontent.com/u/945224?v=3","gravatar_id":"","url":"https://api.github.com/users/waldemarzahn","html_url":"https://github.com/waldemarzahn","followers_url":"https://api.github.com/users/waldemarzahn/followers","following_url":"https://api.github.com/users/waldemarzahn/following{/other_user}","gists_url":"https://api.github.com/users/waldemarzahn/gists{/gist_id}","starred_url":"https://api.github.com/users/waldemarzahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waldemarzahn/subscriptions","organizations_url":"https://api.github.com/users/waldemarzahn/orgs","repos_url":"https://api.github.com/users/waldemarzahn/repos","events_url":"https://api.github.com/users/waldemarzahn/events{/privacy}","received_events_url":"https://api.github.com/users/waldemarzahn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-10T15:53:19Z","updated_at":"2016-09-10T15:53:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/pulls/1089","html_url":"https://github.com/strongloop/loopback-datasource-juggler/pull/1089","diff_url":"https://github.com/strongloop/loopback-datasource-juggler/pull/1089.diff","patch_url":"https://github.com/strongloop/loopback-datasource-juggler/pull/1089.patch"},"body":"fix error if a belongsTo foreign key is set to null (mysql)\r\n\r\n----\r\n/api/node_modules/loopback-datasource-juggler/node_modules/async/lib/async.js:152\r\n        if (!arr.length) {\r\n                ^\r\n\r\nTypeError: Cannot read property 'length' of undefined\r\n    at Object.async.each (/api/node_modules/loopback-datasource-juggler/node_modules/async/lib/async.js:152:17)\r\n    at linkOneToMany (/api/node_modules/loopback-datasource-juggler/lib/include.js:813:29)\r\n    at /api/node_modules/loopback-datasource-juggler/node_modules/async/lib/async.js:157:13\r\n    at _each (/api/node_modules/loopback-datasource-juggler/node_modules/async/lib/async.js:57:9)\r\n    at Object.async.each (/api/node_modules/loopback-datasource-juggler/node_modules/async/lib/async.js:156:9)\r\n    at targetLinkingTask (/api/node_modules/loopback-datasource-juggler/lib/include.js:808:21)\r\n    at /api/node_modules/loopback-datasource-juggler/node_modules/async/lib/async.js:723:21\r\n    at /api/node_modules/loopback-datasource-juggler/node_modules/async/lib/async.js:391:17\r\n    at /api/node_modules/loopback-datasource-juggler/node_modules/async/lib/async.js:157:13\r\n    at _each (/api/node_modules/loopback-datasource-juggler/node_modules/async/lib/async.js:57:9)\r\n\r\n----"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/comments/246119303","html_url":"https://github.com/strongloop/loopback-datasource-juggler/pull/1089#issuecomment-246119303","issue_url":"https://api.github.com/repos/strongloop/loopback-datasource-juggler/issues/1089","id":246119303,"user":{"login":"slnode","id":3865961,"avatar_url":"https://avatars.githubusercontent.com/u/3865961?v=3","gravatar_id":"","url":"https://api.github.com/users/slnode","html_url":"https://github.com/slnode","followers_url":"https://api.github.com/users/slnode/followers","following_url":"https://api.github.com/users/slnode/following{/other_user}","gists_url":"https://api.github.com/users/slnode/gists{/gist_id}","starred_url":"https://api.github.com/users/slnode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slnode/subscriptions","organizations_url":"https://api.github.com/users/slnode/orgs","repos_url":"https://api.github.com/users/slnode/repos","events_url":"https://api.github.com/users/slnode/events{/privacy}","received_events_url":"https://api.github.com/users/slnode/received_events","type":"User","site_admin":false},"created_at":"2016-09-10T15:53:20Z","updated_at":"2016-09-10T15:53:20Z","body":"Can one of the admins verify this patch? To accept patch and trigger a build add comment \".*ok\\W+to\\W+test.*\""}}
{"actor":{"display_login":"slnode"}}