{"action":"created","comment":{"url":"https://api.github.com/repos/storj/storj/pulls/comments/191636145","pull_request_review_id":124241836,"id":191636145,"diff_hunk":"@@ -0,0 +1,85 @@\n+// Copyright (C) 2018 Storj Labs, Inc.\n+// See LICENSE for copying information.\n+\n+syntax = \"proto3\";\n+package nodereputation;\n+\n+service NodeReputation {\n+    rpc NodeReputation(NodeQuery) returns (NodeReputationRecord) {}\n+    rpc UpdateReputation(NodeUpdate) returns (UpdateReply) {}\n+    rpc FilterNodeReputation(NodeFilter) returns (NodeReputationRecords) {}\n+    rpc PruneNodeReputation(NodeQuery) returns (UpdateReply) {}\n+}\n+\n+message NodeReputationRecord {\n+    string source = 1;\n+    string nodeName = 2;\n+\tstring timestamp = 3;\n+\tint64 uptime = 4;\n+\tint64 auditSuccess = 5;\n+\tint64 auditFail = 6;\n+\tint64 latency = 7;\n+\tint64 amountOfDataStored = 8;\n+\tint64 falseClaims = 9;\n+    int64 shardsModified = 10;\n+    float score = 11;\n+}\n+\n+message NodeReputationRecords {\n+    repeated NodeReputationRecord records = 1;\n+}\n+\n+message UpdateReply {\n+    string bridgeName = 1;\n+    string nodeName = 2;\n+    string source = 3;\n+\n+    enum ReplyType {\n+        UPDATE_SUCCESS = 0;\n+        UPDATE_FAILED = 1;\n+    }\n+\n+    ReplyType status = 4;","path":"protos/node_reputation/node_reputation.proto","position":42,"original_position":42,"commit_id":"3c05b72db69eca875ca60ccc2c04d9edc1f07c33","original_commit_id":"3c05b72db69eca875ca60ccc2c04d9edc1f07c33","user":{"login":"jtolds","id":109603,"avatar_url":"https://avatars0.githubusercontent.com/u/109603?v=4","gravatar_id":"","url":"https://api.github.com/users/jtolds","html_url":"https://github.com/jtolds","followers_url":"https://api.github.com/users/jtolds/followers","following_url":"https://api.github.com/users/jtolds/following{/other_user}","gists_url":"https://api.github.com/users/jtolds/gists{/gist_id}","starred_url":"https://api.github.com/users/jtolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtolds/subscriptions","organizations_url":"https://api.github.com/users/jtolds/orgs","repos_url":"https://api.github.com/users/jtolds/repos","events_url":"https://api.github.com/users/jtolds/events{/privacy}","received_events_url":"https://api.github.com/users/jtolds/received_events","type":"User","site_admin":false},"body":"you don't need to handle this yourself. grpc has a status and a code system for returning errors separately from your response protobuf","created_at":"2018-05-30T03:53:14Z","updated_at":"2018-05-30T03:55:06Z","html_url":"https://github.com/storj/storj/pull/54#discussion_r191636145","pull_request_url":"https://api.github.com/repos/storj/storj/pulls/54","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/storj/storj/pulls/comments/191636145"},"html":{"href":"https://github.com/storj/storj/pull/54#discussion_r191636145"},"pull_request":{"href":"https://api.github.com/repos/storj/storj/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/storj/storj/pulls/54","id":190048802,"html_url":"https://github.com/storj/storj/pull/54","diff_url":"https://github.com/storj/storj/pull/54.diff","patch_url":"https://github.com/storj/storj/pull/54.patch","issue_url":"https://api.github.com/repos/storj/storj/issues/54","number":54,"state":"open","locked":false,"title":"base logic for gRPC for small microservice wrapper around a database (sqlite3)","user":{"login":"jhagans3","id":1771546,"avatar_url":"https://avatars0.githubusercontent.com/u/1771546?v=4","gravatar_id":"","url":"https://api.github.com/users/jhagans3","html_url":"https://github.com/jhagans3","followers_url":"https://api.github.com/users/jhagans3/followers","following_url":"https://api.github.com/users/jhagans3/following{/other_user}","gists_url":"https://api.github.com/users/jhagans3/gists{/gist_id}","starred_url":"https://api.github.com/users/jhagans3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhagans3/subscriptions","organizations_url":"https://api.github.com/users/jhagans3/orgs","repos_url":"https://api.github.com/users/jhagans3/repos","events_url":"https://api.github.com/users/jhagans3/events{/privacy}","received_events_url":"https://api.github.com/users/jhagans3/received_events","type":"User","site_admin":false},"body":"This is dependent on PRs #53 and #52  looking for logical, syntax  errors or GO anti patterns","created_at":"2018-05-23T17:22:11Z","updated_at":"2018-05-30T03:55:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93a8688b3da8d9e441a8ed6d72cac2251f56c1f4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/storj/storj/pulls/54/commits","review_comments_url":"https://api.github.com/repos/storj/storj/pulls/54/comments","review_comment_url":"https://api.github.com/repos/storj/storj/pulls/comments{/number}","comments_url":"https://api.github.com/repos/storj/storj/issues/54/comments","statuses_url":"https://api.github.com/repos/storj/storj/statuses/3c05b72db69eca875ca60ccc2c04d9edc1f07c33","head":{"label":"jhagans3:node_reputation_grpc","ref":"node_reputation_grpc","sha":"3c05b72db69eca875ca60ccc2c04d9edc1f07c33","user":{"login":"jhagans3","id":1771546,"avatar_url":"https://avatars0.githubusercontent.com/u/1771546?v=4","gravatar_id":"","url":"https://api.github.com/users/jhagans3","html_url":"https://github.com/jhagans3","followers_url":"https://api.github.com/users/jhagans3/followers","following_url":"https://api.github.com/users/jhagans3/following{/other_user}","gists_url":"https://api.github.com/users/jhagans3/gists{/gist_id}","starred_url":"https://api.github.com/users/jhagans3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhagans3/subscriptions","organizations_url":"https://api.github.com/users/jhagans3/orgs","repos_url":"https://api.github.com/users/jhagans3/repos","events_url":"https://api.github.com/users/jhagans3/events{/privacy}","received_events_url":"https://api.github.com/users/jhagans3/received_events","type":"User","site_admin":false},"repo":{"id":128978962,"name":"storj","full_name":"jhagans3/storj","owner":{"login":"jhagans3","id":1771546,"avatar_url":"https://avatars0.githubusercontent.com/u/1771546?v=4","gravatar_id":"","url":"https://api.github.com/users/jhagans3","html_url":"https://github.com/jhagans3","followers_url":"https://api.github.com/users/jhagans3/followers","following_url":"https://api.github.com/users/jhagans3/following{/other_user}","gists_url":"https://api.github.com/users/jhagans3/gists{/gist_id}","starred_url":"https://api.github.com/users/jhagans3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhagans3/subscriptions","organizations_url":"https://api.github.com/users/jhagans3/orgs","repos_url":"https://api.github.com/users/jhagans3/repos","events_url":"https://api.github.com/users/jhagans3/events{/privacy}","received_events_url":"https://api.github.com/users/jhagans3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jhagans3/storj","description":null,"fork":true,"url":"https://api.github.com/repos/jhagans3/storj","forks_url":"https://api.github.com/repos/jhagans3/storj/forks","keys_url":"https://api.github.com/repos/jhagans3/storj/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhagans3/storj/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhagans3/storj/teams","hooks_url":"https://api.github.com/repos/jhagans3/storj/hooks","issue_events_url":"https://api.github.com/repos/jhagans3/storj/issues/events{/number}","events_url":"https://api.github.com/repos/jhagans3/storj/events","assignees_url":"https://api.github.com/repos/jhagans3/storj/assignees{/user}","branches_url":"https://api.github.com/repos/jhagans3/storj/branches{/branch}","tags_url":"https://api.github.com/repos/jhagans3/storj/tags","blobs_url":"https://api.github.com/repos/jhagans3/storj/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhagans3/storj/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhagans3/storj/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhagans3/storj/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhagans3/storj/statuses/{sha}","languages_url":"https://api.github.com/repos/jhagans3/storj/languages","stargazers_url":"https://api.github.com/repos/jhagans3/storj/stargazers","contributors_url":"https://api.github.com/repos/jhagans3/storj/contributors","subscribers_url":"https://api.github.com/repos/jhagans3/storj/subscribers","subscription_url":"https://api.github.com/repos/jhagans3/storj/subscription","commits_url":"https://api.github.com/repos/jhagans3/storj/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhagans3/storj/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhagans3/storj/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhagans3/storj/issues/comments{/number}","contents_url":"https://api.github.com/repos/jhagans3/storj/contents/{+path}","compare_url":"https://api.github.com/repos/jhagans3/storj/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhagans3/storj/merges","archive_url":"https://api.github.com/repos/jhagans3/storj/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhagans3/storj/downloads","issues_url":"https://api.github.com/repos/jhagans3/storj/issues{/number}","pulls_url":"https://api.github.com/repos/jhagans3/storj/pulls{/number}","milestones_url":"https://api.github.com/repos/jhagans3/storj/milestones{/number}","notifications_url":"https://api.github.com/repos/jhagans3/storj/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhagans3/storj/labels{/name}","releases_url":"https://api.github.com/repos/jhagans3/storj/releases{/id}","deployments_url":"https://api.github.com/repos/jhagans3/storj/deployments","created_at":"2018-04-10T18:33:50Z","updated_at":"2018-04-10T18:33:52Z","pushed_at":"2018-05-23T17:17:08Z","git_url":"git://github.com/jhagans3/storj.git","ssh_url":"git@github.com:jhagans3/storj.git","clone_url":"https://github.com/jhagans3/storj.git","svn_url":"https://github.com/jhagans3/storj","homepage":null,"size":265,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"storj:master","ref":"master","sha":"d6ddb65bf8f3eaf1fdde2bedc9149d176645e45e","user":{"login":"storj","id":6308081,"avatar_url":"https://avatars3.githubusercontent.com/u/6308081?v=4","gravatar_id":"","url":"https://api.github.com/users/storj","html_url":"https://github.com/storj","followers_url":"https://api.github.com/users/storj/followers","following_url":"https://api.github.com/users/storj/following{/other_user}","gists_url":"https://api.github.com/users/storj/gists{/gist_id}","starred_url":"https://api.github.com/users/storj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/storj/subscriptions","organizations_url":"https://api.github.com/users/storj/orgs","repos_url":"https://api.github.com/users/storj/repos","events_url":"https://api.github.com/users/storj/events{/privacy}","received_events_url":"https://api.github.com/users/storj/received_events","type":"Organization","site_admin":false},"repo":{"id":128089774,"name":"storj","full_name":"storj/storj","owner":{"login":"storj","id":6308081,"avatar_url":"https://avatars3.githubusercontent.com/u/6308081?v=4","gravatar_id":"","url":"https://api.github.com/users/storj","html_url":"https://github.com/storj","followers_url":"https://api.github.com/users/storj/followers","following_url":"https://api.github.com/users/storj/following{/other_user}","gists_url":"https://api.github.com/users/storj/gists{/gist_id}","starred_url":"https://api.github.com/users/storj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/storj/subscriptions","organizations_url":"https://api.github.com/users/storj/orgs","repos_url":"https://api.github.com/users/storj/repos","events_url":"https://api.github.com/users/storj/events{/privacy}","received_events_url":"https://api.github.com/users/storj/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/storj/storj","description":null,"fork":false,"url":"https://api.github.com/repos/storj/storj","forks_url":"https://api.github.com/repos/storj/storj/forks","keys_url":"https://api.github.com/repos/storj/storj/keys{/key_id}","collaborators_url":"https://api.github.com/repos/storj/storj/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/storj/storj/teams","hooks_url":"https://api.github.com/repos/storj/storj/hooks","issue_events_url":"https://api.github.com/repos/storj/storj/issues/events{/number}","events_url":"https://api.github.com/repos/storj/storj/events","assignees_url":"https://api.github.com/repos/storj/storj/assignees{/user}","branches_url":"https://api.github.com/repos/storj/storj/branches{/branch}","tags_url":"https://api.github.com/repos/storj/storj/tags","blobs_url":"https://api.github.com/repos/storj/storj/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/storj/storj/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/storj/storj/git/refs{/sha}","trees_url":"https://api.github.com/repos/storj/storj/git/trees{/sha}","statuses_url":"https://api.github.com/repos/storj/storj/statuses/{sha}","languages_url":"https://api.github.com/repos/storj/storj/languages","stargazers_url":"https://api.github.com/repos/storj/storj/stargazers","contributors_url":"https://api.github.com/repos/storj/storj/contributors","subscribers_url":"https://api.github.com/repos/storj/storj/subscribers","subscription_url":"https://api.github.com/repos/storj/storj/subscription","commits_url":"https://api.github.com/repos/storj/storj/commits{/sha}","git_commits_url":"https://api.github.com/repos/storj/storj/git/commits{/sha}","comments_url":"https://api.github.com/repos/storj/storj/comments{/number}","issue_comment_url":"https://api.github.com/repos/storj/storj/issues/comments{/number}","contents_url":"https://api.github.com/repos/storj/storj/contents/{+path}","compare_url":"https://api.github.com/repos/storj/storj/compare/{base}...{head}","merges_url":"https://api.github.com/repos/storj/storj/merges","archive_url":"https://api.github.com/repos/storj/storj/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/storj/storj/downloads","issues_url":"https://api.github.com/repos/storj/storj/issues{/number}","pulls_url":"https://api.github.com/repos/storj/storj/pulls{/number}","milestones_url":"https://api.github.com/repos/storj/storj/milestones{/number}","notifications_url":"https://api.github.com/repos/storj/storj/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/storj/storj/labels{/name}","releases_url":"https://api.github.com/repos/storj/storj/releases{/id}","deployments_url":"https://api.github.com/repos/storj/storj/deployments","created_at":"2018-04-04T16:27:18Z","updated_at":"2018-05-30T02:58:45Z","pushed_at":"2018-05-30T02:58:42Z","git_url":"git://github.com/storj/storj.git","ssh_url":"git@github.com:storj/storj.git","clone_url":"https://github.com/storj/storj.git","svn_url":"https://github.com/storj/storj","homepage":null,"size":654,"stargazers_count":35,"watchers_count":35,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"archived":false,"open_issues_count":17,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":18,"open_issues":17,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/storj/storj/pulls/54"},"html":{"href":"https://github.com/storj/storj/pull/54"},"issue":{"href":"https://api.github.com/repos/storj/storj/issues/54"},"comments":{"href":"https://api.github.com/repos/storj/storj/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/storj/storj/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/storj/storj/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/storj/storj/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/storj/storj/statuses/3c05b72db69eca875ca60ccc2c04d9edc1f07c33"}},"author_association":"NONE"}}
{"actor":{"display_login":"jtolds"}}