{"action":"created","comment":{"url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/pulls/comments/54614820","id":54614820,"diff_hunk":"@@ -32,7 +32,6 @@ function ksNewRelicBrowser($window, $location, $log) {\n   }\n \n   function okToSend() {\n-    var host = $location.host();\n-    return $window.NREUM !== undefined && (host !== 'localhost' || host !== '127.0.0.1');","path":"src/ks-newrelic-browser.service.js","position":14,"original_position":14,"commit_id":"5b78d59e5027c46be2256c514d67729ea166d53b","original_commit_id":"5b78d59e5027c46be2256c514d67729ea166d53b","user":{"login":"skwoka","id":474350,"avatar_url":"https://avatars.githubusercontent.com/u/474350?v=3","gravatar_id":"","url":"https://api.github.com/users/skwoka","html_url":"https://github.com/skwoka","followers_url":"https://api.github.com/users/skwoka/followers","following_url":"https://api.github.com/users/skwoka/following{/other_user}","gists_url":"https://api.github.com/users/skwoka/gists{/gist_id}","starred_url":"https://api.github.com/users/skwoka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skwoka/subscriptions","organizations_url":"https://api.github.com/users/skwoka/orgs","repos_url":"https://api.github.com/users/skwoka/repos","events_url":"https://api.github.com/users/skwoka/events{/privacy}","received_events_url":"https://api.github.com/users/skwoka/received_events","type":"User","site_admin":false},"body":"No need to check the host because we can filter/whitelist domains in NR.","created_at":"2016-03-01T18:50:28Z","updated_at":"2016-03-01T18:50:28Z","html_url":"https://github.com/Kashoo/ks-newrelic-browser/pull/3#discussion_r54614820","pull_request_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/pulls/comments/54614820"},"html":{"href":"https://github.com/Kashoo/ks-newrelic-browser/pull/3#discussion_r54614820"},"pull_request":{"href":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/pulls/3","id":61287699,"html_url":"https://github.com/Kashoo/ks-newrelic-browser/pull/3","diff_url":"https://github.com/Kashoo/ks-newrelic-browser/pull/3.diff","patch_url":"https://github.com/Kashoo/ks-newrelic-browser/pull/3.patch","issue_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/issues/3","number":3,"state":"open","locked":false,"title":"BOV-141: capture HTTP errors transparently","user":{"login":"skwoka","id":474350,"avatar_url":"https://avatars.githubusercontent.com/u/474350?v=3","gravatar_id":"","url":"https://api.github.com/users/skwoka","html_url":"https://github.com/skwoka","followers_url":"https://api.github.com/users/skwoka/followers","following_url":"https://api.github.com/users/skwoka/following{/other_user}","gists_url":"https://api.github.com/users/skwoka/gists{/gist_id}","starred_url":"https://api.github.com/users/skwoka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skwoka/subscriptions","organizations_url":"https://api.github.com/users/skwoka/orgs","repos_url":"https://api.github.com/users/skwoka/repos","events_url":"https://api.github.com/users/skwoka/events{/privacy}","received_events_url":"https://api.github.com/users/skwoka/received_events","type":"User","site_admin":false},"body":"Capture HTTP errors via `$httpInterceptor`. This approach removes the need to manually wire in `ksNewRelicBrowser` in Restangular's `errorInterceptor`.\r\n\r\nI also took this opportunity to factor out the decorator `$exceptionHandler` to its own file.","created_at":"2016-03-01T18:39:38Z","updated_at":"2016-03-01T18:50:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51f9af07e4a4cc538d276ae50ac0790748c32c6b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/issues/3/comments","statuses_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/statuses/5b78d59e5027c46be2256c514d67729ea166d53b","head":{"label":"Kashoo:skwok/BOV-141_decorate-core-services","ref":"skwok/BOV-141_decorate-core-services","sha":"5b78d59e5027c46be2256c514d67729ea166d53b","user":{"login":"Kashoo","id":989660,"avatar_url":"https://avatars.githubusercontent.com/u/989660?v=3","gravatar_id":"","url":"https://api.github.com/users/Kashoo","html_url":"https://github.com/Kashoo","followers_url":"https://api.github.com/users/Kashoo/followers","following_url":"https://api.github.com/users/Kashoo/following{/other_user}","gists_url":"https://api.github.com/users/Kashoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Kashoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kashoo/subscriptions","organizations_url":"https://api.github.com/users/Kashoo/orgs","repos_url":"https://api.github.com/users/Kashoo/repos","events_url":"https://api.github.com/users/Kashoo/events{/privacy}","received_events_url":"https://api.github.com/users/Kashoo/received_events","type":"Organization","site_admin":false},"repo":{"id":50882764,"name":"ks-newrelic-browser","full_name":"Kashoo/ks-newrelic-browser","owner":{"login":"Kashoo","id":989660,"avatar_url":"https://avatars.githubusercontent.com/u/989660?v=3","gravatar_id":"","url":"https://api.github.com/users/Kashoo","html_url":"https://github.com/Kashoo","followers_url":"https://api.github.com/users/Kashoo/followers","following_url":"https://api.github.com/users/Kashoo/following{/other_user}","gists_url":"https://api.github.com/users/Kashoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Kashoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kashoo/subscriptions","organizations_url":"https://api.github.com/users/Kashoo/orgs","repos_url":"https://api.github.com/users/Kashoo/repos","events_url":"https://api.github.com/users/Kashoo/events{/privacy}","received_events_url":"https://api.github.com/users/Kashoo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kashoo/ks-newrelic-browser","description":"","fork":false,"url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser","forks_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/forks","keys_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/teams","hooks_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/hooks","issue_events_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/issues/events{/number}","events_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/events","assignees_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/assignees{/user}","branches_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/branches{/branch}","tags_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/tags","blobs_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/statuses/{sha}","languages_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/languages","stargazers_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/stargazers","contributors_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/contributors","subscribers_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/subscribers","subscription_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/subscription","commits_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/contents/{+path}","compare_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/merges","archive_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/downloads","issues_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/issues{/number}","pulls_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/pulls{/number}","milestones_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/milestones{/number}","notifications_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/labels{/name}","releases_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/releases{/id}","deployments_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/deployments","created_at":"2016-02-02T00:45:21Z","updated_at":"2016-02-05T01:14:37Z","pushed_at":"2016-03-01T18:39:38Z","git_url":"git://github.com/Kashoo/ks-newrelic-browser.git","ssh_url":"git@github.com:Kashoo/ks-newrelic-browser.git","clone_url":"https://github.com/Kashoo/ks-newrelic-browser.git","svn_url":"https://github.com/Kashoo/ks-newrelic-browser","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Kashoo:master","ref":"master","sha":"5447da83c7a87883986daede6354c5a7520b84cb","user":{"login":"Kashoo","id":989660,"avatar_url":"https://avatars.githubusercontent.com/u/989660?v=3","gravatar_id":"","url":"https://api.github.com/users/Kashoo","html_url":"https://github.com/Kashoo","followers_url":"https://api.github.com/users/Kashoo/followers","following_url":"https://api.github.com/users/Kashoo/following{/other_user}","gists_url":"https://api.github.com/users/Kashoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Kashoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kashoo/subscriptions","organizations_url":"https://api.github.com/users/Kashoo/orgs","repos_url":"https://api.github.com/users/Kashoo/repos","events_url":"https://api.github.com/users/Kashoo/events{/privacy}","received_events_url":"https://api.github.com/users/Kashoo/received_events","type":"Organization","site_admin":false},"repo":{"id":50882764,"name":"ks-newrelic-browser","full_name":"Kashoo/ks-newrelic-browser","owner":{"login":"Kashoo","id":989660,"avatar_url":"https://avatars.githubusercontent.com/u/989660?v=3","gravatar_id":"","url":"https://api.github.com/users/Kashoo","html_url":"https://github.com/Kashoo","followers_url":"https://api.github.com/users/Kashoo/followers","following_url":"https://api.github.com/users/Kashoo/following{/other_user}","gists_url":"https://api.github.com/users/Kashoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Kashoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kashoo/subscriptions","organizations_url":"https://api.github.com/users/Kashoo/orgs","repos_url":"https://api.github.com/users/Kashoo/repos","events_url":"https://api.github.com/users/Kashoo/events{/privacy}","received_events_url":"https://api.github.com/users/Kashoo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kashoo/ks-newrelic-browser","description":"","fork":false,"url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser","forks_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/forks","keys_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/teams","hooks_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/hooks","issue_events_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/issues/events{/number}","events_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/events","assignees_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/assignees{/user}","branches_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/branches{/branch}","tags_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/tags","blobs_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/statuses/{sha}","languages_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/languages","stargazers_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/stargazers","contributors_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/contributors","subscribers_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/subscribers","subscription_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/subscription","commits_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/contents/{+path}","compare_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/merges","archive_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/downloads","issues_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/issues{/number}","pulls_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/pulls{/number}","milestones_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/milestones{/number}","notifications_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/labels{/name}","releases_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/releases{/id}","deployments_url":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/deployments","created_at":"2016-02-02T00:45:21Z","updated_at":"2016-02-05T01:14:37Z","pushed_at":"2016-03-01T18:39:38Z","git_url":"git://github.com/Kashoo/ks-newrelic-browser.git","ssh_url":"git@github.com:Kashoo/ks-newrelic-browser.git","clone_url":"https://github.com/Kashoo/ks-newrelic-browser.git","svn_url":"https://github.com/Kashoo/ks-newrelic-browser","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/pulls/3"},"html":{"href":"https://github.com/Kashoo/ks-newrelic-browser/pull/3"},"issue":{"href":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/issues/3"},"comments":{"href":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Kashoo/ks-newrelic-browser/statuses/5b78d59e5027c46be2256c514d67729ea166d53b"}}}}