{"action":"created","comment":{"url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/pulls/comments/48293265","id":48293265,"diff_hunk":"@@ -143,6 +146,22 @@ hashauth.init = function init(client, $) {\n     return html;\n   };\n   \n+  hashauth.updateSocketAuth = function updateSocketAuth() {\n+    client.socket.emit(\n+      'authorize'\n+      , {\n+        client: 'web'\n+        , secret: hashauth.hash()\n+      }\n+      , function authCallback(data) {\n+        console.log('Client rights: ',data);\n+        if (!data.read) {\n+          client.hashauth.requestAuthentication();\n+        }\n+      }\n+    );\n+  }","path":"lib/hashauth.js","position":47,"original_position":47,"commit_id":"a20f8e2864e3d3342a3adcd46e49908481e89fb8","original_commit_id":"a20f8e2864e3d3342a3adcd46e49908481e89fb8","user":{"login":"jasoncalabrese","id":751143,"avatar_url":"https://avatars.githubusercontent.com/u/751143?v=3","gravatar_id":"","url":"https://api.github.com/users/jasoncalabrese","html_url":"https://github.com/jasoncalabrese","followers_url":"https://api.github.com/users/jasoncalabrese/followers","following_url":"https://api.github.com/users/jasoncalabrese/following{/other_user}","gists_url":"https://api.github.com/users/jasoncalabrese/gists{/gist_id}","starred_url":"https://api.github.com/users/jasoncalabrese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasoncalabrese/subscriptions","organizations_url":"https://api.github.com/users/jasoncalabrese/orgs","repos_url":"https://api.github.com/users/jasoncalabrese/repos","events_url":"https://api.github.com/users/jasoncalabrese/events{/privacy}","received_events_url":"https://api.github.com/users/jasoncalabrese/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/versioned/images/favicon.png) Issue found: [Missing semicolon.](https://www.codacy.com/app/Nightscout/cgm-remote-monitor/file/1644868576/issues/source?bid=2452379&fileBranchId=3019946#l163)","created_at":"2015-12-22T20:14:30Z","updated_at":"2015-12-22T20:14:30Z","html_url":"https://github.com/nightscout/cgm-remote-monitor/pull/1404#discussion_r48293265","pull_request_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/pulls/1404","_links":{"self":{"href":"https://api.github.com/repos/nightscout/cgm-remote-monitor/pulls/comments/48293265"},"html":{"href":"https://github.com/nightscout/cgm-remote-monitor/pull/1404#discussion_r48293265"},"pull_request":{"href":"https://api.github.com/repos/nightscout/cgm-remote-monitor/pulls/1404"}}},"pull_request":{"url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/pulls/1404","id":53539882,"html_url":"https://github.com/nightscout/cgm-remote-monitor/pull/1404","diff_url":"https://github.com/nightscout/cgm-remote-monitor/pull/1404.diff","patch_url":"https://github.com/nightscout/cgm-remote-monitor/pull/1404.patch","issue_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/1404","number":1404,"state":"open","locked":false,"title":"Edit mode, drag&drop, WS DB update","user":{"login":"MilosKozak","id":11146458,"avatar_url":"https://avatars.githubusercontent.com/u/11146458?v=3","gravatar_id":"","url":"https://api.github.com/users/MilosKozak","html_url":"https://github.com/MilosKozak","followers_url":"https://api.github.com/users/MilosKozak/followers","following_url":"https://api.github.com/users/MilosKozak/following{/other_user}","gists_url":"https://api.github.com/users/MilosKozak/gists{/gist_id}","starred_url":"https://api.github.com/users/MilosKozak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MilosKozak/subscriptions","organizations_url":"https://api.github.com/users/MilosKozak/orgs","repos_url":"https://api.github.com/users/MilosKozak/repos","events_url":"https://api.github.com/users/MilosKozak/events{/privacy}","received_events_url":"https://api.github.com/users/MilosKozak/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-14T09:16:09Z","updated_at":"2015-12-22T20:14:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a777101c113e363745463856bd64193dc22ad6e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/pulls/1404/commits","review_comments_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/pulls/1404/comments","review_comment_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/1404/comments","statuses_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/statuses/a20f8e2864e3d3342a3adcd46e49908481e89fb8","head":{"label":"MilosKozak:wip/editmode","ref":"wip/editmode","sha":"a20f8e2864e3d3342a3adcd46e49908481e89fb8","user":{"login":"MilosKozak","id":11146458,"avatar_url":"https://avatars.githubusercontent.com/u/11146458?v=3","gravatar_id":"","url":"https://api.github.com/users/MilosKozak","html_url":"https://github.com/MilosKozak","followers_url":"https://api.github.com/users/MilosKozak/followers","following_url":"https://api.github.com/users/MilosKozak/following{/other_user}","gists_url":"https://api.github.com/users/MilosKozak/gists{/gist_id}","starred_url":"https://api.github.com/users/MilosKozak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MilosKozak/subscriptions","organizations_url":"https://api.github.com/users/MilosKozak/orgs","repos_url":"https://api.github.com/users/MilosKozak/repos","events_url":"https://api.github.com/users/MilosKozak/events{/privacy}","received_events_url":"https://api.github.com/users/MilosKozak/received_events","type":"User","site_admin":false},"repo":{"id":31164590,"name":"cgm-remote-monitor","full_name":"MilosKozak/cgm-remote-monitor","owner":{"login":"MilosKozak","id":11146458,"avatar_url":"https://avatars.githubusercontent.com/u/11146458?v=3","gravatar_id":"","url":"https://api.github.com/users/MilosKozak","html_url":"https://github.com/MilosKozak","followers_url":"https://api.github.com/users/MilosKozak/followers","following_url":"https://api.github.com/users/MilosKozak/following{/other_user}","gists_url":"https://api.github.com/users/MilosKozak/gists{/gist_id}","starred_url":"https://api.github.com/users/MilosKozak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MilosKozak/subscriptions","organizations_url":"https://api.github.com/users/MilosKozak/orgs","repos_url":"https://api.github.com/users/MilosKozak/repos","events_url":"https://api.github.com/users/MilosKozak/events{/privacy}","received_events_url":"https://api.github.com/users/MilosKozak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MilosKozak/cgm-remote-monitor","description":"nightscout web monitor","fork":true,"url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor","forks_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/forks","keys_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/teams","hooks_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/hooks","issue_events_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/issues/events{/number}","events_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/events","assignees_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/assignees{/user}","branches_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/branches{/branch}","tags_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/tags","blobs_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/statuses/{sha}","languages_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/languages","stargazers_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/stargazers","contributors_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/contributors","subscribers_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/subscribers","subscription_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/subscription","commits_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/contents/{+path}","compare_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/merges","archive_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/downloads","issues_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/issues{/number}","pulls_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/pulls{/number}","milestones_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/milestones{/number}","notifications_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/labels{/name}","releases_url":"https://api.github.com/repos/MilosKozak/cgm-remote-monitor/releases{/id}","created_at":"2015-02-22T13:57:40Z","updated_at":"2015-09-04T19:06:28Z","pushed_at":"2015-12-22T20:10:55Z","git_url":"git://github.com/MilosKozak/cgm-remote-monitor.git","ssh_url":"git@github.com:MilosKozak/cgm-remote-monitor.git","clone_url":"https://github.com/MilosKozak/cgm-remote-monitor.git","svn_url":"https://github.com/MilosKozak/cgm-remote-monitor","homepage":"","size":9826,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nightscout:dev","ref":"dev","sha":"a90cd0a35de0e15bd82400b58d0764f3089db231","user":{"login":"nightscout","id":7661012,"avatar_url":"https://avatars.githubusercontent.com/u/7661012?v=3","gravatar_id":"","url":"https://api.github.com/users/nightscout","html_url":"https://github.com/nightscout","followers_url":"https://api.github.com/users/nightscout/followers","following_url":"https://api.github.com/users/nightscout/following{/other_user}","gists_url":"https://api.github.com/users/nightscout/gists{/gist_id}","starred_url":"https://api.github.com/users/nightscout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightscout/subscriptions","organizations_url":"https://api.github.com/users/nightscout/orgs","repos_url":"https://api.github.com/users/nightscout/repos","events_url":"https://api.github.com/users/nightscout/events{/privacy}","received_events_url":"https://api.github.com/users/nightscout/received_events","type":"Organization","site_admin":false},"repo":{"id":20042152,"name":"cgm-remote-monitor","full_name":"nightscout/cgm-remote-monitor","owner":{"login":"nightscout","id":7661012,"avatar_url":"https://avatars.githubusercontent.com/u/7661012?v=3","gravatar_id":"","url":"https://api.github.com/users/nightscout","html_url":"https://github.com/nightscout","followers_url":"https://api.github.com/users/nightscout/followers","following_url":"https://api.github.com/users/nightscout/following{/other_user}","gists_url":"https://api.github.com/users/nightscout/gists{/gist_id}","starred_url":"https://api.github.com/users/nightscout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightscout/subscriptions","organizations_url":"https://api.github.com/users/nightscout/orgs","repos_url":"https://api.github.com/users/nightscout/repos","events_url":"https://api.github.com/users/nightscout/events{/privacy}","received_events_url":"https://api.github.com/users/nightscout/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nightscout/cgm-remote-monitor","description":"nightscout web monitor","fork":false,"url":"https://api.github.com/repos/nightscout/cgm-remote-monitor","forks_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/forks","keys_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/teams","hooks_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/hooks","issue_events_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/events{/number}","events_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/events","assignees_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/assignees{/user}","branches_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/branches{/branch}","tags_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/tags","blobs_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/statuses/{sha}","languages_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/languages","stargazers_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/stargazers","contributors_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/contributors","subscribers_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/subscribers","subscription_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/subscription","commits_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/contents/{+path}","compare_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/merges","archive_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/downloads","issues_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues{/number}","pulls_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/pulls{/number}","milestones_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/milestones{/number}","notifications_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/labels{/name}","releases_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/releases{/id}","created_at":"2014-05-22T00:32:28Z","updated_at":"2015-12-20T15:46:46Z","pushed_at":"2015-12-22T20:10:57Z","git_url":"git://github.com/nightscout/cgm-remote-monitor.git","ssh_url":"git@github.com:nightscout/cgm-remote-monitor.git","clone_url":"https://github.com/nightscout/cgm-remote-monitor.git","svn_url":"https://github.com/nightscout/cgm-remote-monitor","homepage":"","size":10797,"stargazers_count":142,"watchers_count":142,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3846,"mirror_url":null,"open_issues_count":76,"forks":3846,"open_issues":76,"watchers":142,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nightscout/cgm-remote-monitor/pulls/1404"},"html":{"href":"https://github.com/nightscout/cgm-remote-monitor/pull/1404"},"issue":{"href":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/1404"},"comments":{"href":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/1404/comments"},"review_comments":{"href":"https://api.github.com/repos/nightscout/cgm-remote-monitor/pulls/1404/comments"},"review_comment":{"href":"https://api.github.com/repos/nightscout/cgm-remote-monitor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nightscout/cgm-remote-monitor/pulls/1404/commits"},"statuses":{"href":"https://api.github.com/repos/nightscout/cgm-remote-monitor/statuses/a20f8e2864e3d3342a3adcd46e49908481e89fb8"}}}}