{"action":"created","comment":{"url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/pulls/comments/204314249","pull_request_review_id":139370066,"id":204314249,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNDMxNDI0OQ==","diff_hunk":"@@ -0,0 +1,121 @@\n+// my presentation logic\n+\n+// optional, reduce the size of the restaurants loaded in memory\n+// restaurants.splice(100);\n+\n+var search = new SearchPanel();\n+/*\n+search.onSearch(function (query) {\n+    \n+    logic.searchArtists(query, function (error, artists) {\n+        console.log(\"hi\");\n+        if (error) alert('Sorry, we have temporary problem, try again later.');\n+        else \n+             results.updateResults(artists.map(function (artist) {\n+                    return {\n+                        //id: artist.id,\n+                        text: artist.name\n+                    };\n+                }));\n+   });\n+\n+\n+    detailContainer.clear();\n+});\n+*/\n+\n+search.onSearch(function (query) {\n+    \n+    logic.searchArtists(query)\n+        .then (function (artists) {\n+            results.updateResults(artists.map(function (artist) {\n+                    return {\n+                        id: artist.id,\n+                        text: artist.name,\n+                        class: \"artist\"\n+                    };\n+                }));\n+   });\n+\n+\n+    detailContainer.clear();\n+});\n+\n+var results = new ResultsList();\n+\n+//var DEFAULT_IMAGE = 'https://i.pinimg.com/originals/37/2a/2d/372a2d5e8a32991bb19982271d0762fe.jpg';\n+\n+//\n+\n+\n+results.onItemClick(function (id,text,classe) {\n+    \n+    debugger;\n+    if ( classe === \"artist\") {\n+\n+        logic.retrieveAlbumsByArtistId(id)\n+         .then (function (albums){\n+            results.updateResults(albums.map(function (album) {\n+                return {\n+                    id: album.id,\n+                    text: album.name,\n+                    class: \"album\"\n+                };\n+         }))\n+            \n+        })","path":"staff/pau-sanchez/spotify-app/scripts/main.js","position":null,"original_position":66,"commit_id":"6b68945705c1a0a982707b950ac0eb5a2ebe524e","original_commit_id":"50b6511e65f3fb21c9befdc57f83fe71216b50f5","user":{"login":"pausanchez","id":28714738,"node_id":"MDQ6VXNlcjI4NzE0NzM4","avatar_url":"https://avatars3.githubusercontent.com/u/28714738?v=4","gravatar_id":"","url":"https://api.github.com/users/pausanchez","html_url":"https://github.com/pausanchez","followers_url":"https://api.github.com/users/pausanchez/followers","following_url":"https://api.github.com/users/pausanchez/following{/other_user}","gists_url":"https://api.github.com/users/pausanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/pausanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pausanchez/subscriptions","organizations_url":"https://api.github.com/users/pausanchez/orgs","repos_url":"https://api.github.com/users/pausanchez/repos","events_url":"https://api.github.com/users/pausanchez/events{/privacy}","received_events_url":"https://api.github.com/users/pausanchez/received_events","type":"User","site_admin":false},"body":"File modified main folder","created_at":"2018-07-23T08:11:43Z","updated_at":"2018-07-23T08:11:43Z","html_url":"https://github.com/manuelbarzi/skylab-bootcamp-201807/pull/48#discussion_r204314249","pull_request_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/pulls/48","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/pulls/comments/204314249"},"html":{"href":"https://github.com/manuelbarzi/skylab-bootcamp-201807/pull/48#discussion_r204314249"},"pull_request":{"href":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/pulls/48"}},"in_reply_to_id":203373819},"pull_request":{"url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/pulls/48","id":199161421,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MTYxNDIx","html_url":"https://github.com/manuelbarzi/skylab-bootcamp-201807/pull/48","diff_url":"https://github.com/manuelbarzi/skylab-bootcamp-201807/pull/48.diff","patch_url":"https://github.com/manuelbarzi/skylab-bootcamp-201807/pull/48.patch","issue_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/issues/48","number":48,"state":"open","locked":false,"title":"add precourse","user":{"login":"pausanchez","id":28714738,"node_id":"MDQ6VXNlcjI4NzE0NzM4","avatar_url":"https://avatars3.githubusercontent.com/u/28714738?v=4","gravatar_id":"","url":"https://api.github.com/users/pausanchez","html_url":"https://github.com/pausanchez","followers_url":"https://api.github.com/users/pausanchez/followers","following_url":"https://api.github.com/users/pausanchez/following{/other_user}","gists_url":"https://api.github.com/users/pausanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/pausanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pausanchez/subscriptions","organizations_url":"https://api.github.com/users/pausanchez/orgs","repos_url":"https://api.github.com/users/pausanchez/repos","events_url":"https://api.github.com/users/pausanchez/events{/privacy}","received_events_url":"https://api.github.com/users/pausanchez/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-04T07:31:11Z","updated_at":"2018-07-23T08:11:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6116714dc1acd248523d400f2fdf287322e9c70c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/pulls/48/commits","review_comments_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/pulls/48/comments","review_comment_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/pulls/comments{/number}","comments_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/issues/48/comments","statuses_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/statuses/6b68945705c1a0a982707b950ac0eb5a2ebe524e","head":{"label":"pausanchez:develop","ref":"develop","sha":"6b68945705c1a0a982707b950ac0eb5a2ebe524e","user":{"login":"pausanchez","id":28714738,"node_id":"MDQ6VXNlcjI4NzE0NzM4","avatar_url":"https://avatars3.githubusercontent.com/u/28714738?v=4","gravatar_id":"","url":"https://api.github.com/users/pausanchez","html_url":"https://github.com/pausanchez","followers_url":"https://api.github.com/users/pausanchez/followers","following_url":"https://api.github.com/users/pausanchez/following{/other_user}","gists_url":"https://api.github.com/users/pausanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/pausanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pausanchez/subscriptions","organizations_url":"https://api.github.com/users/pausanchez/orgs","repos_url":"https://api.github.com/users/pausanchez/repos","events_url":"https://api.github.com/users/pausanchez/events{/privacy}","received_events_url":"https://api.github.com/users/pausanchez/received_events","type":"User","site_admin":false},"repo":{"id":139588459,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk1ODg0NTk=","name":"skylab-bootcamp-201807","full_name":"pausanchez/skylab-bootcamp-201807","owner":{"login":"pausanchez","id":28714738,"node_id":"MDQ6VXNlcjI4NzE0NzM4","avatar_url":"https://avatars3.githubusercontent.com/u/28714738?v=4","gravatar_id":"","url":"https://api.github.com/users/pausanchez","html_url":"https://github.com/pausanchez","followers_url":"https://api.github.com/users/pausanchez/followers","following_url":"https://api.github.com/users/pausanchez/following{/other_user}","gists_url":"https://api.github.com/users/pausanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/pausanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pausanchez/subscriptions","organizations_url":"https://api.github.com/users/pausanchez/orgs","repos_url":"https://api.github.com/users/pausanchez/repos","events_url":"https://api.github.com/users/pausanchez/events{/privacy}","received_events_url":"https://api.github.com/users/pausanchez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pausanchez/skylab-bootcamp-201807","description":null,"fork":true,"url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807","forks_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/forks","keys_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/teams","hooks_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/hooks","issue_events_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/issues/events{/number}","events_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/events","assignees_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/assignees{/user}","branches_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/branches{/branch}","tags_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/tags","blobs_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/git/refs{/sha}","trees_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/statuses/{sha}","languages_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/languages","stargazers_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/stargazers","contributors_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/contributors","subscribers_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/subscribers","subscription_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/subscription","commits_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/commits{/sha}","git_commits_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/git/commits{/sha}","comments_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/comments{/number}","issue_comment_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/issues/comments{/number}","contents_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/contents/{+path}","compare_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/merges","archive_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/downloads","issues_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/issues{/number}","pulls_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/pulls{/number}","milestones_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/milestones{/number}","notifications_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/labels{/name}","releases_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/releases{/id}","deployments_url":"https://api.github.com/repos/pausanchez/skylab-bootcamp-201807/deployments","created_at":"2018-07-03T13:35:07Z","updated_at":"2018-07-03T13:35:09Z","pushed_at":"2018-07-23T08:10:04Z","git_url":"git://github.com/pausanchez/skylab-bootcamp-201807.git","ssh_url":"git@github.com:pausanchez/skylab-bootcamp-201807.git","clone_url":"https://github.com/pausanchez/skylab-bootcamp-201807.git","svn_url":"https://github.com/pausanchez/skylab-bootcamp-201807","homepage":null,"size":39755,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"manuelbarzi:develop","ref":"develop","sha":"68f508badaaeb3157a260f53cb9f735cc2477ac2","user":{"login":"manuelbarzi","id":950133,"node_id":"MDQ6VXNlcjk1MDEzMw==","avatar_url":"https://avatars0.githubusercontent.com/u/950133?v=4","gravatar_id":"","url":"https://api.github.com/users/manuelbarzi","html_url":"https://github.com/manuelbarzi","followers_url":"https://api.github.com/users/manuelbarzi/followers","following_url":"https://api.github.com/users/manuelbarzi/following{/other_user}","gists_url":"https://api.github.com/users/manuelbarzi/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelbarzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelbarzi/subscriptions","organizations_url":"https://api.github.com/users/manuelbarzi/orgs","repos_url":"https://api.github.com/users/manuelbarzi/repos","events_url":"https://api.github.com/users/manuelbarzi/events{/privacy}","received_events_url":"https://api.github.com/users/manuelbarzi/received_events","type":"User","site_admin":false},"repo":{"id":139587525,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk1ODc1MjU=","name":"skylab-bootcamp-201807","full_name":"manuelbarzi/skylab-bootcamp-201807","owner":{"login":"manuelbarzi","id":950133,"node_id":"MDQ6VXNlcjk1MDEzMw==","avatar_url":"https://avatars0.githubusercontent.com/u/950133?v=4","gravatar_id":"","url":"https://api.github.com/users/manuelbarzi","html_url":"https://github.com/manuelbarzi","followers_url":"https://api.github.com/users/manuelbarzi/followers","following_url":"https://api.github.com/users/manuelbarzi/following{/other_user}","gists_url":"https://api.github.com/users/manuelbarzi/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelbarzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelbarzi/subscriptions","organizations_url":"https://api.github.com/users/manuelbarzi/orgs","repos_url":"https://api.github.com/users/manuelbarzi/repos","events_url":"https://api.github.com/users/manuelbarzi/events{/privacy}","received_events_url":"https://api.github.com/users/manuelbarzi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/manuelbarzi/skylab-bootcamp-201807","description":null,"fork":false,"url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807","forks_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/forks","keys_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/teams","hooks_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/hooks","issue_events_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/issues/events{/number}","events_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/events","assignees_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/assignees{/user}","branches_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/branches{/branch}","tags_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/tags","blobs_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/git/refs{/sha}","trees_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/statuses/{sha}","languages_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/languages","stargazers_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/stargazers","contributors_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/contributors","subscribers_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/subscribers","subscription_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/subscription","commits_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/commits{/sha}","git_commits_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/git/commits{/sha}","comments_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/comments{/number}","issue_comment_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/issues/comments{/number}","contents_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/contents/{+path}","compare_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/merges","archive_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/downloads","issues_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/issues{/number}","pulls_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/pulls{/number}","milestones_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/milestones{/number}","notifications_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/labels{/name}","releases_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/releases{/id}","deployments_url":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/deployments","created_at":"2018-07-03T13:28:30Z","updated_at":"2018-07-09T07:39:44Z","pushed_at":"2018-07-23T08:10:05Z","git_url":"git://github.com/manuelbarzi/skylab-bootcamp-201807.git","ssh_url":"git@github.com:manuelbarzi/skylab-bootcamp-201807.git","clone_url":"https://github.com/manuelbarzi/skylab-bootcamp-201807.git","svn_url":"https://github.com/manuelbarzi/skylab-bootcamp-201807","homepage":null,"size":35388,"stargazers_count":6,"watchers_count":6,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"archived":false,"open_issues_count":15,"license":null,"forks":21,"open_issues":15,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/pulls/48"},"html":{"href":"https://github.com/manuelbarzi/skylab-bootcamp-201807/pull/48"},"issue":{"href":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/issues/48"},"comments":{"href":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/manuelbarzi/skylab-bootcamp-201807/statuses/6b68945705c1a0a982707b950ac0eb5a2ebe524e"}},"author_association":"NONE"}}
{"actor":{"display_login":"pausanchez"}}