{"action":"created","comment":{"url":"https://api.github.com/repos/Pentiado/loopback-assignment/pulls/comments/51365199","id":51365199,"diff_hunk":"@@ -85,4 +168,75 @@ describe('user', function() {\n         });\n     });\n   });\n-});\n\\ No newline at end of file\n+  // Implement hasManyThrough relation with library and books\n+  describe('PUT /api/users/{id}/libraries/rel/{fk}', function() {\n+    var context = {};\n+    beforeEach(function() {\n+      return clearDB()\n+      .then(createUser)\n+      .then(function(user) {\n+        context.user = user;\n+        return user.createAccessToken(DEFAULT_TTL);\n+      }).then(function(accessToken) {\n+        context.accessToken = accessToken;\n+      })\n+      .then(createBook)","path":"test/e2e/userSpec.js","position":137,"original_position":137,"commit_id":"07cef4fcffef31323adf90159f2350af7ffc69ea","original_commit_id":"07cef4fcffef31323adf90159f2350af7ffc69ea","user":{"login":"Pentiado","id":1911020,"avatar_url":"https://avatars.githubusercontent.com/u/1911020?v=3","gravatar_id":"","url":"https://api.github.com/users/Pentiado","html_url":"https://github.com/Pentiado","followers_url":"https://api.github.com/users/Pentiado/followers","following_url":"https://api.github.com/users/Pentiado/following{/other_user}","gists_url":"https://api.github.com/users/Pentiado/gists{/gist_id}","starred_url":"https://api.github.com/users/Pentiado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pentiado/subscriptions","organizations_url":"https://api.github.com/users/Pentiado/orgs","repos_url":"https://api.github.com/users/Pentiado/repos","events_url":"https://api.github.com/users/Pentiado/events{/privacy}","received_events_url":"https://api.github.com/users/Pentiado/received_events","type":"User","site_admin":false},"body":"This book could be easily created in parallel with user ","created_at":"2016-01-31T18:55:33Z","updated_at":"2016-01-31T18:55:33Z","html_url":"https://github.com/Pentiado/loopback-assignment/pull/2#discussion_r51365199","pull_request_url":"https://api.github.com/repos/Pentiado/loopback-assignment/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/Pentiado/loopback-assignment/pulls/comments/51365199"},"html":{"href":"https://github.com/Pentiado/loopback-assignment/pull/2#discussion_r51365199"},"pull_request":{"href":"https://api.github.com/repos/Pentiado/loopback-assignment/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Pentiado/loopback-assignment/pulls/2","id":55587525,"html_url":"https://github.com/Pentiado/loopback-assignment/pull/2","diff_url":"https://github.com/Pentiado/loopback-assignment/pull/2.diff","patch_url":"https://github.com/Pentiado/loopback-assignment/pull/2.patch","issue_url":"https://api.github.com/repos/Pentiado/loopback-assignment/issues/2","number":2,"state":"open","locked":false,"title":"Clean slate","user":{"login":"dylntrnr","id":2652938,"avatar_url":"https://avatars.githubusercontent.com/u/2652938?v=3","gravatar_id":"","url":"https://api.github.com/users/dylntrnr","html_url":"https://github.com/dylntrnr","followers_url":"https://api.github.com/users/dylntrnr/followers","following_url":"https://api.github.com/users/dylntrnr/following{/other_user}","gists_url":"https://api.github.com/users/dylntrnr/gists{/gist_id}","starred_url":"https://api.github.com/users/dylntrnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylntrnr/subscriptions","organizations_url":"https://api.github.com/users/dylntrnr/orgs","repos_url":"https://api.github.com/users/dylntrnr/repos","events_url":"https://api.github.com/users/dylntrnr/events{/privacy}","received_events_url":"https://api.github.com/users/dylntrnr/received_events","type":"User","site_admin":false},"body":"So my tests are probably horrible. The one doesn't pass but that's because I don't think I'm doing it right. Although I think I might have failed it the sense of the results on this assignment I think I learned the main points. I know now how to make new models, create relations between, what that means (a little) for loopback, and that you don't have to write a good amount of code because you can hook into these things provided by loopback. ","created_at":"2016-01-11T05:11:14Z","updated_at":"2016-01-31T18:55:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"868e672af4152d6f8518cd8878f777c9dd7d09b9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Pentiado/loopback-assignment/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Pentiado/loopback-assignment/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Pentiado/loopback-assignment/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Pentiado/loopback-assignment/issues/2/comments","statuses_url":"https://api.github.com/repos/Pentiado/loopback-assignment/statuses/07cef4fcffef31323adf90159f2350af7ffc69ea","head":{"label":"dylntrnr:cleanSlate","ref":"cleanSlate","sha":"07cef4fcffef31323adf90159f2350af7ffc69ea","user":{"login":"dylntrnr","id":2652938,"avatar_url":"https://avatars.githubusercontent.com/u/2652938?v=3","gravatar_id":"","url":"https://api.github.com/users/dylntrnr","html_url":"https://github.com/dylntrnr","followers_url":"https://api.github.com/users/dylntrnr/followers","following_url":"https://api.github.com/users/dylntrnr/following{/other_user}","gists_url":"https://api.github.com/users/dylntrnr/gists{/gist_id}","starred_url":"https://api.github.com/users/dylntrnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylntrnr/subscriptions","organizations_url":"https://api.github.com/users/dylntrnr/orgs","repos_url":"https://api.github.com/users/dylntrnr/repos","events_url":"https://api.github.com/users/dylntrnr/events{/privacy}","received_events_url":"https://api.github.com/users/dylntrnr/received_events","type":"User","site_admin":false},"repo":{"id":48337719,"name":"loopback-assignment","full_name":"dylntrnr/loopback-assignment","owner":{"login":"dylntrnr","id":2652938,"avatar_url":"https://avatars.githubusercontent.com/u/2652938?v=3","gravatar_id":"","url":"https://api.github.com/users/dylntrnr","html_url":"https://github.com/dylntrnr","followers_url":"https://api.github.com/users/dylntrnr/followers","following_url":"https://api.github.com/users/dylntrnr/following{/other_user}","gists_url":"https://api.github.com/users/dylntrnr/gists{/gist_id}","starred_url":"https://api.github.com/users/dylntrnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylntrnr/subscriptions","organizations_url":"https://api.github.com/users/dylntrnr/orgs","repos_url":"https://api.github.com/users/dylntrnr/repos","events_url":"https://api.github.com/users/dylntrnr/events{/privacy}","received_events_url":"https://api.github.com/users/dylntrnr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dylntrnr/loopback-assignment","description":"","fork":true,"url":"https://api.github.com/repos/dylntrnr/loopback-assignment","forks_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/forks","keys_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/teams","hooks_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/hooks","issue_events_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/issues/events{/number}","events_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/events","assignees_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/assignees{/user}","branches_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/branches{/branch}","tags_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/tags","blobs_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/git/refs{/sha}","trees_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/statuses/{sha}","languages_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/languages","stargazers_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/stargazers","contributors_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/contributors","subscribers_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/subscribers","subscription_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/subscription","commits_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/commits{/sha}","git_commits_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/git/commits{/sha}","comments_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/comments{/number}","issue_comment_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/issues/comments{/number}","contents_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/contents/{+path}","compare_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/merges","archive_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/downloads","issues_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/issues{/number}","pulls_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/pulls{/number}","milestones_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/milestones{/number}","notifications_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/labels{/name}","releases_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/releases{/id}","deployments_url":"https://api.github.com/repos/dylntrnr/loopback-assignment/deployments","created_at":"2015-12-20T21:25:07Z","updated_at":"2015-12-20T21:25:08Z","pushed_at":"2016-01-11T05:07:30Z","git_url":"git://github.com/dylntrnr/loopback-assignment.git","ssh_url":"git@github.com:dylntrnr/loopback-assignment.git","clone_url":"https://github.com/dylntrnr/loopback-assignment.git","svn_url":"https://github.com/dylntrnr/loopback-assignment","homepage":null,"size":13,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Pentiado:master","ref":"master","sha":"982fd9937a86ea361941c6801f5078f6ae0f3fa9","user":{"login":"Pentiado","id":1911020,"avatar_url":"https://avatars.githubusercontent.com/u/1911020?v=3","gravatar_id":"","url":"https://api.github.com/users/Pentiado","html_url":"https://github.com/Pentiado","followers_url":"https://api.github.com/users/Pentiado/followers","following_url":"https://api.github.com/users/Pentiado/following{/other_user}","gists_url":"https://api.github.com/users/Pentiado/gists{/gist_id}","starred_url":"https://api.github.com/users/Pentiado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pentiado/subscriptions","organizations_url":"https://api.github.com/users/Pentiado/orgs","repos_url":"https://api.github.com/users/Pentiado/repos","events_url":"https://api.github.com/users/Pentiado/events{/privacy}","received_events_url":"https://api.github.com/users/Pentiado/received_events","type":"User","site_admin":false},"repo":{"id":48171628,"name":"loopback-assignment","full_name":"Pentiado/loopback-assignment","owner":{"login":"Pentiado","id":1911020,"avatar_url":"https://avatars.githubusercontent.com/u/1911020?v=3","gravatar_id":"","url":"https://api.github.com/users/Pentiado","html_url":"https://github.com/Pentiado","followers_url":"https://api.github.com/users/Pentiado/followers","following_url":"https://api.github.com/users/Pentiado/following{/other_user}","gists_url":"https://api.github.com/users/Pentiado/gists{/gist_id}","starred_url":"https://api.github.com/users/Pentiado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pentiado/subscriptions","organizations_url":"https://api.github.com/users/Pentiado/orgs","repos_url":"https://api.github.com/users/Pentiado/repos","events_url":"https://api.github.com/users/Pentiado/events{/privacy}","received_events_url":"https://api.github.com/users/Pentiado/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Pentiado/loopback-assignment","description":"","fork":false,"url":"https://api.github.com/repos/Pentiado/loopback-assignment","forks_url":"https://api.github.com/repos/Pentiado/loopback-assignment/forks","keys_url":"https://api.github.com/repos/Pentiado/loopback-assignment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pentiado/loopback-assignment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pentiado/loopback-assignment/teams","hooks_url":"https://api.github.com/repos/Pentiado/loopback-assignment/hooks","issue_events_url":"https://api.github.com/repos/Pentiado/loopback-assignment/issues/events{/number}","events_url":"https://api.github.com/repos/Pentiado/loopback-assignment/events","assignees_url":"https://api.github.com/repos/Pentiado/loopback-assignment/assignees{/user}","branches_url":"https://api.github.com/repos/Pentiado/loopback-assignment/branches{/branch}","tags_url":"https://api.github.com/repos/Pentiado/loopback-assignment/tags","blobs_url":"https://api.github.com/repos/Pentiado/loopback-assignment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pentiado/loopback-assignment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pentiado/loopback-assignment/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pentiado/loopback-assignment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pentiado/loopback-assignment/statuses/{sha}","languages_url":"https://api.github.com/repos/Pentiado/loopback-assignment/languages","stargazers_url":"https://api.github.com/repos/Pentiado/loopback-assignment/stargazers","contributors_url":"https://api.github.com/repos/Pentiado/loopback-assignment/contributors","subscribers_url":"https://api.github.com/repos/Pentiado/loopback-assignment/subscribers","subscription_url":"https://api.github.com/repos/Pentiado/loopback-assignment/subscription","commits_url":"https://api.github.com/repos/Pentiado/loopback-assignment/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pentiado/loopback-assignment/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pentiado/loopback-assignment/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pentiado/loopback-assignment/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pentiado/loopback-assignment/contents/{+path}","compare_url":"https://api.github.com/repos/Pentiado/loopback-assignment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pentiado/loopback-assignment/merges","archive_url":"https://api.github.com/repos/Pentiado/loopback-assignment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pentiado/loopback-assignment/downloads","issues_url":"https://api.github.com/repos/Pentiado/loopback-assignment/issues{/number}","pulls_url":"https://api.github.com/repos/Pentiado/loopback-assignment/pulls{/number}","milestones_url":"https://api.github.com/repos/Pentiado/loopback-assignment/milestones{/number}","notifications_url":"https://api.github.com/repos/Pentiado/loopback-assignment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pentiado/loopback-assignment/labels{/name}","releases_url":"https://api.github.com/repos/Pentiado/loopback-assignment/releases{/id}","deployments_url":"https://api.github.com/repos/Pentiado/loopback-assignment/deployments","created_at":"2015-12-17T11:53:14Z","updated_at":"2015-12-17T11:53:36Z","pushed_at":"2016-01-11T05:11:14Z","git_url":"git://github.com/Pentiado/loopback-assignment.git","ssh_url":"git@github.com:Pentiado/loopback-assignment.git","clone_url":"https://github.com/Pentiado/loopback-assignment.git","svn_url":"https://github.com/Pentiado/loopback-assignment","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Pentiado/loopback-assignment/pulls/2"},"html":{"href":"https://github.com/Pentiado/loopback-assignment/pull/2"},"issue":{"href":"https://api.github.com/repos/Pentiado/loopback-assignment/issues/2"},"comments":{"href":"https://api.github.com/repos/Pentiado/loopback-assignment/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Pentiado/loopback-assignment/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Pentiado/loopback-assignment/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Pentiado/loopback-assignment/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Pentiado/loopback-assignment/statuses/07cef4fcffef31323adf90159f2350af7ffc69ea"}}}}