{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-example-relations/issues/13","labels_url":"https://api.github.com/repos/strongloop/loopback-example-relations/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-example-relations/issues/13/comments","events_url":"https://api.github.com/repos/strongloop/loopback-example-relations/issues/13/events","html_url":"https://github.com/strongloop/loopback-example-relations/issues/13","id":112480551,"number":13,"title":"Figure out why PR is causing CI tests to fail","user":{"login":"crandmck","id":2925364,"avatar_url":"https://avatars.githubusercontent.com/u/2925364?v=3","gravatar_id":"","url":"https://api.github.com/users/crandmck","html_url":"https://github.com/crandmck","followers_url":"https://api.github.com/users/crandmck/followers","following_url":"https://api.github.com/users/crandmck/following{/other_user}","gists_url":"https://api.github.com/users/crandmck/gists{/gist_id}","starred_url":"https://api.github.com/users/crandmck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crandmck/subscriptions","organizations_url":"https://api.github.com/users/crandmck/orgs","repos_url":"https://api.github.com/users/crandmck/repos","events_url":"https://api.github.com/users/crandmck/events{/privacy}","received_events_url":"https://api.github.com/users/crandmck/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback-example-relations/labels/%23tob","name":"#tob","color":"ededed"},{"url":"https://api.github.com/repos/strongloop/loopback-example-relations/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"jannyHou","id":12554153,"avatar_url":"https://avatars.githubusercontent.com/u/12554153?v=3","gravatar_id":"","url":"https://api.github.com/users/jannyHou","html_url":"https://github.com/jannyHou","followers_url":"https://api.github.com/users/jannyHou/followers","following_url":"https://api.github.com/users/jannyHou/following{/other_user}","gists_url":"https://api.github.com/users/jannyHou/gists{/gist_id}","starred_url":"https://api.github.com/users/jannyHou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jannyHou/subscriptions","organizations_url":"https://api.github.com/users/jannyHou/orgs","repos_url":"https://api.github.com/users/jannyHou/repos","events_url":"https://api.github.com/users/jannyHou/events{/privacy}","received_events_url":"https://api.github.com/users/jannyHou/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-10-20T23:27:29Z","updated_at":"2015-11-23T22:26:28Z","closed_at":null,"body":"https://github.com/strongloop/loopback-example-relations/pull/10 implements changes to update app per https://github.com/strongloop-internal/scrum-loopback/issues/495, but tests are failing.   There were similar failures in https://github.com/strongloop/loopback-example-access-control/pull/63, but I fixed those.  The same fix did not work here and I am stumped."},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-example-relations/issues/comments/159087589","html_url":"https://github.com/strongloop/loopback-example-relations/issues/13#issuecomment-159087589","issue_url":"https://api.github.com/repos/strongloop/loopback-example-relations/issues/13","id":159087589,"user":{"login":"jannyHou","id":12554153,"avatar_url":"https://avatars.githubusercontent.com/u/12554153?v=3","gravatar_id":"","url":"https://api.github.com/users/jannyHou","html_url":"https://github.com/jannyHou","followers_url":"https://api.github.com/users/jannyHou/followers","following_url":"https://api.github.com/users/jannyHou/following{/other_user}","gists_url":"https://api.github.com/users/jannyHou/gists{/gist_id}","starred_url":"https://api.github.com/users/jannyHou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jannyHou/subscriptions","organizations_url":"https://api.github.com/users/jannyHou/orgs","repos_url":"https://api.github.com/users/jannyHou/repos","events_url":"https://api.github.com/users/jannyHou/events{/privacy}","received_events_url":"https://api.github.com/users/jannyHou/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T22:26:28Z","updated_at":"2015-11-23T22:26:28Z","body":"hey @crandmck @superkhau , the problem is raised with routing set, this snippet\r\n```\r\napp.use('/', function(req, res, next) {\r\n    ...\r\n}\r\n``` \r\nshould be set as:\r\n```\r\nvar router = app.loopback.Router();\r\nrouter.get('/', function(req, res, next) {\r\n    app.models.Customer.findOne({where: {name: 'Customer A'}}, function(err, customer) {\r\n     if (err) return next(err);\r\n     res.render('index', {customer: customer});\r\n   });\r\n}); \r\napp.use(router);\r\n```\r\nI merged the two similar repos and uploaded the new project to branch `upgrade-lb-explorer`. Now it's compatible with `loopback-component-explorer`. I plan to add some test cases and write a new README file this week.\r\nThanks!"}}