{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-next/issues/1770","repository_url":"https://api.github.com/repos/strongloop/loopback-next","labels_url":"https://api.github.com/repos/strongloop/loopback-next/issues/1770/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-next/issues/1770/comments","events_url":"https://api.github.com/repos/strongloop/loopback-next/issues/1770/events","html_url":"https://github.com/strongloop/loopback-next/pull/1770","id":364702054,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4ODI1OTA3","number":1770,"title":"fix(repository): return an object for count and updateAll","user":{"login":"virkt25","id":3311536,"node_id":"MDQ6VXNlcjMzMTE1MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/3311536?v=4","gravatar_id":"","url":"https://api.github.com/users/virkt25","html_url":"https://github.com/virkt25","followers_url":"https://api.github.com/users/virkt25/followers","following_url":"https://api.github.com/users/virkt25/following{/other_user}","gists_url":"https://api.github.com/users/virkt25/gists{/gist_id}","starred_url":"https://api.github.com/users/virkt25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virkt25/subscriptions","organizations_url":"https://api.github.com/users/virkt25/orgs","repos_url":"https://api.github.com/users/virkt25/repos","events_url":"https://api.github.com/users/virkt25/events{/privacy}","received_events_url":"https://api.github.com/users/virkt25/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"virkt25","id":3311536,"node_id":"MDQ6VXNlcjMzMTE1MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/3311536?v=4","gravatar_id":"","url":"https://api.github.com/users/virkt25","html_url":"https://github.com/virkt25","followers_url":"https://api.github.com/users/virkt25/followers","following_url":"https://api.github.com/users/virkt25/following{/other_user}","gists_url":"https://api.github.com/users/virkt25/gists{/gist_id}","starred_url":"https://api.github.com/users/virkt25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virkt25/subscriptions","organizations_url":"https://api.github.com/users/virkt25/orgs","repos_url":"https://api.github.com/users/virkt25/repos","events_url":"https://api.github.com/users/virkt25/events{/privacy}","received_events_url":"https://api.github.com/users/virkt25/received_events","type":"User","site_admin":false},"assignees":[{"login":"virkt25","id":3311536,"node_id":"MDQ6VXNlcjMzMTE1MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/3311536?v=4","gravatar_id":"","url":"https://api.github.com/users/virkt25","html_url":"https://github.com/virkt25","followers_url":"https://api.github.com/users/virkt25/followers","following_url":"https://api.github.com/users/virkt25/following{/other_user}","gists_url":"https://api.github.com/users/virkt25/gists{/gist_id}","starred_url":"https://api.github.com/users/virkt25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virkt25/subscriptions","organizations_url":"https://api.github.com/users/virkt25/orgs","repos_url":"https://api.github.com/users/virkt25/repos","events_url":"https://api.github.com/users/virkt25/events{/privacy}","received_events_url":"https://api.github.com/users/virkt25/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-09-28T00:48:39Z","updated_at":"2018-09-28T18:33:44Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/strongloop/loopback-next/pulls/1770","html_url":"https://github.com/strongloop/loopback-next/pull/1770","diff_url":"https://github.com/strongloop/loopback-next/pull/1770.diff","patch_url":"https://github.com/strongloop/loopback-next/pull/1770.patch"},"body":"fixes https://github.com/strongloop/loopback-next/issues/1471\r\n\r\n- update repository to return a {count: number} instead of just a `number`\r\n- update `@responses`, examples, cli, docs.\r\n\r\n## Checklist\r\n\r\n- [x] `npm test` passes on your machine\r\n- [x] New tests added or existing tests modified to cover all changes\r\n- [x] Code conforms with the [style guide](http://loopback.io/doc/en/contrib/style-guide.html)\r\n- [ ] API Documentation in code was updated\r\n- [x] Documentation in [/docs/site](../tree/master/docs/site) was updated\r\n- [x] Affected artifact templates in `packages/cli` were updated\r\n- [x] Affected example projects in `examples/*` were updated\r\n"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-next/issues/comments/425527486","html_url":"https://github.com/strongloop/loopback-next/pull/1770#issuecomment-425527486","issue_url":"https://api.github.com/repos/strongloop/loopback-next/issues/1770","id":425527486,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTUyNzQ4Ng==","user":{"login":"raymondfeng","id":540892,"node_id":"MDQ6VXNlcjU0MDg5Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/540892?v=4","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":"2018-09-28T18:33:44Z","updated_at":"2018-09-28T18:33:44Z","author_association":"MEMBER","body":"In the future, maybe we should consider to allow a normalized json response, such as:\r\n```js\r\n{\r\n  data: {}, // normal result from the handler\r\n  error: {} // error from the handler\r\n}"}}
{"actor":{"display_login":"raymondfeng"}}