GitHub PullRequestReviewCommentEvent at 2014-09-07 19:39:11
Repository: Endpoint
Actor: Lkroner
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/mule-deer-2014/Endpoint/pulls/comments/17216696","id":17216696,"diff_hunk":"@@ -5,43 +5,53 @@ app.ApiProfile = {\n }\n \n app.ApiProfile.Models.Profile = Backbone.Model.extend({\n-  // do we intialize our model here?\n-  // we will pass the model into the view\n+\n+  urlRoot: '/apis/:id',\n+\n   initialize: function(){\n   },\n \n   defaults: {\n-    \"title\": \"Google\",\n-    \"description\": \"This is the Google Api This is the Google Api This is the Google ApiThis is the Google ApiThis is the Google Api This is the Google Api This is the Google Api This is the Google Api This is the Google Api This is the Google Api This is the Google Api This is the Google Api This is the Google Api This is the Google Api This is the Google Api This is the Google Api This is the Google Api This is the Google Api\",\n-    \"tips\": \"Read the docs. RTFM.\",\n-    \"average_score\": \"3.4\",\n-    \"logo_url\": \"http://www.efytimes.com/admin/useradmin/photo/google-mobile-app-store-logo.png\",\n-    \"data_type\": \"JSON\",\n-    \"doc_link\": \"www.google.com\",\n-    \"endpoint_link\": \"www.google.com/endpoints\",\n-    \"num_followers\": 302\n+    \"title\": \"\",\n+    \"description\": \"\",\n+    \"tips\": \"\",\n+    \"average_score\": \"\",\n+    \"logo_url\": \"\",\n+    \"data_type\": \"\",\n+    \"doc_link\": \"\",\n+    \"endpoint_link\": \"\",\n+    \"num_followers\": 0,\n+    // \"reviews\": \"\"\n   }\n \n })\n \n+// var profile = new app.ApiProfile.Models.Profile\n+\n app.ApiProfile.Views.Profile = Backbone.View.extend({\n \n   // hit the database with the api_id sent in from the search page, do an ajax call to get the model shit we need\n-  model: new app.ApiProfile.Models.Profile,\n+  model: app.ApiProfile.Models.Profile,\n \n-  events: {\n-    // event listeners for info tab, tips/tricks and links\n-  },\n-\n-  initialize: function(){\n+  initialize: function(opts){\n     console.log(\"Api Profile view initialized\")\n+    this.id = opts.id\n   },\n \n   template: _.template($('#apiprofile-template').html()),\n \n   render: function() {\n-    console.log(this.model.attributes.logo_url)\n-    this.$el.html(this.template(this.model.attributes));\n+    console.log(this.id)\n+    var apiObject = new this.model\n+    var that = this;\n+    $.ajax({\n+      url:'/apis/' + this.id,\n+      success: function(result){\n+        apiObject.set({title: result.api.title, average_score: result.api.average_score, data_type: result.api.data_type, description: result.api.description, doc_link: result.api.doc_link, endpoint_link: result.api.endpoint_link, logo_url: result.api.logo_url, num_followers: result.api.num_followers, tips: result.api.tips});\n+        that.$el.html(that.template(apiObject.attributes));\n+            debugger","path":"source/public/javascripts/apiprofilepage.js","position":67,"original_position":67,"commit_id":"a326c779c622bf754fe1cedcc6549b9011b2496d","original_commit_id":"a326c779c622bf754fe1cedcc6549b9011b2496d","user":{"login":"Lkroner","id":6423633,"avatar_url":"https://avatars.githubusercontent.com/u/6423633?v=2","gravatar_id":"28569ae969cade4e5074cc9ce8a3a539","url":"https://api.github.com/users/Lkroner","html_url":"https://github.com/Lkroner","followers_url":"https://api.github.com/users/Lkroner/followers","following_url":"https://api.github.com/users/Lkroner/following{/other_user}","gists_url":"https://api.github.com/users/Lkroner/gists{/gist_id}","starred_url":"https://api.github.com/users/Lkroner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lkroner/subscriptions","organizations_url":"https://api.github.com/users/Lkroner/orgs","repos_url":"https://api.github.com/users/Lkroner/repos","events_url":"https://api.github.com/users/Lkroner/events{/privacy}","received_events_url":"https://api.github.com/users/Lkroner/received_events","type":"User","site_admin":false},"body":"Take out debugger","created_at":"2014-09-07T19:39:11Z","updated_at":"2014-09-07T19:39:11Z","html_url":"https://github.com/mule-deer-2014/Endpoint/pull/32#discussion_r17216696","pull_request_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/mule-deer-2014/Endpoint/pulls/comments/17216696"},"html":{"href":"https://github.com/mule-deer-2014/Endpoint/pull/32#discussion_r17216696"},"pull_request":{"href":"https://api.github.com/repos/mule-deer-2014/Endpoint/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/mule-deer-2014/Endpoint/pulls/32","id":20863450,"html_url":"https://github.com/mule-deer-2014/Endpoint/pull/32","diff_url":"https://github.com/mule-deer-2014/Endpoint/pull/32.diff","patch_url":"https://github.com/mule-deer-2014/Endpoint/pull/32.patch","issue_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/issues/32","number":32,"state":"open","locked":false,"title":"Api profile","user":{"login":"ninachurch","id":7609314,"avatar_url":"https://avatars.githubusercontent.com/u/7609314?v=2","gravatar_id":"c17fe1f4f88077f519b3ea3333bdb7e1","url":"https://api.github.com/users/ninachurch","html_url":"https://github.com/ninachurch","followers_url":"https://api.github.com/users/ninachurch/followers","following_url":"https://api.github.com/users/ninachurch/following{/other_user}","gists_url":"https://api.github.com/users/ninachurch/gists{/gist_id}","starred_url":"https://api.github.com/users/ninachurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninachurch/subscriptions","organizations_url":"https://api.github.com/users/ninachurch/orgs","repos_url":"https://api.github.com/users/ninachurch/repos","events_url":"https://api.github.com/users/ninachurch/events{/privacy}","received_events_url":"https://api.github.com/users/ninachurch/received_events","type":"User","site_admin":false},"body":"functional call to api page, returns data into template","created_at":"2014-09-07T19:31:59Z","updated_at":"2014-09-07T19:39:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d42851d1c925ca010bcf73b4994660a79558240b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/pulls/32/commits","review_comments_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/pulls/32/comments","review_comment_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/issues/32/comments","statuses_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/statuses/a326c779c622bf754fe1cedcc6549b9011b2496d","head":{"label":"mule-deer-2014:api_profile","ref":"api_profile","sha":"a326c779c622bf754fe1cedcc6549b9011b2496d","user":{"login":"mule-deer-2014","id":6721485,"avatar_url":"https://avatars.githubusercontent.com/u/6721485?v=2","gravatar_id":null,"url":"https://api.github.com/users/mule-deer-2014","html_url":"https://github.com/mule-deer-2014","followers_url":"https://api.github.com/users/mule-deer-2014/followers","following_url":"https://api.github.com/users/mule-deer-2014/following{/other_user}","gists_url":"https://api.github.com/users/mule-deer-2014/gists{/gist_id}","starred_url":"https://api.github.com/users/mule-deer-2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mule-deer-2014/subscriptions","organizations_url":"https://api.github.com/users/mule-deer-2014/orgs","repos_url":"https://api.github.com/users/mule-deer-2014/repos","events_url":"https://api.github.com/users/mule-deer-2014/events{/privacy}","received_events_url":"https://api.github.com/users/mule-deer-2014/received_events","type":"Organization","site_admin":false},"repo":{"id":23680368,"name":"Endpoint","full_name":"mule-deer-2014/Endpoint","owner":{"login":"mule-deer-2014","id":6721485,"avatar_url":"https://avatars.githubusercontent.com/u/6721485?v=2","gravatar_id":null,"url":"https://api.github.com/users/mule-deer-2014","html_url":"https://github.com/mule-deer-2014","followers_url":"https://api.github.com/users/mule-deer-2014/followers","following_url":"https://api.github.com/users/mule-deer-2014/following{/other_user}","gists_url":"https://api.github.com/users/mule-deer-2014/gists{/gist_id}","starred_url":"https://api.github.com/users/mule-deer-2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mule-deer-2014/subscriptions","organizations_url":"https://api.github.com/users/mule-deer-2014/orgs","repos_url":"https://api.github.com/users/mule-deer-2014/repos","events_url":"https://api.github.com/users/mule-deer-2014/events{/privacy}","received_events_url":"https://api.github.com/users/mule-deer-2014/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mule-deer-2014/Endpoint","description":"API discovery. Helping developers find the API that fits.","fork":false,"url":"https://api.github.com/repos/mule-deer-2014/Endpoint","forks_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/forks","keys_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/teams","hooks_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/hooks","issue_events_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/issues/events{/number}","events_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/events","assignees_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/assignees{/user}","branches_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/branches{/branch}","tags_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/tags","blobs_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/git/refs{/sha}","trees_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/statuses/{sha}","languages_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/languages","stargazers_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/stargazers","contributors_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/contributors","subscribers_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/subscribers","subscription_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/subscription","commits_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/commits{/sha}","git_commits_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/git/commits{/sha}","comments_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/comments{/number}","issue_comment_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/issues/comments/{number}","contents_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/contents/{+path}","compare_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/merges","archive_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/downloads","issues_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/issues{/number}","pulls_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/pulls{/number}","milestones_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/milestones{/number}","notifications_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/labels{/name}","releases_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/releases{/id}","created_at":"2014-09-04T21:41:36Z","updated_at":"2014-09-05T18:48:26Z","pushed_at":"2014-09-07T19:19:42Z","git_url":"git://github.com/mule-deer-2014/Endpoint.git","ssh_url":"git@github.com:mule-deer-2014/Endpoint.git","clone_url":"https://github.com/mule-deer-2014/Endpoint.git","svn_url":"https://github.com/mule-deer-2014/Endpoint","homepage":null,"size":1164,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"mule-deer-2014:master","ref":"master","sha":"fbaf20136a3b7aeafe25229843e2aaef588e33d6","user":{"login":"mule-deer-2014","id":6721485,"avatar_url":"https://avatars.githubusercontent.com/u/6721485?v=2","gravatar_id":null,"url":"https://api.github.com/users/mule-deer-2014","html_url":"https://github.com/mule-deer-2014","followers_url":"https://api.github.com/users/mule-deer-2014/followers","following_url":"https://api.github.com/users/mule-deer-2014/following{/other_user}","gists_url":"https://api.github.com/users/mule-deer-2014/gists{/gist_id}","starred_url":"https://api.github.com/users/mule-deer-2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mule-deer-2014/subscriptions","organizations_url":"https://api.github.com/users/mule-deer-2014/orgs","repos_url":"https://api.github.com/users/mule-deer-2014/repos","events_url":"https://api.github.com/users/mule-deer-2014/events{/privacy}","received_events_url":"https://api.github.com/users/mule-deer-2014/received_events","type":"Organization","site_admin":false},"repo":{"id":23680368,"name":"Endpoint","full_name":"mule-deer-2014/Endpoint","owner":{"login":"mule-deer-2014","id":6721485,"avatar_url":"https://avatars.githubusercontent.com/u/6721485?v=2","gravatar_id":null,"url":"https://api.github.com/users/mule-deer-2014","html_url":"https://github.com/mule-deer-2014","followers_url":"https://api.github.com/users/mule-deer-2014/followers","following_url":"https://api.github.com/users/mule-deer-2014/following{/other_user}","gists_url":"https://api.github.com/users/mule-deer-2014/gists{/gist_id}","starred_url":"https://api.github.com/users/mule-deer-2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mule-deer-2014/subscriptions","organizations_url":"https://api.github.com/users/mule-deer-2014/orgs","repos_url":"https://api.github.com/users/mule-deer-2014/repos","events_url":"https://api.github.com/users/mule-deer-2014/events{/privacy}","received_events_url":"https://api.github.com/users/mule-deer-2014/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mule-deer-2014/Endpoint","description":"API discovery. Helping developers find the API that fits.","fork":false,"url":"https://api.github.com/repos/mule-deer-2014/Endpoint","forks_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/forks","keys_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/teams","hooks_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/hooks","issue_events_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/issues/events{/number}","events_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/events","assignees_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/assignees{/user}","branches_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/branches{/branch}","tags_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/tags","blobs_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/git/refs{/sha}","trees_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/statuses/{sha}","languages_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/languages","stargazers_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/stargazers","contributors_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/contributors","subscribers_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/subscribers","subscription_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/subscription","commits_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/commits{/sha}","git_commits_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/git/commits{/sha}","comments_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/comments{/number}","issue_comment_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/issues/comments/{number}","contents_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/contents/{+path}","compare_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/merges","archive_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/downloads","issues_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/issues{/number}","pulls_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/pulls{/number}","milestones_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/milestones{/number}","notifications_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/labels{/name}","releases_url":"https://api.github.com/repos/mule-deer-2014/Endpoint/releases{/id}","created_at":"2014-09-04T21:41:36Z","updated_at":"2014-09-05T18:48:26Z","pushed_at":"2014-09-07T19:19:42Z","git_url":"git://github.com/mule-deer-2014/Endpoint.git","ssh_url":"git@github.com:mule-deer-2014/Endpoint.git","clone_url":"https://github.com/mule-deer-2014/Endpoint.git","svn_url":"https://github.com/mule-deer-2014/Endpoint","homepage":null,"size":1164,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mule-deer-2014/Endpoint/pulls/32"},"html":{"href":"https://github.com/mule-deer-2014/Endpoint/pull/32"},"issue":{"href":"https://api.github.com/repos/mule-deer-2014/Endpoint/issues/32"},"comments":{"href":"https://api.github.com/repos/mule-deer-2014/Endpoint/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/mule-deer-2014/Endpoint/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/mule-deer-2014/Endpoint/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mule-deer-2014/Endpoint/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/mule-deer-2014/Endpoint/statuses/a326c779c622bf754fe1cedcc6549b9011b2496d"}}}}