{"action":"created","comment":{"url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/pulls/comments/74588775","id":74588775,"diff_hunk":"@@ -0,0 +1,53 @@\n+/*\n+ * Copyright 2016 HM Revenue & Customs\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package services\n+\n+import connector.{AnalyticsData, AnalyticsPlatformConnector, GaEvent}\n+import model.TAuditContext\n+import play.api.Logger\n+import play.api.mvc.{AnyContent, Request}\n+import uk.gov.hmrc.play.http.HeaderCarrier\n+\n+trait AnalyticsEventSender {\n+\n+  private val routingCategory = \"routing\"\n+  private val b2svRegistrationCategory = \"sos_b2sv_registration_route\"\n+\n+  def analyticsPlatformConnector: AnalyticsPlatformConnector\n+\n+  def sendRoutingEvents(locationName: String, auditContext: TAuditContext)(implicit request: Request[AnyContent], hc: HeaderCarrier) = {","path":"app/services/AnalyticsEventSender.scala","position":32,"original_position":32,"commit_id":"3f0720f267094466af2a986fd5d6a9487bf21776","original_commit_id":"3f0720f267094466af2a986fd5d6a9487bf21776","user":{"login":"anshulbajpai","id":291429,"avatar_url":"https://avatars.githubusercontent.com/u/291429?v=3","gravatar_id":"","url":"https://api.github.com/users/anshulbajpai","html_url":"https://github.com/anshulbajpai","followers_url":"https://api.github.com/users/anshulbajpai/followers","following_url":"https://api.github.com/users/anshulbajpai/following{/other_user}","gists_url":"https://api.github.com/users/anshulbajpai/gists{/gist_id}","starred_url":"https://api.github.com/users/anshulbajpai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anshulbajpai/subscriptions","organizations_url":"https://api.github.com/users/anshulbajpai/orgs","repos_url":"https://api.github.com/users/anshulbajpai/repos","events_url":"https://api.github.com/users/anshulbajpai/events{/privacy}","received_events_url":"https://api.github.com/users/anshulbajpai/received_events","type":"User","site_admin":false},"body":"True, even I thought of renaming it. What do you suggest?","created_at":"2016-08-12T13:20:02Z","updated_at":"2016-08-12T13:20:02Z","html_url":"https://github.com/hmrc/tax-account-router-frontend/pull/29#discussion_r74588775","pull_request_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/hmrc/tax-account-router-frontend/pulls/comments/74588775"},"html":{"href":"https://github.com/hmrc/tax-account-router-frontend/pull/29#discussion_r74588775"},"pull_request":{"href":"https://api.github.com/repos/hmrc/tax-account-router-frontend/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/pulls/29","id":81115244,"html_url":"https://github.com/hmrc/tax-account-router-frontend/pull/29","diff_url":"https://github.com/hmrc/tax-account-router-frontend/pull/29.diff","patch_url":"https://github.com/hmrc/tax-account-router-frontend/pull/29.patch","issue_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/issues/29","number":29,"state":"open","locked":false,"title":"TSV-191 GA custom events for Tax account router","user":{"login":"anshulbajpai","id":291429,"avatar_url":"https://avatars.githubusercontent.com/u/291429?v=3","gravatar_id":"","url":"https://api.github.com/users/anshulbajpai","html_url":"https://github.com/anshulbajpai","followers_url":"https://api.github.com/users/anshulbajpai/followers","following_url":"https://api.github.com/users/anshulbajpai/following{/other_user}","gists_url":"https://api.github.com/users/anshulbajpai/gists{/gist_id}","starred_url":"https://api.github.com/users/anshulbajpai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anshulbajpai/subscriptions","organizations_url":"https://api.github.com/users/anshulbajpai/orgs","repos_url":"https://api.github.com/users/anshulbajpai/repos","events_url":"https://api.github.com/users/anshulbajpai/events{/privacy}","received_events_url":"https://api.github.com/users/anshulbajpai/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-12T13:01:54Z","updated_at":"2016-08-12T13:20:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db20395e51bb667f345b64cb1f9db649c46744b5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/pulls/29/commits","review_comments_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/pulls/29/comments","review_comment_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/issues/29/comments","statuses_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/statuses/3f0720f267094466af2a986fd5d6a9487bf21776","head":{"label":"hmrc:TSV-191","ref":"TSV-191","sha":"3f0720f267094466af2a986fd5d6a9487bf21776","user":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"repo":{"id":42583590,"name":"tax-account-router-frontend","full_name":"hmrc/tax-account-router-frontend","owner":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmrc/tax-account-router-frontend","description":"","fork":false,"url":"https://api.github.com/repos/hmrc/tax-account-router-frontend","forks_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/forks","keys_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/teams","hooks_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/hooks","issue_events_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/events","assignees_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/tags","blobs_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/languages","stargazers_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/stargazers","contributors_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/contributors","subscribers_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/subscribers","subscription_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/subscription","commits_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/merges","archive_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/downloads","issues_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/labels{/name}","releases_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/deployments","created_at":"2015-09-16T11:40:45Z","updated_at":"2016-03-25T13:46:30Z","pushed_at":"2016-08-12T13:06:36Z","git_url":"git://github.com/hmrc/tax-account-router-frontend.git","ssh_url":"git@github.com:hmrc/tax-account-router-frontend.git","clone_url":"https://github.com/hmrc/tax-account-router-frontend.git","svn_url":"https://github.com/hmrc/tax-account-router-frontend","homepage":null,"size":7805,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"hmrc:master","ref":"master","sha":"ee283612944bf0c13a4b1acc5812970cfdcb1d57","user":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"repo":{"id":42583590,"name":"tax-account-router-frontend","full_name":"hmrc/tax-account-router-frontend","owner":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmrc/tax-account-router-frontend","description":"","fork":false,"url":"https://api.github.com/repos/hmrc/tax-account-router-frontend","forks_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/forks","keys_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/teams","hooks_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/hooks","issue_events_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/events","assignees_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/tags","blobs_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/languages","stargazers_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/stargazers","contributors_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/contributors","subscribers_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/subscribers","subscription_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/subscription","commits_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/merges","archive_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/downloads","issues_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/labels{/name}","releases_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/hmrc/tax-account-router-frontend/deployments","created_at":"2015-09-16T11:40:45Z","updated_at":"2016-03-25T13:46:30Z","pushed_at":"2016-08-12T13:06:36Z","git_url":"git://github.com/hmrc/tax-account-router-frontend.git","ssh_url":"git@github.com:hmrc/tax-account-router-frontend.git","clone_url":"https://github.com/hmrc/tax-account-router-frontend.git","svn_url":"https://github.com/hmrc/tax-account-router-frontend","homepage":null,"size":7805,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmrc/tax-account-router-frontend/pulls/29"},"html":{"href":"https://github.com/hmrc/tax-account-router-frontend/pull/29"},"issue":{"href":"https://api.github.com/repos/hmrc/tax-account-router-frontend/issues/29"},"comments":{"href":"https://api.github.com/repos/hmrc/tax-account-router-frontend/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/hmrc/tax-account-router-frontend/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/hmrc/tax-account-router-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmrc/tax-account-router-frontend/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/hmrc/tax-account-router-frontend/statuses/3f0720f267094466af2a986fd5d6a9487bf21776"}}}}
{"actor":{"display_login":"anshulbajpai"}}