{"action":"created","comment":{"url":"https://api.github.com/repos/iverberk/nomad-ui/pulls/comments/75365087","id":75365087,"diff_hunk":"@@ -190,6 +196,50 @@ func (c *Connection) watchEval(action Action) {\n \t}\n }\n \n+func (c *Connection) fetchMember(action Action) {\n+\tmemberID := action.Payload.(string)\n+\tmember, err := c.hub.nomad.MemberWithID(memberID)\n+\tif err != nil {\n+\t\tlog.Errorf(\"websocket: unable to fetch member %q: %s\", memberID, err)\n+\t\treturn\n+\t}\n+\n+\tc.send <- &Action{Type: fetchedMember, Payload: member}\n+}\n+\n+\n+func (c *Connection) watchMember(action Action) {\n+\tmemberID := action.Payload.(string)\n+\n+\tdefer func() {\n+\t\tc.watches.Remove(memberID)","path":"backend/connection.go","position":46,"original_position":46,"commit_id":"cb9265ed3cb3f6acdee9f4db6d5410c163b078f9","original_commit_id":"cb9265ed3cb3f6acdee9f4db6d5410c163b078f9","user":{"login":"themalkolm","id":864186,"avatar_url":"https://avatars.githubusercontent.com/u/864186?v=3","gravatar_id":"","url":"https://api.github.com/users/themalkolm","html_url":"https://github.com/themalkolm","followers_url":"https://api.github.com/users/themalkolm/followers","following_url":"https://api.github.com/users/themalkolm/following{/other_user}","gists_url":"https://api.github.com/users/themalkolm/gists{/gist_id}","starred_url":"https://api.github.com/users/themalkolm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themalkolm/subscriptions","organizations_url":"https://api.github.com/users/themalkolm/orgs","repos_url":"https://api.github.com/users/themalkolm/repos","events_url":"https://api.github.com/users/themalkolm/events{/privacy}","received_events_url":"https://api.github.com/users/themalkolm/received_events","type":"User","site_admin":false},"body":"Nah, it is possible to have several members and not have a member selected :D Not that easy.","created_at":"2016-08-18T18:41:25Z","updated_at":"2016-08-18T18:41:25Z","html_url":"https://github.com/iverberk/nomad-ui/pull/28#discussion_r75365087","pull_request_url":"https://api.github.com/repos/iverberk/nomad-ui/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/iverberk/nomad-ui/pulls/comments/75365087"},"html":{"href":"https://github.com/iverberk/nomad-ui/pull/28#discussion_r75365087"},"pull_request":{"href":"https://api.github.com/repos/iverberk/nomad-ui/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/iverberk/nomad-ui/pulls/28","id":81775751,"html_url":"https://github.com/iverberk/nomad-ui/pull/28","diff_url":"https://github.com/iverberk/nomad-ui/pull/28.diff","patch_url":"https://github.com/iverberk/nomad-ui/pull/28.patch","issue_url":"https://api.github.com/repos/iverberk/nomad-ui/issues/28","number":28,"state":"open","locked":false,"title":"Add members","user":{"login":"themalkolm","id":864186,"avatar_url":"https://avatars.githubusercontent.com/u/864186?v=3","gravatar_id":"","url":"https://api.github.com/users/themalkolm","html_url":"https://github.com/themalkolm","followers_url":"https://api.github.com/users/themalkolm/followers","following_url":"https://api.github.com/users/themalkolm/following{/other_user}","gists_url":"https://api.github.com/users/themalkolm/gists{/gist_id}","starred_url":"https://api.github.com/users/themalkolm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themalkolm/subscriptions","organizations_url":"https://api.github.com/users/themalkolm/orgs","repos_url":"https://api.github.com/users/themalkolm/repos","events_url":"https://api.github.com/users/themalkolm/events{/privacy}","received_events_url":"https://api.github.com/users/themalkolm/received_events","type":"User","site_admin":false},"body":"Members are actually server members. They are named members in api so we name them same way.\r\n\r\nAlmost all code is a copy-pasted versions of nodes events, components etc.\r\n\r\nFix https://github.com/iverberk/nomad-ui/issues/19\r\n\r\n![image](https://cloud.githubusercontent.com/assets/864186/17767764/985ea2a6-6531-11e6-9f01-74d2b90e8907.png)\r\n","created_at":"2016-08-18T08:30:21Z","updated_at":"2016-08-18T18:41:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86934dbe6fa483b9071cabb1688093e410682b51","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/iverberk/nomad-ui/pulls/28/commits","review_comments_url":"https://api.github.com/repos/iverberk/nomad-ui/pulls/28/comments","review_comment_url":"https://api.github.com/repos/iverberk/nomad-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iverberk/nomad-ui/issues/28/comments","statuses_url":"https://api.github.com/repos/iverberk/nomad-ui/statuses/cb9265ed3cb3f6acdee9f4db6d5410c163b078f9","head":{"label":"themalkolm:patch-7","ref":"patch-7","sha":"cb9265ed3cb3f6acdee9f4db6d5410c163b078f9","user":{"login":"themalkolm","id":864186,"avatar_url":"https://avatars.githubusercontent.com/u/864186?v=3","gravatar_id":"","url":"https://api.github.com/users/themalkolm","html_url":"https://github.com/themalkolm","followers_url":"https://api.github.com/users/themalkolm/followers","following_url":"https://api.github.com/users/themalkolm/following{/other_user}","gists_url":"https://api.github.com/users/themalkolm/gists{/gist_id}","starred_url":"https://api.github.com/users/themalkolm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themalkolm/subscriptions","organizations_url":"https://api.github.com/users/themalkolm/orgs","repos_url":"https://api.github.com/users/themalkolm/repos","events_url":"https://api.github.com/users/themalkolm/events{/privacy}","received_events_url":"https://api.github.com/users/themalkolm/received_events","type":"User","site_admin":false},"repo":{"id":65752305,"name":"nomad-ui","full_name":"themalkolm/nomad-ui","owner":{"login":"themalkolm","id":864186,"avatar_url":"https://avatars.githubusercontent.com/u/864186?v=3","gravatar_id":"","url":"https://api.github.com/users/themalkolm","html_url":"https://github.com/themalkolm","followers_url":"https://api.github.com/users/themalkolm/followers","following_url":"https://api.github.com/users/themalkolm/following{/other_user}","gists_url":"https://api.github.com/users/themalkolm/gists{/gist_id}","starred_url":"https://api.github.com/users/themalkolm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themalkolm/subscriptions","organizations_url":"https://api.github.com/users/themalkolm/orgs","repos_url":"https://api.github.com/users/themalkolm/repos","events_url":"https://api.github.com/users/themalkolm/events{/privacy}","received_events_url":"https://api.github.com/users/themalkolm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/themalkolm/nomad-ui","description":"A user interface for the HashiCorp Nomad scheduler","fork":true,"url":"https://api.github.com/repos/themalkolm/nomad-ui","forks_url":"https://api.github.com/repos/themalkolm/nomad-ui/forks","keys_url":"https://api.github.com/repos/themalkolm/nomad-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/themalkolm/nomad-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/themalkolm/nomad-ui/teams","hooks_url":"https://api.github.com/repos/themalkolm/nomad-ui/hooks","issue_events_url":"https://api.github.com/repos/themalkolm/nomad-ui/issues/events{/number}","events_url":"https://api.github.com/repos/themalkolm/nomad-ui/events","assignees_url":"https://api.github.com/repos/themalkolm/nomad-ui/assignees{/user}","branches_url":"https://api.github.com/repos/themalkolm/nomad-ui/branches{/branch}","tags_url":"https://api.github.com/repos/themalkolm/nomad-ui/tags","blobs_url":"https://api.github.com/repos/themalkolm/nomad-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/themalkolm/nomad-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/themalkolm/nomad-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/themalkolm/nomad-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/themalkolm/nomad-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/themalkolm/nomad-ui/languages","stargazers_url":"https://api.github.com/repos/themalkolm/nomad-ui/stargazers","contributors_url":"https://api.github.com/repos/themalkolm/nomad-ui/contributors","subscribers_url":"https://api.github.com/repos/themalkolm/nomad-ui/subscribers","subscription_url":"https://api.github.com/repos/themalkolm/nomad-ui/subscription","commits_url":"https://api.github.com/repos/themalkolm/nomad-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/themalkolm/nomad-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/themalkolm/nomad-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/themalkolm/nomad-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/themalkolm/nomad-ui/contents/{+path}","compare_url":"https://api.github.com/repos/themalkolm/nomad-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/themalkolm/nomad-ui/merges","archive_url":"https://api.github.com/repos/themalkolm/nomad-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/themalkolm/nomad-ui/downloads","issues_url":"https://api.github.com/repos/themalkolm/nomad-ui/issues{/number}","pulls_url":"https://api.github.com/repos/themalkolm/nomad-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/themalkolm/nomad-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/themalkolm/nomad-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/themalkolm/nomad-ui/labels{/name}","releases_url":"https://api.github.com/repos/themalkolm/nomad-ui/releases{/id}","deployments_url":"https://api.github.com/repos/themalkolm/nomad-ui/deployments","created_at":"2016-08-15T17:46:34Z","updated_at":"2016-08-17T16:36:10Z","pushed_at":"2016-08-18T15:49:48Z","git_url":"git://github.com/themalkolm/nomad-ui.git","ssh_url":"git@github.com:themalkolm/nomad-ui.git","clone_url":"https://github.com/themalkolm/nomad-ui.git","svn_url":"https://github.com/themalkolm/nomad-ui","homepage":null,"size":3292,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"iverberk:master","ref":"master","sha":"3e8a504f22088d1ce5ac749de879467c4ba6a01c","user":{"login":"iverberk","id":2798710,"avatar_url":"https://avatars.githubusercontent.com/u/2798710?v=3","gravatar_id":"","url":"https://api.github.com/users/iverberk","html_url":"https://github.com/iverberk","followers_url":"https://api.github.com/users/iverberk/followers","following_url":"https://api.github.com/users/iverberk/following{/other_user}","gists_url":"https://api.github.com/users/iverberk/gists{/gist_id}","starred_url":"https://api.github.com/users/iverberk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iverberk/subscriptions","organizations_url":"https://api.github.com/users/iverberk/orgs","repos_url":"https://api.github.com/users/iverberk/repos","events_url":"https://api.github.com/users/iverberk/events{/privacy}","received_events_url":"https://api.github.com/users/iverberk/received_events","type":"User","site_admin":false},"repo":{"id":64083411,"name":"nomad-ui","full_name":"iverberk/nomad-ui","owner":{"login":"iverberk","id":2798710,"avatar_url":"https://avatars.githubusercontent.com/u/2798710?v=3","gravatar_id":"","url":"https://api.github.com/users/iverberk","html_url":"https://github.com/iverberk","followers_url":"https://api.github.com/users/iverberk/followers","following_url":"https://api.github.com/users/iverberk/following{/other_user}","gists_url":"https://api.github.com/users/iverberk/gists{/gist_id}","starred_url":"https://api.github.com/users/iverberk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iverberk/subscriptions","organizations_url":"https://api.github.com/users/iverberk/orgs","repos_url":"https://api.github.com/users/iverberk/repos","events_url":"https://api.github.com/users/iverberk/events{/privacy}","received_events_url":"https://api.github.com/users/iverberk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iverberk/nomad-ui","description":"A user interface for the HashiCorp Nomad scheduler","fork":false,"url":"https://api.github.com/repos/iverberk/nomad-ui","forks_url":"https://api.github.com/repos/iverberk/nomad-ui/forks","keys_url":"https://api.github.com/repos/iverberk/nomad-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iverberk/nomad-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iverberk/nomad-ui/teams","hooks_url":"https://api.github.com/repos/iverberk/nomad-ui/hooks","issue_events_url":"https://api.github.com/repos/iverberk/nomad-ui/issues/events{/number}","events_url":"https://api.github.com/repos/iverberk/nomad-ui/events","assignees_url":"https://api.github.com/repos/iverberk/nomad-ui/assignees{/user}","branches_url":"https://api.github.com/repos/iverberk/nomad-ui/branches{/branch}","tags_url":"https://api.github.com/repos/iverberk/nomad-ui/tags","blobs_url":"https://api.github.com/repos/iverberk/nomad-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iverberk/nomad-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iverberk/nomad-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/iverberk/nomad-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iverberk/nomad-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/iverberk/nomad-ui/languages","stargazers_url":"https://api.github.com/repos/iverberk/nomad-ui/stargazers","contributors_url":"https://api.github.com/repos/iverberk/nomad-ui/contributors","subscribers_url":"https://api.github.com/repos/iverberk/nomad-ui/subscribers","subscription_url":"https://api.github.com/repos/iverberk/nomad-ui/subscription","commits_url":"https://api.github.com/repos/iverberk/nomad-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/iverberk/nomad-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/iverberk/nomad-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/iverberk/nomad-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/iverberk/nomad-ui/contents/{+path}","compare_url":"https://api.github.com/repos/iverberk/nomad-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iverberk/nomad-ui/merges","archive_url":"https://api.github.com/repos/iverberk/nomad-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iverberk/nomad-ui/downloads","issues_url":"https://api.github.com/repos/iverberk/nomad-ui/issues{/number}","pulls_url":"https://api.github.com/repos/iverberk/nomad-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/iverberk/nomad-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/iverberk/nomad-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iverberk/nomad-ui/labels{/name}","releases_url":"https://api.github.com/repos/iverberk/nomad-ui/releases{/id}","deployments_url":"https://api.github.com/repos/iverberk/nomad-ui/deployments","created_at":"2016-07-24T20:05:06Z","updated_at":"2016-08-17T14:14:09Z","pushed_at":"2016-08-18T14:40:51Z","git_url":"git://github.com/iverberk/nomad-ui.git","ssh_url":"git@github.com:iverberk/nomad-ui.git","clone_url":"https://github.com/iverberk/nomad-ui.git","svn_url":"https://github.com/iverberk/nomad-ui","homepage":null,"size":3278,"stargazers_count":44,"watchers_count":44,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":14,"forks":7,"open_issues":14,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iverberk/nomad-ui/pulls/28"},"html":{"href":"https://github.com/iverberk/nomad-ui/pull/28"},"issue":{"href":"https://api.github.com/repos/iverberk/nomad-ui/issues/28"},"comments":{"href":"https://api.github.com/repos/iverberk/nomad-ui/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/iverberk/nomad-ui/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/iverberk/nomad-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iverberk/nomad-ui/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/iverberk/nomad-ui/statuses/cb9265ed3cb3f6acdee9f4db6d5410c163b078f9"}}}}
{"actor":{"display_login":"themalkolm"}}