{"action":"created","comment":{"url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/pulls/comments/73005741","id":73005741,"diff_hunk":"@@ -104,6 +104,23 @@ object MessageBusManager {\n         Xor.right(MessageBusPublisher(system.eventStream.publish))\n       case _ => Xor.left(new Missing(\"Unknown messaging mode specified\"))\n     }\n+  }\n+\n+  def getDeviceDeletedPublisher(system: ActorSystem, config: Config)\n+  : ConfigException Xor MessageBusPublisher[DeviceDeleted] = {\n+    val log = Logging.getLogger(system, this.getClass)\n \n+    config.getString(\"messaging.mode\") match {\n+      case \"nats\" =>\n+        log.info(\"Starting messaging mode: NATS\")\n+        NatsClient.getDeviceDeletedPublisher(system, config)\n+      case \"kinesis\" =>\n+        log.info(\"Starting messaging mode: Kinesis\")\n+        KinesisClient.getDeviceDeletedPublisher(system, config)\n+      case \"test\" =>\n+        log.info(\"Starting messaging mode: Test\")\n+        Xor.right(MessageBusPublisher(system.eventStream.publish))\n+      case _ => Xor.left(new Missing(\"Unknown messaging mode specified\"))\n+    }\n   }\n }","path":"common-messaging/src/main/scala/org/genivi/sota/messaging/MessageBusManager.scala","position":23,"original_position":23,"commit_id":"f643c763b4094808557139ffc610423a443b8e2f","original_commit_id":"f643c763b4094808557139ffc610423a443b8e2f","user":{"login":"CalumMcCall","id":821201,"avatar_url":"https://avatars.githubusercontent.com/u/821201?v=3","gravatar_id":"","url":"https://api.github.com/users/CalumMcCall","html_url":"https://github.com/CalumMcCall","followers_url":"https://api.github.com/users/CalumMcCall/followers","following_url":"https://api.github.com/users/CalumMcCall/following{/other_user}","gists_url":"https://api.github.com/users/CalumMcCall/gists{/gist_id}","starred_url":"https://api.github.com/users/CalumMcCall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CalumMcCall/subscriptions","organizations_url":"https://api.github.com/users/CalumMcCall/orgs","repos_url":"https://api.github.com/users/CalumMcCall/repos","events_url":"https://api.github.com/users/CalumMcCall/events{/privacy}","received_events_url":"https://api.github.com/users/CalumMcCall/received_events","type":"User","site_admin":false},"body":"Ah yeah I was gonna ask you about this. I'll get that implemented.","created_at":"2016-08-01T16:11:08Z","updated_at":"2016-08-01T16:11:08Z","html_url":"https://github.com/advancedtelematic/rvi_sota_server/pull/496#discussion_r73005741","pull_request_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/pulls/496","_links":{"self":{"href":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/pulls/comments/73005741"},"html":{"href":"https://github.com/advancedtelematic/rvi_sota_server/pull/496#discussion_r73005741"},"pull_request":{"href":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/pulls/496"}}},"pull_request":{"url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/pulls/496","id":79590648,"html_url":"https://github.com/advancedtelematic/rvi_sota_server/pull/496","diff_url":"https://github.com/advancedtelematic/rvi_sota_server/pull/496.diff","patch_url":"https://github.com/advancedtelematic/rvi_sota_server/pull/496.patch","issue_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/issues/496","number":496,"state":"open","locked":false,"title":"[PRO-965] Add device deleted message","user":{"login":"CalumMcCall","id":821201,"avatar_url":"https://avatars.githubusercontent.com/u/821201?v=3","gravatar_id":"","url":"https://api.github.com/users/CalumMcCall","html_url":"https://github.com/CalumMcCall","followers_url":"https://api.github.com/users/CalumMcCall/followers","following_url":"https://api.github.com/users/CalumMcCall/following{/other_user}","gists_url":"https://api.github.com/users/CalumMcCall/gists{/gist_id}","starred_url":"https://api.github.com/users/CalumMcCall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CalumMcCall/subscriptions","organizations_url":"https://api.github.com/users/CalumMcCall/orgs","repos_url":"https://api.github.com/users/CalumMcCall/repos","events_url":"https://api.github.com/users/CalumMcCall/events{/privacy}","received_events_url":"https://api.github.com/users/CalumMcCall/received_events","type":"User","site_admin":false},"body":" - PRO-965\r\n - Use new stream name class in nats\r\n - Remove TODO as it was fixed by PR-481.","created_at":"2016-08-01T15:47:07Z","updated_at":"2016-08-01T16:11:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8d8217528edb78c15102040ea52d18c8ed89008","assignee":{"login":"simao","id":203575,"avatar_url":"https://avatars.githubusercontent.com/u/203575?v=3","gravatar_id":"","url":"https://api.github.com/users/simao","html_url":"https://github.com/simao","followers_url":"https://api.github.com/users/simao/followers","following_url":"https://api.github.com/users/simao/following{/other_user}","gists_url":"https://api.github.com/users/simao/gists{/gist_id}","starred_url":"https://api.github.com/users/simao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simao/subscriptions","organizations_url":"https://api.github.com/users/simao/orgs","repos_url":"https://api.github.com/users/simao/repos","events_url":"https://api.github.com/users/simao/events{/privacy}","received_events_url":"https://api.github.com/users/simao/received_events","type":"User","site_admin":false},"assignees":[{"login":"simao","id":203575,"avatar_url":"https://avatars.githubusercontent.com/u/203575?v=3","gravatar_id":"","url":"https://api.github.com/users/simao","html_url":"https://github.com/simao","followers_url":"https://api.github.com/users/simao/followers","following_url":"https://api.github.com/users/simao/following{/other_user}","gists_url":"https://api.github.com/users/simao/gists{/gist_id}","starred_url":"https://api.github.com/users/simao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simao/subscriptions","organizations_url":"https://api.github.com/users/simao/orgs","repos_url":"https://api.github.com/users/simao/repos","events_url":"https://api.github.com/users/simao/events{/privacy}","received_events_url":"https://api.github.com/users/simao/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/pulls/496/commits","review_comments_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/pulls/496/comments","review_comment_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/issues/496/comments","statuses_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/statuses/f643c763b4094808557139ffc610423a443b8e2f","head":{"label":"advancedtelematic:feat/PRO-965/add-device-deletion-event","ref":"feat/PRO-965/add-device-deletion-event","sha":"f643c763b4094808557139ffc610423a443b8e2f","user":{"login":"advancedtelematic","id":7944633,"avatar_url":"https://avatars.githubusercontent.com/u/7944633?v=3","gravatar_id":"","url":"https://api.github.com/users/advancedtelematic","html_url":"https://github.com/advancedtelematic","followers_url":"https://api.github.com/users/advancedtelematic/followers","following_url":"https://api.github.com/users/advancedtelematic/following{/other_user}","gists_url":"https://api.github.com/users/advancedtelematic/gists{/gist_id}","starred_url":"https://api.github.com/users/advancedtelematic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advancedtelematic/subscriptions","organizations_url":"https://api.github.com/users/advancedtelematic/orgs","repos_url":"https://api.github.com/users/advancedtelematic/repos","events_url":"https://api.github.com/users/advancedtelematic/events{/privacy}","received_events_url":"https://api.github.com/users/advancedtelematic/received_events","type":"Organization","site_admin":false},"repo":{"id":41109281,"name":"rvi_sota_server","full_name":"advancedtelematic/rvi_sota_server","owner":{"login":"advancedtelematic","id":7944633,"avatar_url":"https://avatars.githubusercontent.com/u/7944633?v=3","gravatar_id":"","url":"https://api.github.com/users/advancedtelematic","html_url":"https://github.com/advancedtelematic","followers_url":"https://api.github.com/users/advancedtelematic/followers","following_url":"https://api.github.com/users/advancedtelematic/following{/other_user}","gists_url":"https://api.github.com/users/advancedtelematic/gists{/gist_id}","starred_url":"https://api.github.com/users/advancedtelematic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advancedtelematic/subscriptions","organizations_url":"https://api.github.com/users/advancedtelematic/orgs","repos_url":"https://api.github.com/users/advancedtelematic/repos","events_url":"https://api.github.com/users/advancedtelematic/events{/privacy}","received_events_url":"https://api.github.com/users/advancedtelematic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/advancedtelematic/rvi_sota_server","description":"SOTA Reference Implementation project - Server","fork":true,"url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server","forks_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/forks","keys_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/teams","hooks_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/hooks","issue_events_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/issues/events{/number}","events_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/events","assignees_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/assignees{/user}","branches_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/branches{/branch}","tags_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/tags","blobs_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/git/refs{/sha}","trees_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/statuses/{sha}","languages_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/languages","stargazers_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/stargazers","contributors_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/contributors","subscribers_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/subscribers","subscription_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/subscription","commits_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/commits{/sha}","git_commits_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/git/commits{/sha}","comments_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/comments{/number}","issue_comment_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/issues/comments{/number}","contents_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/contents/{+path}","compare_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/merges","archive_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/downloads","issues_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/issues{/number}","pulls_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/pulls{/number}","milestones_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/milestones{/number}","notifications_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/labels{/name}","releases_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/releases{/id}","deployments_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/deployments","created_at":"2015-08-20T17:22:41Z","updated_at":"2016-03-10T11:05:03Z","pushed_at":"2016-08-01T15:56:55Z","git_url":"git://github.com/advancedtelematic/rvi_sota_server.git","ssh_url":"git@github.com:advancedtelematic/rvi_sota_server.git","clone_url":"https://github.com/advancedtelematic/rvi_sota_server.git","svn_url":"https://github.com/advancedtelematic/rvi_sota_server","homepage":null,"size":18096,"stargazers_count":3,"watchers_count":3,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"advancedtelematic:master","ref":"master","sha":"e86be3c9d46e3be2baf5b563418573e472bccf6a","user":{"login":"advancedtelematic","id":7944633,"avatar_url":"https://avatars.githubusercontent.com/u/7944633?v=3","gravatar_id":"","url":"https://api.github.com/users/advancedtelematic","html_url":"https://github.com/advancedtelematic","followers_url":"https://api.github.com/users/advancedtelematic/followers","following_url":"https://api.github.com/users/advancedtelematic/following{/other_user}","gists_url":"https://api.github.com/users/advancedtelematic/gists{/gist_id}","starred_url":"https://api.github.com/users/advancedtelematic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advancedtelematic/subscriptions","organizations_url":"https://api.github.com/users/advancedtelematic/orgs","repos_url":"https://api.github.com/users/advancedtelematic/repos","events_url":"https://api.github.com/users/advancedtelematic/events{/privacy}","received_events_url":"https://api.github.com/users/advancedtelematic/received_events","type":"Organization","site_admin":false},"repo":{"id":41109281,"name":"rvi_sota_server","full_name":"advancedtelematic/rvi_sota_server","owner":{"login":"advancedtelematic","id":7944633,"avatar_url":"https://avatars.githubusercontent.com/u/7944633?v=3","gravatar_id":"","url":"https://api.github.com/users/advancedtelematic","html_url":"https://github.com/advancedtelematic","followers_url":"https://api.github.com/users/advancedtelematic/followers","following_url":"https://api.github.com/users/advancedtelematic/following{/other_user}","gists_url":"https://api.github.com/users/advancedtelematic/gists{/gist_id}","starred_url":"https://api.github.com/users/advancedtelematic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advancedtelematic/subscriptions","organizations_url":"https://api.github.com/users/advancedtelematic/orgs","repos_url":"https://api.github.com/users/advancedtelematic/repos","events_url":"https://api.github.com/users/advancedtelematic/events{/privacy}","received_events_url":"https://api.github.com/users/advancedtelematic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/advancedtelematic/rvi_sota_server","description":"SOTA Reference Implementation project - Server","fork":true,"url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server","forks_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/forks","keys_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/teams","hooks_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/hooks","issue_events_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/issues/events{/number}","events_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/events","assignees_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/assignees{/user}","branches_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/branches{/branch}","tags_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/tags","blobs_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/git/refs{/sha}","trees_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/statuses/{sha}","languages_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/languages","stargazers_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/stargazers","contributors_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/contributors","subscribers_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/subscribers","subscription_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/subscription","commits_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/commits{/sha}","git_commits_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/git/commits{/sha}","comments_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/comments{/number}","issue_comment_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/issues/comments{/number}","contents_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/contents/{+path}","compare_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/merges","archive_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/downloads","issues_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/issues{/number}","pulls_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/pulls{/number}","milestones_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/milestones{/number}","notifications_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/labels{/name}","releases_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/releases{/id}","deployments_url":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/deployments","created_at":"2015-08-20T17:22:41Z","updated_at":"2016-03-10T11:05:03Z","pushed_at":"2016-08-01T15:56:55Z","git_url":"git://github.com/advancedtelematic/rvi_sota_server.git","ssh_url":"git@github.com:advancedtelematic/rvi_sota_server.git","clone_url":"https://github.com/advancedtelematic/rvi_sota_server.git","svn_url":"https://github.com/advancedtelematic/rvi_sota_server","homepage":null,"size":18096,"stargazers_count":3,"watchers_count":3,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/pulls/496"},"html":{"href":"https://github.com/advancedtelematic/rvi_sota_server/pull/496"},"issue":{"href":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/issues/496"},"comments":{"href":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/issues/496/comments"},"review_comments":{"href":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/pulls/496/comments"},"review_comment":{"href":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/pulls/496/commits"},"statuses":{"href":"https://api.github.com/repos/advancedtelematic/rvi_sota_server/statuses/f643c763b4094808557139ffc610423a443b8e2f"}}}}
{"actor":{"display_login":"CalumMcCall"}}