{"action":"created","comment":{"url":"https://api.github.com/repos/corda/corda-solutions/pulls/comments/226346118","pull_request_review_id":166135967,"id":226346118,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjM0NjExOA==","diff_hunk":"@@ -0,0 +1,59 @@\n+package net.corda.cordaupdates.app.bno\n+\n+import co.paralleluniverse.fibers.Suspendable\n+import net.corda.cordaupdates.app.member.CordappVersionInfo\n+import net.corda.cordaupdates.app.member.ReportCordappVersionFlow\n+import net.corda.core.flows.FlowLogic\n+import net.corda.core.flows.FlowSession\n+import net.corda.core.flows.InitiatedBy\n+import net.corda.core.flows.StartableByRPC\n+import net.corda.core.identity.CordaX500Name\n+import net.corda.core.utilities.ProgressTracker\n+import net.corda.core.utilities.unwrap\n+\n+@InitiatedBy(ReportCordappVersionFlow::class)\n+class ReportCordappVersionFlowResponder(private val session : FlowSession) : FlowLogic<Unit>() {\n+    @Suspendable\n+    override fun call() {\n+        val cordappVersionInfo = session.receive<CordappVersionInfo>().unwrap { it }\n+        val dbService = serviceHub.cordaService(DatabaseService::class.java)\n+        dbService.updateCordappVersionInfo(session.counterparty, cordappVersionInfo)\n+    }\n+}\n+\n+@StartableByRPC\n+class GetCordappVersionsFlow : FlowLogic<Map<String, List<CordappVersionInfo>>>() {\n+    companion object {\n+        val QUERYING_FROM_DATABASE = ProgressTracker.Step(\"Querying data from the database\")","path":"bn-apps/cordapp-updates-distribution/corda-updates-app/src/main/kotlin/net/corda/cordaupdates/app/bno/ReportCordappVersionFlowResponder.kt","position":27,"original_position":27,"commit_id":"a68ba97f4a8893d84f4ec0a8fbce49301cd4cda8","original_commit_id":"a68ba97f4a8893d84f4ec0a8fbce49301cd4cda8","user":{"login":"mikehearn","id":971089,"node_id":"MDQ6VXNlcjk3MTA4OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/971089?v=4","gravatar_id":"","url":"https://api.github.com/users/mikehearn","html_url":"https://github.com/mikehearn","followers_url":"https://api.github.com/users/mikehearn/followers","following_url":"https://api.github.com/users/mikehearn/following{/other_user}","gists_url":"https://api.github.com/users/mikehearn/gists{/gist_id}","starred_url":"https://api.github.com/users/mikehearn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikehearn/subscriptions","organizations_url":"https://api.github.com/users/mikehearn/orgs","repos_url":"https://api.github.com/users/mikehearn/repos","events_url":"https://api.github.com/users/mikehearn/events{/privacy}","received_events_url":"https://api.github.com/users/mikehearn/received_events","type":"User","site_admin":false},"body":"Probably not necessary now Stefano fixed the shell so you can have an empty progress tracker (again, if you're targeting C4).","created_at":"2018-10-18T15:11:06Z","updated_at":"2018-10-18T15:14:49Z","html_url":"https://github.com/corda/corda-solutions/pull/41#discussion_r226346118","pull_request_url":"https://api.github.com/repos/corda/corda-solutions/pulls/41","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/corda/corda-solutions/pulls/comments/226346118"},"html":{"href":"https://github.com/corda/corda-solutions/pull/41#discussion_r226346118"},"pull_request":{"href":"https://api.github.com/repos/corda/corda-solutions/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/corda/corda-solutions/pulls/41","id":222171699,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyMTcxNjk5","html_url":"https://github.com/corda/corda-solutions/pull/41","diff_url":"https://github.com/corda/corda-solutions/pull/41.diff","patch_url":"https://github.com/corda/corda-solutions/pull/41.patch","issue_url":"https://api.github.com/repos/corda/corda-solutions/issues/41","number":41,"state":"open","locked":false,"title":"Cordapp distribution service implementation","user":{"login":"ivanr3","id":31857042,"node_id":"MDQ6VXNlcjMxODU3MDQy","avatar_url":"https://avatars0.githubusercontent.com/u/31857042?v=4","gravatar_id":"","url":"https://api.github.com/users/ivanr3","html_url":"https://github.com/ivanr3","followers_url":"https://api.github.com/users/ivanr3/followers","following_url":"https://api.github.com/users/ivanr3/following{/other_user}","gists_url":"https://api.github.com/users/ivanr3/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanr3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanr3/subscriptions","organizations_url":"https://api.github.com/users/ivanr3/orgs","repos_url":"https://api.github.com/users/ivanr3/repos","events_url":"https://api.github.com/users/ivanr3/events{/privacy}","received_events_url":"https://api.github.com/users/ivanr3/received_events","type":"User","site_admin":false},"body":"Added implementation of CorDapp Distribution Service Implementation","created_at":"2018-10-11T14:59:14Z","updated_at":"2018-10-18T15:14:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99d8b9590c892ee41b29486e61b89869524c892b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/corda/corda-solutions/pulls/41/commits","review_comments_url":"https://api.github.com/repos/corda/corda-solutions/pulls/41/comments","review_comment_url":"https://api.github.com/repos/corda/corda-solutions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/corda/corda-solutions/issues/41/comments","statuses_url":"https://api.github.com/repos/corda/corda-solutions/statuses/a68ba97f4a8893d84f4ec0a8fbce49301cd4cda8","head":{"label":"corda:cordapp-distribution-service-implementation","ref":"cordapp-distribution-service-implementation","sha":"a68ba97f4a8893d84f4ec0a8fbce49301cd4cda8","user":{"login":"corda","id":22600631,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyNjAwNjMx","avatar_url":"https://avatars1.githubusercontent.com/u/22600631?v=4","gravatar_id":"","url":"https://api.github.com/users/corda","html_url":"https://github.com/corda","followers_url":"https://api.github.com/users/corda/followers","following_url":"https://api.github.com/users/corda/following{/other_user}","gists_url":"https://api.github.com/users/corda/gists{/gist_id}","starred_url":"https://api.github.com/users/corda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corda/subscriptions","organizations_url":"https://api.github.com/users/corda/orgs","repos_url":"https://api.github.com/users/corda/repos","events_url":"https://api.github.com/users/corda/events{/privacy}","received_events_url":"https://api.github.com/users/corda/received_events","type":"Organization","site_admin":false},"repo":{"id":136237634,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYyMzc2MzQ=","name":"corda-solutions","full_name":"corda/corda-solutions","private":false,"owner":{"login":"corda","id":22600631,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyNjAwNjMx","avatar_url":"https://avatars1.githubusercontent.com/u/22600631?v=4","gravatar_id":"","url":"https://api.github.com/users/corda","html_url":"https://github.com/corda","followers_url":"https://api.github.com/users/corda/followers","following_url":"https://api.github.com/users/corda/following{/other_user}","gists_url":"https://api.github.com/users/corda/gists{/gist_id}","starred_url":"https://api.github.com/users/corda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corda/subscriptions","organizations_url":"https://api.github.com/users/corda/orgs","repos_url":"https://api.github.com/users/corda/repos","events_url":"https://api.github.com/users/corda/events{/privacy}","received_events_url":"https://api.github.com/users/corda/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/corda/corda-solutions","description":"Corda Solutions","fork":false,"url":"https://api.github.com/repos/corda/corda-solutions","forks_url":"https://api.github.com/repos/corda/corda-solutions/forks","keys_url":"https://api.github.com/repos/corda/corda-solutions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/corda/corda-solutions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/corda/corda-solutions/teams","hooks_url":"https://api.github.com/repos/corda/corda-solutions/hooks","issue_events_url":"https://api.github.com/repos/corda/corda-solutions/issues/events{/number}","events_url":"https://api.github.com/repos/corda/corda-solutions/events","assignees_url":"https://api.github.com/repos/corda/corda-solutions/assignees{/user}","branches_url":"https://api.github.com/repos/corda/corda-solutions/branches{/branch}","tags_url":"https://api.github.com/repos/corda/corda-solutions/tags","blobs_url":"https://api.github.com/repos/corda/corda-solutions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/corda/corda-solutions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/corda/corda-solutions/git/refs{/sha}","trees_url":"https://api.github.com/repos/corda/corda-solutions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/corda/corda-solutions/statuses/{sha}","languages_url":"https://api.github.com/repos/corda/corda-solutions/languages","stargazers_url":"https://api.github.com/repos/corda/corda-solutions/stargazers","contributors_url":"https://api.github.com/repos/corda/corda-solutions/contributors","subscribers_url":"https://api.github.com/repos/corda/corda-solutions/subscribers","subscription_url":"https://api.github.com/repos/corda/corda-solutions/subscription","commits_url":"https://api.github.com/repos/corda/corda-solutions/commits{/sha}","git_commits_url":"https://api.github.com/repos/corda/corda-solutions/git/commits{/sha}","comments_url":"https://api.github.com/repos/corda/corda-solutions/comments{/number}","issue_comment_url":"https://api.github.com/repos/corda/corda-solutions/issues/comments{/number}","contents_url":"https://api.github.com/repos/corda/corda-solutions/contents/{+path}","compare_url":"https://api.github.com/repos/corda/corda-solutions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/corda/corda-solutions/merges","archive_url":"https://api.github.com/repos/corda/corda-solutions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/corda/corda-solutions/downloads","issues_url":"https://api.github.com/repos/corda/corda-solutions/issues{/number}","pulls_url":"https://api.github.com/repos/corda/corda-solutions/pulls{/number}","milestones_url":"https://api.github.com/repos/corda/corda-solutions/milestones{/number}","notifications_url":"https://api.github.com/repos/corda/corda-solutions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/corda/corda-solutions/labels{/name}","releases_url":"https://api.github.com/repos/corda/corda-solutions/releases{/id}","deployments_url":"https://api.github.com/repos/corda/corda-solutions/deployments","created_at":"2018-06-05T21:36:35Z","updated_at":"2018-10-17T09:05:09Z","pushed_at":"2018-10-17T09:05:18Z","git_url":"git://github.com/corda/corda-solutions.git","ssh_url":"git@github.com:corda/corda-solutions.git","clone_url":"https://github.com/corda/corda-solutions.git","svn_url":"https://github.com/corda/corda-solutions","homepage":null,"size":5711,"stargazers_count":3,"watchers_count":3,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":5,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"corda:master","ref":"master","sha":"0a46c2d22d149582a1df733c665d0ba7214a55b5","user":{"login":"corda","id":22600631,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyNjAwNjMx","avatar_url":"https://avatars1.githubusercontent.com/u/22600631?v=4","gravatar_id":"","url":"https://api.github.com/users/corda","html_url":"https://github.com/corda","followers_url":"https://api.github.com/users/corda/followers","following_url":"https://api.github.com/users/corda/following{/other_user}","gists_url":"https://api.github.com/users/corda/gists{/gist_id}","starred_url":"https://api.github.com/users/corda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corda/subscriptions","organizations_url":"https://api.github.com/users/corda/orgs","repos_url":"https://api.github.com/users/corda/repos","events_url":"https://api.github.com/users/corda/events{/privacy}","received_events_url":"https://api.github.com/users/corda/received_events","type":"Organization","site_admin":false},"repo":{"id":136237634,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYyMzc2MzQ=","name":"corda-solutions","full_name":"corda/corda-solutions","private":false,"owner":{"login":"corda","id":22600631,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyNjAwNjMx","avatar_url":"https://avatars1.githubusercontent.com/u/22600631?v=4","gravatar_id":"","url":"https://api.github.com/users/corda","html_url":"https://github.com/corda","followers_url":"https://api.github.com/users/corda/followers","following_url":"https://api.github.com/users/corda/following{/other_user}","gists_url":"https://api.github.com/users/corda/gists{/gist_id}","starred_url":"https://api.github.com/users/corda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corda/subscriptions","organizations_url":"https://api.github.com/users/corda/orgs","repos_url":"https://api.github.com/users/corda/repos","events_url":"https://api.github.com/users/corda/events{/privacy}","received_events_url":"https://api.github.com/users/corda/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/corda/corda-solutions","description":"Corda Solutions","fork":false,"url":"https://api.github.com/repos/corda/corda-solutions","forks_url":"https://api.github.com/repos/corda/corda-solutions/forks","keys_url":"https://api.github.com/repos/corda/corda-solutions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/corda/corda-solutions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/corda/corda-solutions/teams","hooks_url":"https://api.github.com/repos/corda/corda-solutions/hooks","issue_events_url":"https://api.github.com/repos/corda/corda-solutions/issues/events{/number}","events_url":"https://api.github.com/repos/corda/corda-solutions/events","assignees_url":"https://api.github.com/repos/corda/corda-solutions/assignees{/user}","branches_url":"https://api.github.com/repos/corda/corda-solutions/branches{/branch}","tags_url":"https://api.github.com/repos/corda/corda-solutions/tags","blobs_url":"https://api.github.com/repos/corda/corda-solutions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/corda/corda-solutions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/corda/corda-solutions/git/refs{/sha}","trees_url":"https://api.github.com/repos/corda/corda-solutions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/corda/corda-solutions/statuses/{sha}","languages_url":"https://api.github.com/repos/corda/corda-solutions/languages","stargazers_url":"https://api.github.com/repos/corda/corda-solutions/stargazers","contributors_url":"https://api.github.com/repos/corda/corda-solutions/contributors","subscribers_url":"https://api.github.com/repos/corda/corda-solutions/subscribers","subscription_url":"https://api.github.com/repos/corda/corda-solutions/subscription","commits_url":"https://api.github.com/repos/corda/corda-solutions/commits{/sha}","git_commits_url":"https://api.github.com/repos/corda/corda-solutions/git/commits{/sha}","comments_url":"https://api.github.com/repos/corda/corda-solutions/comments{/number}","issue_comment_url":"https://api.github.com/repos/corda/corda-solutions/issues/comments{/number}","contents_url":"https://api.github.com/repos/corda/corda-solutions/contents/{+path}","compare_url":"https://api.github.com/repos/corda/corda-solutions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/corda/corda-solutions/merges","archive_url":"https://api.github.com/repos/corda/corda-solutions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/corda/corda-solutions/downloads","issues_url":"https://api.github.com/repos/corda/corda-solutions/issues{/number}","pulls_url":"https://api.github.com/repos/corda/corda-solutions/pulls{/number}","milestones_url":"https://api.github.com/repos/corda/corda-solutions/milestones{/number}","notifications_url":"https://api.github.com/repos/corda/corda-solutions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/corda/corda-solutions/labels{/name}","releases_url":"https://api.github.com/repos/corda/corda-solutions/releases{/id}","deployments_url":"https://api.github.com/repos/corda/corda-solutions/deployments","created_at":"2018-06-05T21:36:35Z","updated_at":"2018-10-17T09:05:09Z","pushed_at":"2018-10-17T09:05:18Z","git_url":"git://github.com/corda/corda-solutions.git","ssh_url":"git@github.com:corda/corda-solutions.git","clone_url":"https://github.com/corda/corda-solutions.git","svn_url":"https://github.com/corda/corda-solutions","homepage":null,"size":5711,"stargazers_count":3,"watchers_count":3,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":5,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/corda/corda-solutions/pulls/41"},"html":{"href":"https://github.com/corda/corda-solutions/pull/41"},"issue":{"href":"https://api.github.com/repos/corda/corda-solutions/issues/41"},"comments":{"href":"https://api.github.com/repos/corda/corda-solutions/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/corda/corda-solutions/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/corda/corda-solutions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/corda/corda-solutions/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/corda/corda-solutions/statuses/a68ba97f4a8893d84f4ec0a8fbce49301cd4cda8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mikehearn"}}