{"action":"created","comment":{"url":"https://api.github.com/repos/ndoit/fenrir/pulls/comments/227979078","pull_request_review_id":168143710,"id":227979078,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzk3OTA3OA==","diff_hunk":"@@ -0,0 +1,94 @@\n+let typeaheadCache = {\n+  whenReady: function whenReady(func) {\n+    typeaheadCache.data().then(func);\n+  },\n+\n+  data: function data() {\n+    if(!typeaheadCache.dataPromise) {\n+      typeaheadCache.dataPromise = new Promise(function dataPromise(resolve, reject) {\n+        // First, determine if our client-side typeahead cache is up to date.\n+        // If not, update it from the server before we proceed.\n+        serverTimestamp = typeaheadCache.updateRequired();\n+        if(serverTimestamp) {\n+          console.log('Refreshing typeahead cache.');\n+          $.ajax({\n+            url: $('#typeahead-timestamp').attr('url'),\n+            type: 'GET',\n+            beforeSend: function beforeSend(xhr) {\n+              xhr.setRequestHeader('X-CSRF-Token', $('meta[name=\"csrf-token\"]').attr('content'));\n+            },\n+          }).\n+          then(function updateClientTypeahead(data) {\n+            localStorage.setItem(typeaheadCache.cacheKey(), JSON.stringify(data));\n+            localStorage.setItem(typeaheadCache.timestampKey(), serverTimestamp);\n+            resolve(typeaheadCache.load(data));\n+          });\n+        } else {\n+          let cachestring = localStorage.getItem(typeaheadCache.cacheKey());\n+          resolve(typeaheadCache.load(JSON.parse(cachestring)));\n+        } \n+      });\n+    }\n+    return typeaheadCache.dataPromise;\n+  },\n+\n+  // We store the typeahead cache in an array format to keep it as small as\n+  // possible (preferably under 200K).\n+  //\n+  // Direct hits are stored as 4-item arrays: name, model, short desc, url.\n+  // Search strings are stored as plain strings.\n+  load: function load(data) {\n+    output = {\n+      'searchStrings': [],\n+      'directHits': [],\n+    }","path":"app/assets/javascripts/site_utils/typeahead_cache.es6","position":44,"original_position":44,"commit_id":"4637a0245a86dab35a92b87d5b429b9a218ac65c","original_commit_id":"4637a0245a86dab35a92b87d5b429b9a218ac65c","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Missing semicolon                               semi","created_at":"2018-10-24T22:18:11Z","updated_at":"2018-10-24T22:18:12Z","html_url":"https://github.com/ndoit/fenrir/pull/805#discussion_r227979078","pull_request_url":"https://api.github.com/repos/ndoit/fenrir/pulls/805","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ndoit/fenrir/pulls/comments/227979078"},"html":{"href":"https://github.com/ndoit/fenrir/pull/805#discussion_r227979078"},"pull_request":{"href":"https://api.github.com/repos/ndoit/fenrir/pulls/805"}}},"pull_request":{"url":"https://api.github.com/repos/ndoit/fenrir/pulls/805","id":225566880,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NTY2ODgw","html_url":"https://github.com/ndoit/fenrir/pull/805","diff_url":"https://github.com/ndoit/fenrir/pull/805.diff","patch_url":"https://github.com/ndoit/fenrir/pull/805.patch","issue_url":"https://api.github.com/repos/ndoit/fenrir/issues/805","number":805,"state":"closed","locked":false,"title":"Admin typeahead","user":{"login":"EvanGranthamBrown","id":4096134,"node_id":"MDQ6VXNlcjQwOTYxMzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4096134?v=4","gravatar_id":"","url":"https://api.github.com/users/EvanGranthamBrown","html_url":"https://github.com/EvanGranthamBrown","followers_url":"https://api.github.com/users/EvanGranthamBrown/followers","following_url":"https://api.github.com/users/EvanGranthamBrown/following{/other_user}","gists_url":"https://api.github.com/users/EvanGranthamBrown/gists{/gist_id}","starred_url":"https://api.github.com/users/EvanGranthamBrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvanGranthamBrown/subscriptions","organizations_url":"https://api.github.com/users/EvanGranthamBrown/orgs","repos_url":"https://api.github.com/users/EvanGranthamBrown/repos","events_url":"https://api.github.com/users/EvanGranthamBrown/events{/privacy}","received_events_url":"https://api.github.com/users/EvanGranthamBrown/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-24T22:12:19Z","updated_at":"2018-10-24T22:18:11Z","closed_at":"2018-10-24T22:17:56Z","merged_at":"2018-10-24T22:17:56Z","merge_commit_sha":"99efd310c8771808f0c1b942bfcc1e897532a065","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ndoit/fenrir/pulls/805/commits","review_comments_url":"https://api.github.com/repos/ndoit/fenrir/pulls/805/comments","review_comment_url":"https://api.github.com/repos/ndoit/fenrir/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ndoit/fenrir/issues/805/comments","statuses_url":"https://api.github.com/repos/ndoit/fenrir/statuses/4637a0245a86dab35a92b87d5b429b9a218ac65c","head":{"label":"ndoit:admin-typeahead","ref":"admin-typeahead","sha":"4637a0245a86dab35a92b87d5b429b9a218ac65c","user":{"login":"ndoit","id":6223716,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMjM3MTY=","avatar_url":"https://avatars3.githubusercontent.com/u/6223716?v=4","gravatar_id":"","url":"https://api.github.com/users/ndoit","html_url":"https://github.com/ndoit","followers_url":"https://api.github.com/users/ndoit/followers","following_url":"https://api.github.com/users/ndoit/following{/other_user}","gists_url":"https://api.github.com/users/ndoit/gists{/gist_id}","starred_url":"https://api.github.com/users/ndoit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndoit/subscriptions","organizations_url":"https://api.github.com/users/ndoit/orgs","repos_url":"https://api.github.com/users/ndoit/repos","events_url":"https://api.github.com/users/ndoit/events{/privacy}","received_events_url":"https://api.github.com/users/ndoit/received_events","type":"Organization","site_admin":false},"repo":{"id":39837938,"node_id":"MDEwOlJlcG9zaXRvcnkzOTgzNzkzOA==","name":"fenrir","full_name":"ndoit/fenrir","private":false,"owner":{"login":"ndoit","id":6223716,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMjM3MTY=","avatar_url":"https://avatars3.githubusercontent.com/u/6223716?v=4","gravatar_id":"","url":"https://api.github.com/users/ndoit","html_url":"https://github.com/ndoit","followers_url":"https://api.github.com/users/ndoit/followers","following_url":"https://api.github.com/users/ndoit/following{/other_user}","gists_url":"https://api.github.com/users/ndoit/gists{/gist_id}","starred_url":"https://api.github.com/users/ndoit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndoit/subscriptions","organizations_url":"https://api.github.com/users/ndoit/orgs","repos_url":"https://api.github.com/users/ndoit/repos","events_url":"https://api.github.com/users/ndoit/events{/privacy}","received_events_url":"https://api.github.com/users/ndoit/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ndoit/fenrir","description":"BI Portal","fork":false,"url":"https://api.github.com/repos/ndoit/fenrir","forks_url":"https://api.github.com/repos/ndoit/fenrir/forks","keys_url":"https://api.github.com/repos/ndoit/fenrir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndoit/fenrir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndoit/fenrir/teams","hooks_url":"https://api.github.com/repos/ndoit/fenrir/hooks","issue_events_url":"https://api.github.com/repos/ndoit/fenrir/issues/events{/number}","events_url":"https://api.github.com/repos/ndoit/fenrir/events","assignees_url":"https://api.github.com/repos/ndoit/fenrir/assignees{/user}","branches_url":"https://api.github.com/repos/ndoit/fenrir/branches{/branch}","tags_url":"https://api.github.com/repos/ndoit/fenrir/tags","blobs_url":"https://api.github.com/repos/ndoit/fenrir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndoit/fenrir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndoit/fenrir/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndoit/fenrir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndoit/fenrir/statuses/{sha}","languages_url":"https://api.github.com/repos/ndoit/fenrir/languages","stargazers_url":"https://api.github.com/repos/ndoit/fenrir/stargazers","contributors_url":"https://api.github.com/repos/ndoit/fenrir/contributors","subscribers_url":"https://api.github.com/repos/ndoit/fenrir/subscribers","subscription_url":"https://api.github.com/repos/ndoit/fenrir/subscription","commits_url":"https://api.github.com/repos/ndoit/fenrir/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndoit/fenrir/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndoit/fenrir/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndoit/fenrir/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndoit/fenrir/contents/{+path}","compare_url":"https://api.github.com/repos/ndoit/fenrir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndoit/fenrir/merges","archive_url":"https://api.github.com/repos/ndoit/fenrir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndoit/fenrir/downloads","issues_url":"https://api.github.com/repos/ndoit/fenrir/issues{/number}","pulls_url":"https://api.github.com/repos/ndoit/fenrir/pulls{/number}","milestones_url":"https://api.github.com/repos/ndoit/fenrir/milestones{/number}","notifications_url":"https://api.github.com/repos/ndoit/fenrir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndoit/fenrir/labels{/name}","releases_url":"https://api.github.com/repos/ndoit/fenrir/releases{/id}","deployments_url":"https://api.github.com/repos/ndoit/fenrir/deployments","created_at":"2015-07-28T14:14:01Z","updated_at":"2018-10-02T19:04:58Z","pushed_at":"2018-10-24T22:18:02Z","git_url":"git://github.com/ndoit/fenrir.git","ssh_url":"git@github.com:ndoit/fenrir.git","clone_url":"https://github.com/ndoit/fenrir.git","svn_url":"https://github.com/ndoit/fenrir","homepage":"https://data.nd.edu","size":29826,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":30,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":30,"watchers":6,"default_branch":"master"}},"base":{"label":"ndoit:ui-admin-changes","ref":"ui-admin-changes","sha":"2352799a2f6ed245f6907bc3fe615519519bc696","user":{"login":"ndoit","id":6223716,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMjM3MTY=","avatar_url":"https://avatars3.githubusercontent.com/u/6223716?v=4","gravatar_id":"","url":"https://api.github.com/users/ndoit","html_url":"https://github.com/ndoit","followers_url":"https://api.github.com/users/ndoit/followers","following_url":"https://api.github.com/users/ndoit/following{/other_user}","gists_url":"https://api.github.com/users/ndoit/gists{/gist_id}","starred_url":"https://api.github.com/users/ndoit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndoit/subscriptions","organizations_url":"https://api.github.com/users/ndoit/orgs","repos_url":"https://api.github.com/users/ndoit/repos","events_url":"https://api.github.com/users/ndoit/events{/privacy}","received_events_url":"https://api.github.com/users/ndoit/received_events","type":"Organization","site_admin":false},"repo":{"id":39837938,"node_id":"MDEwOlJlcG9zaXRvcnkzOTgzNzkzOA==","name":"fenrir","full_name":"ndoit/fenrir","private":false,"owner":{"login":"ndoit","id":6223716,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMjM3MTY=","avatar_url":"https://avatars3.githubusercontent.com/u/6223716?v=4","gravatar_id":"","url":"https://api.github.com/users/ndoit","html_url":"https://github.com/ndoit","followers_url":"https://api.github.com/users/ndoit/followers","following_url":"https://api.github.com/users/ndoit/following{/other_user}","gists_url":"https://api.github.com/users/ndoit/gists{/gist_id}","starred_url":"https://api.github.com/users/ndoit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndoit/subscriptions","organizations_url":"https://api.github.com/users/ndoit/orgs","repos_url":"https://api.github.com/users/ndoit/repos","events_url":"https://api.github.com/users/ndoit/events{/privacy}","received_events_url":"https://api.github.com/users/ndoit/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ndoit/fenrir","description":"BI Portal","fork":false,"url":"https://api.github.com/repos/ndoit/fenrir","forks_url":"https://api.github.com/repos/ndoit/fenrir/forks","keys_url":"https://api.github.com/repos/ndoit/fenrir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndoit/fenrir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndoit/fenrir/teams","hooks_url":"https://api.github.com/repos/ndoit/fenrir/hooks","issue_events_url":"https://api.github.com/repos/ndoit/fenrir/issues/events{/number}","events_url":"https://api.github.com/repos/ndoit/fenrir/events","assignees_url":"https://api.github.com/repos/ndoit/fenrir/assignees{/user}","branches_url":"https://api.github.com/repos/ndoit/fenrir/branches{/branch}","tags_url":"https://api.github.com/repos/ndoit/fenrir/tags","blobs_url":"https://api.github.com/repos/ndoit/fenrir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndoit/fenrir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndoit/fenrir/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndoit/fenrir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndoit/fenrir/statuses/{sha}","languages_url":"https://api.github.com/repos/ndoit/fenrir/languages","stargazers_url":"https://api.github.com/repos/ndoit/fenrir/stargazers","contributors_url":"https://api.github.com/repos/ndoit/fenrir/contributors","subscribers_url":"https://api.github.com/repos/ndoit/fenrir/subscribers","subscription_url":"https://api.github.com/repos/ndoit/fenrir/subscription","commits_url":"https://api.github.com/repos/ndoit/fenrir/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndoit/fenrir/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndoit/fenrir/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndoit/fenrir/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndoit/fenrir/contents/{+path}","compare_url":"https://api.github.com/repos/ndoit/fenrir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndoit/fenrir/merges","archive_url":"https://api.github.com/repos/ndoit/fenrir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndoit/fenrir/downloads","issues_url":"https://api.github.com/repos/ndoit/fenrir/issues{/number}","pulls_url":"https://api.github.com/repos/ndoit/fenrir/pulls{/number}","milestones_url":"https://api.github.com/repos/ndoit/fenrir/milestones{/number}","notifications_url":"https://api.github.com/repos/ndoit/fenrir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndoit/fenrir/labels{/name}","releases_url":"https://api.github.com/repos/ndoit/fenrir/releases{/id}","deployments_url":"https://api.github.com/repos/ndoit/fenrir/deployments","created_at":"2015-07-28T14:14:01Z","updated_at":"2018-10-02T19:04:58Z","pushed_at":"2018-10-24T22:18:02Z","git_url":"git://github.com/ndoit/fenrir.git","ssh_url":"git@github.com:ndoit/fenrir.git","clone_url":"https://github.com/ndoit/fenrir.git","svn_url":"https://github.com/ndoit/fenrir","homepage":"https://data.nd.edu","size":29826,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":30,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":30,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ndoit/fenrir/pulls/805"},"html":{"href":"https://github.com/ndoit/fenrir/pull/805"},"issue":{"href":"https://api.github.com/repos/ndoit/fenrir/issues/805"},"comments":{"href":"https://api.github.com/repos/ndoit/fenrir/issues/805/comments"},"review_comments":{"href":"https://api.github.com/repos/ndoit/fenrir/pulls/805/comments"},"review_comment":{"href":"https://api.github.com/repos/ndoit/fenrir/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ndoit/fenrir/pulls/805/commits"},"statuses":{"href":"https://api.github.com/repos/ndoit/fenrir/statuses/4637a0245a86dab35a92b87d5b429b9a218ac65c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}