{"action":"created","comment":{"url":"https://api.github.com/repos/wolox-training/lz-angular/pulls/comments/50702528","id":50702528,"diff_hunk":"@@ -7,6 +7,16 @@ angular.module('wbooks').controller('BookController', [\n     BooksService.getBook(this.bookId).then(\n       (book) => {\n         this.book = book;\n+        BooksService.getBookRentals(this.book.objectId).then(","path":"src/app/components/site/private/books/bookController.js","position":4,"original_position":4,"commit_id":"1f93748681e0e574df1c5538577c54fe140c2fc6","original_commit_id":"1f93748681e0e574df1c5538577c54fe140c2fc6","user":{"login":"sbalay","id":1928544,"avatar_url":"https://avatars.githubusercontent.com/u/1928544?v=3","gravatar_id":"","url":"https://api.github.com/users/sbalay","html_url":"https://github.com/sbalay","followers_url":"https://api.github.com/users/sbalay/followers","following_url":"https://api.github.com/users/sbalay/following{/other_user}","gists_url":"https://api.github.com/users/sbalay/gists{/gist_id}","starred_url":"https://api.github.com/users/sbalay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbalay/subscriptions","organizations_url":"https://api.github.com/users/sbalay/orgs","repos_url":"https://api.github.com/users/sbalay/repos","events_url":"https://api.github.com/users/sbalay/events{/privacy}","received_events_url":"https://api.github.com/users/sbalay/received_events","type":"User","site_admin":false},"body":"Now that the rentals include the book. Can't you avoid the first request?\r\n```\r\nBooksService.getBook(this.bookId).then(\r\n```","created_at":"2016-01-25T14:55:42Z","updated_at":"2016-01-25T14:55:42Z","html_url":"https://github.com/wolox-training/lz-angular/pull/12#discussion_r50702528","pull_request_url":"https://api.github.com/repos/wolox-training/lz-angular/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/wolox-training/lz-angular/pulls/comments/50702528"},"html":{"href":"https://github.com/wolox-training/lz-angular/pull/12#discussion_r50702528"},"pull_request":{"href":"https://api.github.com/repos/wolox-training/lz-angular/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/wolox-training/lz-angular/pulls/12","id":56755142,"html_url":"https://github.com/wolox-training/lz-angular/pull/12","diff_url":"https://github.com/wolox-training/lz-angular/pull/12.diff","patch_url":"https://github.com/wolox-training/lz-angular/pull/12.patch","issue_url":"https://api.github.com/repos/wolox-training/lz-angular/issues/12","number":12,"state":"open","locked":false,"title":"Book Rentals List Section and Functionality","user":{"login":"zeminlu","id":1057176,"avatar_url":"https://avatars.githubusercontent.com/u/1057176?v=3","gravatar_id":"","url":"https://api.github.com/users/zeminlu","html_url":"https://github.com/zeminlu","followers_url":"https://api.github.com/users/zeminlu/followers","following_url":"https://api.github.com/users/zeminlu/following{/other_user}","gists_url":"https://api.github.com/users/zeminlu/gists{/gist_id}","starred_url":"https://api.github.com/users/zeminlu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeminlu/subscriptions","organizations_url":"https://api.github.com/users/zeminlu/orgs","repos_url":"https://api.github.com/users/zeminlu/repos","events_url":"https://api.github.com/users/zeminlu/events{/privacy}","received_events_url":"https://api.github.com/users/zeminlu/received_events","type":"User","site_admin":false},"body":"## Summary\r\nThe Book Rentals section and functionality inside Book Detail\r\n\r\n## Screenshots\r\n<img width=\"729\" alt=\"screen shot 2016-01-21 at 11 20 42 am\" src=\"https://cloud.githubusercontent.com/assets/1057176/12482927/1646eb5c-c031-11e5-8523-4dcf34f26551.png\">\r\n<img width=\"748\" alt=\"screen shot 2016-01-21 at 11 20 49 am\" src=\"https://cloud.githubusercontent.com/assets/1057176/12482926/16447fc0-c031-11e5-964d-cfca638642ca.png\">\r\n","created_at":"2016-01-21T14:21:48Z","updated_at":"2016-01-25T14:55:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e8eb5f6b46acd280d86ded1b790a899c358d045a","assignee":{"login":"sbalay","id":1928544,"avatar_url":"https://avatars.githubusercontent.com/u/1928544?v=3","gravatar_id":"","url":"https://api.github.com/users/sbalay","html_url":"https://github.com/sbalay","followers_url":"https://api.github.com/users/sbalay/followers","following_url":"https://api.github.com/users/sbalay/following{/other_user}","gists_url":"https://api.github.com/users/sbalay/gists{/gist_id}","starred_url":"https://api.github.com/users/sbalay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbalay/subscriptions","organizations_url":"https://api.github.com/users/sbalay/orgs","repos_url":"https://api.github.com/users/sbalay/repos","events_url":"https://api.github.com/users/sbalay/events{/privacy}","received_events_url":"https://api.github.com/users/sbalay/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/wolox-training/lz-angular/pulls/12/commits","review_comments_url":"https://api.github.com/repos/wolox-training/lz-angular/pulls/12/comments","review_comment_url":"https://api.github.com/repos/wolox-training/lz-angular/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wolox-training/lz-angular/issues/12/comments","statuses_url":"https://api.github.com/repos/wolox-training/lz-angular/statuses/1f93748681e0e574df1c5538577c54fe140c2fc6","head":{"label":"wolox-training:book-rentals","ref":"book-rentals","sha":"1f93748681e0e574df1c5538577c54fe140c2fc6","user":{"login":"wolox-training","id":14113351,"avatar_url":"https://avatars.githubusercontent.com/u/14113351?v=3","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":48691189,"name":"lz-angular","full_name":"wolox-training/lz-angular","owner":{"login":"wolox-training","id":14113351,"avatar_url":"https://avatars.githubusercontent.com/u/14113351?v=3","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wolox-training/lz-angular","description":"Training Luciano Zemin","fork":false,"url":"https://api.github.com/repos/wolox-training/lz-angular","forks_url":"https://api.github.com/repos/wolox-training/lz-angular/forks","keys_url":"https://api.github.com/repos/wolox-training/lz-angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/lz-angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/lz-angular/teams","hooks_url":"https://api.github.com/repos/wolox-training/lz-angular/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/lz-angular/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/lz-angular/events","assignees_url":"https://api.github.com/repos/wolox-training/lz-angular/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/lz-angular/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/lz-angular/tags","blobs_url":"https://api.github.com/repos/wolox-training/lz-angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/lz-angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/lz-angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/lz-angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/lz-angular/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/lz-angular/languages","stargazers_url":"https://api.github.com/repos/wolox-training/lz-angular/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/lz-angular/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/lz-angular/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/lz-angular/subscription","commits_url":"https://api.github.com/repos/wolox-training/lz-angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/lz-angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/lz-angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/lz-angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/lz-angular/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/lz-angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/lz-angular/merges","archive_url":"https://api.github.com/repos/wolox-training/lz-angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/lz-angular/downloads","issues_url":"https://api.github.com/repos/wolox-training/lz-angular/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/lz-angular/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/lz-angular/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/lz-angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/lz-angular/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/lz-angular/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/lz-angular/deployments","created_at":"2015-12-28T12:18:48Z","updated_at":"2016-01-12T18:02:33Z","pushed_at":"2016-01-22T19:53:59Z","git_url":"git://github.com/wolox-training/lz-angular.git","ssh_url":"git@github.com:wolox-training/lz-angular.git","clone_url":"https://github.com/wolox-training/lz-angular.git","svn_url":"https://github.com/wolox-training/lz-angular","homepage":null,"size":234,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"wolox-training:book-proposal","ref":"book-proposal","sha":"5431fd7ed3c990ce9ec91871784e4edc29d12346","user":{"login":"wolox-training","id":14113351,"avatar_url":"https://avatars.githubusercontent.com/u/14113351?v=3","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":48691189,"name":"lz-angular","full_name":"wolox-training/lz-angular","owner":{"login":"wolox-training","id":14113351,"avatar_url":"https://avatars.githubusercontent.com/u/14113351?v=3","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wolox-training/lz-angular","description":"Training Luciano Zemin","fork":false,"url":"https://api.github.com/repos/wolox-training/lz-angular","forks_url":"https://api.github.com/repos/wolox-training/lz-angular/forks","keys_url":"https://api.github.com/repos/wolox-training/lz-angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/lz-angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/lz-angular/teams","hooks_url":"https://api.github.com/repos/wolox-training/lz-angular/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/lz-angular/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/lz-angular/events","assignees_url":"https://api.github.com/repos/wolox-training/lz-angular/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/lz-angular/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/lz-angular/tags","blobs_url":"https://api.github.com/repos/wolox-training/lz-angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/lz-angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/lz-angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/lz-angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/lz-angular/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/lz-angular/languages","stargazers_url":"https://api.github.com/repos/wolox-training/lz-angular/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/lz-angular/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/lz-angular/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/lz-angular/subscription","commits_url":"https://api.github.com/repos/wolox-training/lz-angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/lz-angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/lz-angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/lz-angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/lz-angular/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/lz-angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/lz-angular/merges","archive_url":"https://api.github.com/repos/wolox-training/lz-angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/lz-angular/downloads","issues_url":"https://api.github.com/repos/wolox-training/lz-angular/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/lz-angular/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/lz-angular/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/lz-angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/lz-angular/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/lz-angular/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/lz-angular/deployments","created_at":"2015-12-28T12:18:48Z","updated_at":"2016-01-12T18:02:33Z","pushed_at":"2016-01-22T19:53:59Z","git_url":"git://github.com/wolox-training/lz-angular.git","ssh_url":"git@github.com:wolox-training/lz-angular.git","clone_url":"https://github.com/wolox-training/lz-angular.git","svn_url":"https://github.com/wolox-training/lz-angular","homepage":null,"size":234,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wolox-training/lz-angular/pulls/12"},"html":{"href":"https://github.com/wolox-training/lz-angular/pull/12"},"issue":{"href":"https://api.github.com/repos/wolox-training/lz-angular/issues/12"},"comments":{"href":"https://api.github.com/repos/wolox-training/lz-angular/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/wolox-training/lz-angular/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/wolox-training/lz-angular/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wolox-training/lz-angular/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/wolox-training/lz-angular/statuses/1f93748681e0e574df1c5538577c54fe140c2fc6"}}}}