{"action":"created","comment":{"url":"https://api.github.com/repos/bigchaindb/bigchaindb/pulls/comments/213615858","pull_request_review_id":150486973,"id":213615858,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzYxNTg1OA==","diff_hunk":"@@ -191,6 +191,32 @@ def run_upsert_validator_approve(args, bigchain):\n         return False\n \n \n+def run_upsert_validator_show(args, bigchain):\n+    \"\"\"Retrieves information about an upsert-validator election\n+\n+    :param args: dict\n+        args = {\n+        'election_id': the transaction_id for an election (str)\n+        }\n+    :param bigchain: an instance of BigchainDB\n+    :return: (public_key, power, node_id) for the proposed change to the validator set\n+    \"\"\"\n+\n+    election = bigchain.get_transaction(args.election_id)\n+    if not election:\n+        logger.error(f'No election found with election_id {args.election_id}')\n+        return\n+\n+    new_validator = election.asset['data']\n+\n+    public_key = new_validator['public_key']","path":"bigchaindb/commands/bigchaindb.py","position":null,"original_position":22,"commit_id":"c9847f95376d218a0f2ff0a9b1255465273594cf","original_commit_id":"800a2dc7916e7017edee355d245714b7e3675f09","user":{"login":"z-bowen","id":16962398,"node_id":"MDQ6VXNlcjE2OTYyMzk4","avatar_url":"https://avatars1.githubusercontent.com/u/16962398?v=4","gravatar_id":"","url":"https://api.github.com/users/z-bowen","html_url":"https://github.com/z-bowen","followers_url":"https://api.github.com/users/z-bowen/followers","following_url":"https://api.github.com/users/z-bowen/following{/other_user}","gists_url":"https://api.github.com/users/z-bowen/gists{/gist_id}","starred_url":"https://api.github.com/users/z-bowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z-bowen/subscriptions","organizations_url":"https://api.github.com/users/z-bowen/orgs","repos_url":"https://api.github.com/users/z-bowen/repos","events_url":"https://api.github.com/users/z-bowen/events{/privacy}","received_events_url":"https://api.github.com/users/z-bowen/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2018-08-29T09:57:10Z","updated_at":"2018-08-29T09:57:10Z","html_url":"https://github.com/bigchaindb/bigchaindb/pull/2457#discussion_r213615858","pull_request_url":"https://api.github.com/repos/bigchaindb/bigchaindb/pulls/2457","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bigchaindb/bigchaindb/pulls/comments/213615858"},"html":{"href":"https://github.com/bigchaindb/bigchaindb/pull/2457#discussion_r213615858"},"pull_request":{"href":"https://api.github.com/repos/bigchaindb/bigchaindb/pulls/2457"}},"in_reply_to_id":213600141},"pull_request":{"url":"https://api.github.com/repos/bigchaindb/bigchaindb/pulls/2457","id":207954796,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3OTU0Nzk2","html_url":"https://github.com/bigchaindb/bigchaindb/pull/2457","diff_url":"https://github.com/bigchaindb/bigchaindb/pull/2457.diff","patch_url":"https://github.com/bigchaindb/bigchaindb/pull/2457.patch","issue_url":"https://api.github.com/repos/bigchaindb/bigchaindb/issues/2457","number":2457,"state":"open","locked":false,"title":"Create dynamic upsert validator commands","user":{"login":"z-bowen","id":16962398,"node_id":"MDQ6VXNlcjE2OTYyMzk4","avatar_url":"https://avatars1.githubusercontent.com/u/16962398?v=4","gravatar_id":"","url":"https://api.github.com/users/z-bowen","html_url":"https://github.com/z-bowen","followers_url":"https://api.github.com/users/z-bowen/followers","following_url":"https://api.github.com/users/z-bowen/following{/other_user}","gists_url":"https://api.github.com/users/z-bowen/gists{/gist_id}","starred_url":"https://api.github.com/users/z-bowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z-bowen/subscriptions","organizations_url":"https://api.github.com/users/z-bowen/orgs","repos_url":"https://api.github.com/users/z-bowen/repos","events_url":"https://api.github.com/users/z-bowen/events{/privacy}","received_events_url":"https://api.github.com/users/z-bowen/received_events","type":"User","site_admin":false},"body":"**`upsert-validator` needs a command to show election data**\r\n\r\n## Solution\r\n\r\nWrote `upsert-validator show` according to BEP-21\r\n\r\n## BEPs Implemented\r\n\r\n[BEP 21](https://github.com/bigchaindb/BEPs/tree/master/21)\r\n","created_at":"2018-08-13T12:00:48Z","updated_at":"2018-08-29T09:57:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7738e792bbad6ac6feaf86667bed2a99babd56a6","assignee":null,"assignees":[],"requested_reviewers":[{"login":"vrde","id":134680,"node_id":"MDQ6VXNlcjEzNDY4MA==","avatar_url":"https://avatars1.githubusercontent.com/u/134680?v=4","gravatar_id":"","url":"https://api.github.com/users/vrde","html_url":"https://github.com/vrde","followers_url":"https://api.github.com/users/vrde/followers","following_url":"https://api.github.com/users/vrde/following{/other_user}","gists_url":"https://api.github.com/users/vrde/gists{/gist_id}","starred_url":"https://api.github.com/users/vrde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrde/subscriptions","organizations_url":"https://api.github.com/users/vrde/orgs","repos_url":"https://api.github.com/users/vrde/repos","events_url":"https://api.github.com/users/vrde/events{/privacy}","received_events_url":"https://api.github.com/users/vrde/received_events","type":"User","site_admin":false},{"login":"ldmberman","id":4797754,"node_id":"MDQ6VXNlcjQ3OTc3NTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4797754?v=4","gravatar_id":"","url":"https://api.github.com/users/ldmberman","html_url":"https://github.com/ldmberman","followers_url":"https://api.github.com/users/ldmberman/followers","following_url":"https://api.github.com/users/ldmberman/following{/other_user}","gists_url":"https://api.github.com/users/ldmberman/gists{/gist_id}","starred_url":"https://api.github.com/users/ldmberman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldmberman/subscriptions","organizations_url":"https://api.github.com/users/ldmberman/orgs","repos_url":"https://api.github.com/users/ldmberman/repos","events_url":"https://api.github.com/users/ldmberman/events{/privacy}","received_events_url":"https://api.github.com/users/ldmberman/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bigchaindb/bigchaindb/pulls/2457/commits","review_comments_url":"https://api.github.com/repos/bigchaindb/bigchaindb/pulls/2457/comments","review_comment_url":"https://api.github.com/repos/bigchaindb/bigchaindb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bigchaindb/bigchaindb/issues/2457/comments","statuses_url":"https://api.github.com/repos/bigchaindb/bigchaindb/statuses/c9847f95376d218a0f2ff0a9b1255465273594cf","head":{"label":"z-bowen:create-dynamic-upsert-validator-commands","ref":"create-dynamic-upsert-validator-commands","sha":"c9847f95376d218a0f2ff0a9b1255465273594cf","user":{"login":"z-bowen","id":16962398,"node_id":"MDQ6VXNlcjE2OTYyMzk4","avatar_url":"https://avatars1.githubusercontent.com/u/16962398?v=4","gravatar_id":"","url":"https://api.github.com/users/z-bowen","html_url":"https://github.com/z-bowen","followers_url":"https://api.github.com/users/z-bowen/followers","following_url":"https://api.github.com/users/z-bowen/following{/other_user}","gists_url":"https://api.github.com/users/z-bowen/gists{/gist_id}","starred_url":"https://api.github.com/users/z-bowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z-bowen/subscriptions","organizations_url":"https://api.github.com/users/z-bowen/orgs","repos_url":"https://api.github.com/users/z-bowen/repos","events_url":"https://api.github.com/users/z-bowen/events{/privacy}","received_events_url":"https://api.github.com/users/z-bowen/received_events","type":"User","site_admin":false},"repo":{"id":136005251,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYwMDUyNTE=","name":"bigchaindb","full_name":"z-bowen/bigchaindb","owner":{"login":"z-bowen","id":16962398,"node_id":"MDQ6VXNlcjE2OTYyMzk4","avatar_url":"https://avatars1.githubusercontent.com/u/16962398?v=4","gravatar_id":"","url":"https://api.github.com/users/z-bowen","html_url":"https://github.com/z-bowen","followers_url":"https://api.github.com/users/z-bowen/followers","following_url":"https://api.github.com/users/z-bowen/following{/other_user}","gists_url":"https://api.github.com/users/z-bowen/gists{/gist_id}","starred_url":"https://api.github.com/users/z-bowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z-bowen/subscriptions","organizations_url":"https://api.github.com/users/z-bowen/orgs","repos_url":"https://api.github.com/users/z-bowen/repos","events_url":"https://api.github.com/users/z-bowen/events{/privacy}","received_events_url":"https://api.github.com/users/z-bowen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/z-bowen/bigchaindb","description":"Meet BigchainDB. The blockchain database.","fork":true,"url":"https://api.github.com/repos/z-bowen/bigchaindb","forks_url":"https://api.github.com/repos/z-bowen/bigchaindb/forks","keys_url":"https://api.github.com/repos/z-bowen/bigchaindb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/z-bowen/bigchaindb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/z-bowen/bigchaindb/teams","hooks_url":"https://api.github.com/repos/z-bowen/bigchaindb/hooks","issue_events_url":"https://api.github.com/repos/z-bowen/bigchaindb/issues/events{/number}","events_url":"https://api.github.com/repos/z-bowen/bigchaindb/events","assignees_url":"https://api.github.com/repos/z-bowen/bigchaindb/assignees{/user}","branches_url":"https://api.github.com/repos/z-bowen/bigchaindb/branches{/branch}","tags_url":"https://api.github.com/repos/z-bowen/bigchaindb/tags","blobs_url":"https://api.github.com/repos/z-bowen/bigchaindb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/z-bowen/bigchaindb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/z-bowen/bigchaindb/git/refs{/sha}","trees_url":"https://api.github.com/repos/z-bowen/bigchaindb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/z-bowen/bigchaindb/statuses/{sha}","languages_url":"https://api.github.com/repos/z-bowen/bigchaindb/languages","stargazers_url":"https://api.github.com/repos/z-bowen/bigchaindb/stargazers","contributors_url":"https://api.github.com/repos/z-bowen/bigchaindb/contributors","subscribers_url":"https://api.github.com/repos/z-bowen/bigchaindb/subscribers","subscription_url":"https://api.github.com/repos/z-bowen/bigchaindb/subscription","commits_url":"https://api.github.com/repos/z-bowen/bigchaindb/commits{/sha}","git_commits_url":"https://api.github.com/repos/z-bowen/bigchaindb/git/commits{/sha}","comments_url":"https://api.github.com/repos/z-bowen/bigchaindb/comments{/number}","issue_comment_url":"https://api.github.com/repos/z-bowen/bigchaindb/issues/comments{/number}","contents_url":"https://api.github.com/repos/z-bowen/bigchaindb/contents/{+path}","compare_url":"https://api.github.com/repos/z-bowen/bigchaindb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/z-bowen/bigchaindb/merges","archive_url":"https://api.github.com/repos/z-bowen/bigchaindb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/z-bowen/bigchaindb/downloads","issues_url":"https://api.github.com/repos/z-bowen/bigchaindb/issues{/number}","pulls_url":"https://api.github.com/repos/z-bowen/bigchaindb/pulls{/number}","milestones_url":"https://api.github.com/repos/z-bowen/bigchaindb/milestones{/number}","notifications_url":"https://api.github.com/repos/z-bowen/bigchaindb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/z-bowen/bigchaindb/labels{/name}","releases_url":"https://api.github.com/repos/z-bowen/bigchaindb/releases{/id}","deployments_url":"https://api.github.com/repos/z-bowen/bigchaindb/deployments","created_at":"2018-06-04T09:52:19Z","updated_at":"2018-08-28T14:57:55Z","pushed_at":"2018-08-29T09:56:38Z","git_url":"git://github.com/z-bowen/bigchaindb.git","ssh_url":"git@github.com:z-bowen/bigchaindb.git","clone_url":"https://github.com/z-bowen/bigchaindb.git","svn_url":"https://github.com/z-bowen/bigchaindb","homepage":"https://www.bigchaindb.com/","size":9638,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bigchaindb:master","ref":"master","sha":"8e97c753eb8567cce27a92e2284b9b878c412bc3","user":{"login":"bigchaindb","id":17097586,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDk3NTg2","avatar_url":"https://avatars0.githubusercontent.com/u/17097586?v=4","gravatar_id":"","url":"https://api.github.com/users/bigchaindb","html_url":"https://github.com/bigchaindb","followers_url":"https://api.github.com/users/bigchaindb/followers","following_url":"https://api.github.com/users/bigchaindb/following{/other_user}","gists_url":"https://api.github.com/users/bigchaindb/gists{/gist_id}","starred_url":"https://api.github.com/users/bigchaindb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigchaindb/subscriptions","organizations_url":"https://api.github.com/users/bigchaindb/orgs","repos_url":"https://api.github.com/users/bigchaindb/repos","events_url":"https://api.github.com/users/bigchaindb/events{/privacy}","received_events_url":"https://api.github.com/users/bigchaindb/received_events","type":"Organization","site_admin":false},"repo":{"id":51290852,"node_id":"MDEwOlJlcG9zaXRvcnk1MTI5MDg1Mg==","name":"bigchaindb","full_name":"bigchaindb/bigchaindb","owner":{"login":"bigchaindb","id":17097586,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDk3NTg2","avatar_url":"https://avatars0.githubusercontent.com/u/17097586?v=4","gravatar_id":"","url":"https://api.github.com/users/bigchaindb","html_url":"https://github.com/bigchaindb","followers_url":"https://api.github.com/users/bigchaindb/followers","following_url":"https://api.github.com/users/bigchaindb/following{/other_user}","gists_url":"https://api.github.com/users/bigchaindb/gists{/gist_id}","starred_url":"https://api.github.com/users/bigchaindb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigchaindb/subscriptions","organizations_url":"https://api.github.com/users/bigchaindb/orgs","repos_url":"https://api.github.com/users/bigchaindb/repos","events_url":"https://api.github.com/users/bigchaindb/events{/privacy}","received_events_url":"https://api.github.com/users/bigchaindb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bigchaindb/bigchaindb","description":"Meet BigchainDB. The blockchain database.","fork":false,"url":"https://api.github.com/repos/bigchaindb/bigchaindb","forks_url":"https://api.github.com/repos/bigchaindb/bigchaindb/forks","keys_url":"https://api.github.com/repos/bigchaindb/bigchaindb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bigchaindb/bigchaindb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bigchaindb/bigchaindb/teams","hooks_url":"https://api.github.com/repos/bigchaindb/bigchaindb/hooks","issue_events_url":"https://api.github.com/repos/bigchaindb/bigchaindb/issues/events{/number}","events_url":"https://api.github.com/repos/bigchaindb/bigchaindb/events","assignees_url":"https://api.github.com/repos/bigchaindb/bigchaindb/assignees{/user}","branches_url":"https://api.github.com/repos/bigchaindb/bigchaindb/branches{/branch}","tags_url":"https://api.github.com/repos/bigchaindb/bigchaindb/tags","blobs_url":"https://api.github.com/repos/bigchaindb/bigchaindb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bigchaindb/bigchaindb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bigchaindb/bigchaindb/git/refs{/sha}","trees_url":"https://api.github.com/repos/bigchaindb/bigchaindb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bigchaindb/bigchaindb/statuses/{sha}","languages_url":"https://api.github.com/repos/bigchaindb/bigchaindb/languages","stargazers_url":"https://api.github.com/repos/bigchaindb/bigchaindb/stargazers","contributors_url":"https://api.github.com/repos/bigchaindb/bigchaindb/contributors","subscribers_url":"https://api.github.com/repos/bigchaindb/bigchaindb/subscribers","subscription_url":"https://api.github.com/repos/bigchaindb/bigchaindb/subscription","commits_url":"https://api.github.com/repos/bigchaindb/bigchaindb/commits{/sha}","git_commits_url":"https://api.github.com/repos/bigchaindb/bigchaindb/git/commits{/sha}","comments_url":"https://api.github.com/repos/bigchaindb/bigchaindb/comments{/number}","issue_comment_url":"https://api.github.com/repos/bigchaindb/bigchaindb/issues/comments{/number}","contents_url":"https://api.github.com/repos/bigchaindb/bigchaindb/contents/{+path}","compare_url":"https://api.github.com/repos/bigchaindb/bigchaindb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bigchaindb/bigchaindb/merges","archive_url":"https://api.github.com/repos/bigchaindb/bigchaindb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bigchaindb/bigchaindb/downloads","issues_url":"https://api.github.com/repos/bigchaindb/bigchaindb/issues{/number}","pulls_url":"https://api.github.com/repos/bigchaindb/bigchaindb/pulls{/number}","milestones_url":"https://api.github.com/repos/bigchaindb/bigchaindb/milestones{/number}","notifications_url":"https://api.github.com/repos/bigchaindb/bigchaindb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bigchaindb/bigchaindb/labels{/name}","releases_url":"https://api.github.com/repos/bigchaindb/bigchaindb/releases{/id}","deployments_url":"https://api.github.com/repos/bigchaindb/bigchaindb/deployments","created_at":"2016-02-08T10:12:58Z","updated_at":"2018-08-29T09:35:13Z","pushed_at":"2018-08-29T09:56:40Z","git_url":"git://github.com/bigchaindb/bigchaindb.git","ssh_url":"git@github.com:bigchaindb/bigchaindb.git","clone_url":"https://github.com/bigchaindb/bigchaindb.git","svn_url":"https://github.com/bigchaindb/bigchaindb","homepage":"https://www.bigchaindb.com/","size":9536,"stargazers_count":2794,"watchers_count":2794,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":535,"mirror_url":null,"archived":false,"open_issues_count":160,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":535,"open_issues":160,"watchers":2794,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bigchaindb/bigchaindb/pulls/2457"},"html":{"href":"https://github.com/bigchaindb/bigchaindb/pull/2457"},"issue":{"href":"https://api.github.com/repos/bigchaindb/bigchaindb/issues/2457"},"comments":{"href":"https://api.github.com/repos/bigchaindb/bigchaindb/issues/2457/comments"},"review_comments":{"href":"https://api.github.com/repos/bigchaindb/bigchaindb/pulls/2457/comments"},"review_comment":{"href":"https://api.github.com/repos/bigchaindb/bigchaindb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bigchaindb/bigchaindb/pulls/2457/commits"},"statuses":{"href":"https://api.github.com/repos/bigchaindb/bigchaindb/statuses/c9847f95376d218a0f2ff0a9b1255465273594cf"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"z-bowen"}}