{"action":"created","comment":{"url":"https://api.github.com/repos/intuit/katlas/pulls/comments/244209055","pull_request_review_id":188156229,"id":244209055,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDIwOTA1NQ==","diff_hunk":"@@ -47,6 +49,15 @@ func serve() {\n \trouter.HandleFunc(\"/health\", Health).Methods(\"GET\")\n \trouter.HandleFunc(\"/\", Up).Methods(\"GET\", \"POST\")\n \n+\t//Creates an LRU cache of the given size\n+\tvar err error\n+\tdb.LruCache, err = lru.New(5)\n+\tif err != nil {\n+\t\tlog.Errorf(\"err: %v\", err)\n+\t}\n+\tlog.Infoln(\"LRU cache created with given size\")\n+\tdb.InitLruCacheDBSchema = false","path":"service/server.go","position":null,"original_position":30,"commit_id":"3b8d1e0e3b06ef4596da55830e19b57ff4e5f9ec","original_commit_id":"1f09f8c6ab5986743f72b98654da14196e3ebd31","user":{"login":"Lucy911","id":15251808,"node_id":"MDQ6VXNlcjE1MjUxODA4","avatar_url":"https://avatars3.githubusercontent.com/u/15251808?v=4","gravatar_id":"","url":"https://api.github.com/users/Lucy911","html_url":"https://github.com/Lucy911","followers_url":"https://api.github.com/users/Lucy911/followers","following_url":"https://api.github.com/users/Lucy911/following{/other_user}","gists_url":"https://api.github.com/users/Lucy911/gists{/gist_id}","starred_url":"https://api.github.com/users/Lucy911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lucy911/subscriptions","organizations_url":"https://api.github.com/users/Lucy911/orgs","repos_url":"https://api.github.com/users/Lucy911/repos","events_url":"https://api.github.com/users/Lucy911/events{/privacy}","received_events_url":"https://api.github.com/users/Lucy911/received_events","type":"User","site_admin":false},"body":"Thanks for the comments. Just made the changes accordingly. ","created_at":"2018-12-27T19:02:00Z","updated_at":"2018-12-27T19:02:00Z","html_url":"https://github.com/intuit/katlas/pull/11#discussion_r244209055","pull_request_url":"https://api.github.com/repos/intuit/katlas/pulls/11","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/intuit/katlas/pulls/comments/244209055"},"html":{"href":"https://github.com/intuit/katlas/pull/11#discussion_r244209055"},"pull_request":{"href":"https://api.github.com/repos/intuit/katlas/pulls/11"}},"in_reply_to_id":244051478},"pull_request":{"url":"https://api.github.com/repos/intuit/katlas/pulls/11","id":240594732,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwNTk0NzMy","html_url":"https://github.com/intuit/katlas/pull/11","diff_url":"https://github.com/intuit/katlas/pull/11.diff","patch_url":"https://github.com/intuit/katlas/pull/11.patch","issue_url":"https://api.github.com/repos/intuit/katlas/issues/11","number":11,"state":"open","locked":false,"title":" Change implementation logic for getting DB schema","user":{"login":"Lucy911","id":15251808,"node_id":"MDQ6VXNlcjE1MjUxODA4","avatar_url":"https://avatars3.githubusercontent.com/u/15251808?v=4","gravatar_id":"","url":"https://api.github.com/users/Lucy911","html_url":"https://github.com/Lucy911","followers_url":"https://api.github.com/users/Lucy911/followers","following_url":"https://api.github.com/users/Lucy911/following{/other_user}","gists_url":"https://api.github.com/users/Lucy911/gists{/gist_id}","starred_url":"https://api.github.com/users/Lucy911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lucy911/subscriptions","organizations_url":"https://api.github.com/users/Lucy911/orgs","repos_url":"https://api.github.com/users/Lucy911/repos","events_url":"https://api.github.com/users/Lucy911/events{/privacy}","received_events_url":"https://api.github.com/users/Lucy911/received_events","type":"User","site_admin":false},"body":"- Create LRU cache to store DB schema\r\n- Add logic for getting DB schema from either database or cache\r\n- Remove cache\r\n- Add unit test for above functions","created_at":"2018-12-21T22:56:11Z","updated_at":"2018-12-27T19:02:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09a955a53133c15a4caa0625b7e06f8fe4c0a2d2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/intuit/katlas/pulls/11/commits","review_comments_url":"https://api.github.com/repos/intuit/katlas/pulls/11/comments","review_comment_url":"https://api.github.com/repos/intuit/katlas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/intuit/katlas/issues/11/comments","statuses_url":"https://api.github.com/repos/intuit/katlas/statuses/3b8d1e0e3b06ef4596da55830e19b57ff4e5f9ec","head":{"label":"Lucy911:feature/SchemaCache","ref":"feature/SchemaCache","sha":"3b8d1e0e3b06ef4596da55830e19b57ff4e5f9ec","user":{"login":"Lucy911","id":15251808,"node_id":"MDQ6VXNlcjE1MjUxODA4","avatar_url":"https://avatars3.githubusercontent.com/u/15251808?v=4","gravatar_id":"","url":"https://api.github.com/users/Lucy911","html_url":"https://github.com/Lucy911","followers_url":"https://api.github.com/users/Lucy911/followers","following_url":"https://api.github.com/users/Lucy911/following{/other_user}","gists_url":"https://api.github.com/users/Lucy911/gists{/gist_id}","starred_url":"https://api.github.com/users/Lucy911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lucy911/subscriptions","organizations_url":"https://api.github.com/users/Lucy911/orgs","repos_url":"https://api.github.com/users/Lucy911/repos","events_url":"https://api.github.com/users/Lucy911/events{/privacy}","received_events_url":"https://api.github.com/users/Lucy911/received_events","type":"User","site_admin":false},"repo":{"id":162188322,"node_id":"MDEwOlJlcG9zaXRvcnkxNjIxODgzMjI=","name":"katlas","full_name":"Lucy911/katlas","private":false,"owner":{"login":"Lucy911","id":15251808,"node_id":"MDQ6VXNlcjE1MjUxODA4","avatar_url":"https://avatars3.githubusercontent.com/u/15251808?v=4","gravatar_id":"","url":"https://api.github.com/users/Lucy911","html_url":"https://github.com/Lucy911","followers_url":"https://api.github.com/users/Lucy911/followers","following_url":"https://api.github.com/users/Lucy911/following{/other_user}","gists_url":"https://api.github.com/users/Lucy911/gists{/gist_id}","starred_url":"https://api.github.com/users/Lucy911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lucy911/subscriptions","organizations_url":"https://api.github.com/users/Lucy911/orgs","repos_url":"https://api.github.com/users/Lucy911/repos","events_url":"https://api.github.com/users/Lucy911/events{/privacy}","received_events_url":"https://api.github.com/users/Lucy911/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Lucy911/katlas","description":"A distributed graph-based platform to automatically collect, discover, explore and relate multi-cluster kubernetes resources and metadata.","fork":true,"url":"https://api.github.com/repos/Lucy911/katlas","forks_url":"https://api.github.com/repos/Lucy911/katlas/forks","keys_url":"https://api.github.com/repos/Lucy911/katlas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Lucy911/katlas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Lucy911/katlas/teams","hooks_url":"https://api.github.com/repos/Lucy911/katlas/hooks","issue_events_url":"https://api.github.com/repos/Lucy911/katlas/issues/events{/number}","events_url":"https://api.github.com/repos/Lucy911/katlas/events","assignees_url":"https://api.github.com/repos/Lucy911/katlas/assignees{/user}","branches_url":"https://api.github.com/repos/Lucy911/katlas/branches{/branch}","tags_url":"https://api.github.com/repos/Lucy911/katlas/tags","blobs_url":"https://api.github.com/repos/Lucy911/katlas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Lucy911/katlas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Lucy911/katlas/git/refs{/sha}","trees_url":"https://api.github.com/repos/Lucy911/katlas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Lucy911/katlas/statuses/{sha}","languages_url":"https://api.github.com/repos/Lucy911/katlas/languages","stargazers_url":"https://api.github.com/repos/Lucy911/katlas/stargazers","contributors_url":"https://api.github.com/repos/Lucy911/katlas/contributors","subscribers_url":"https://api.github.com/repos/Lucy911/katlas/subscribers","subscription_url":"https://api.github.com/repos/Lucy911/katlas/subscription","commits_url":"https://api.github.com/repos/Lucy911/katlas/commits{/sha}","git_commits_url":"https://api.github.com/repos/Lucy911/katlas/git/commits{/sha}","comments_url":"https://api.github.com/repos/Lucy911/katlas/comments{/number}","issue_comment_url":"https://api.github.com/repos/Lucy911/katlas/issues/comments{/number}","contents_url":"https://api.github.com/repos/Lucy911/katlas/contents/{+path}","compare_url":"https://api.github.com/repos/Lucy911/katlas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Lucy911/katlas/merges","archive_url":"https://api.github.com/repos/Lucy911/katlas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Lucy911/katlas/downloads","issues_url":"https://api.github.com/repos/Lucy911/katlas/issues{/number}","pulls_url":"https://api.github.com/repos/Lucy911/katlas/pulls{/number}","milestones_url":"https://api.github.com/repos/Lucy911/katlas/milestones{/number}","notifications_url":"https://api.github.com/repos/Lucy911/katlas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Lucy911/katlas/labels{/name}","releases_url":"https://api.github.com/repos/Lucy911/katlas/releases{/id}","deployments_url":"https://api.github.com/repos/Lucy911/katlas/deployments","created_at":"2018-12-17T20:50:47Z","updated_at":"2018-12-21T22:38:30Z","pushed_at":"2018-12-27T18:26:19Z","git_url":"git://github.com/Lucy911/katlas.git","ssh_url":"git@github.com:Lucy911/katlas.git","clone_url":"https://github.com/Lucy911/katlas.git","svn_url":"https://github.com/Lucy911/katlas","homepage":"http://katlas.io","size":200,"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":"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":"intuit:master","ref":"master","sha":"653e14e0a7344bf49d6ef74f5cebccc1a0d9fd3e","user":{"login":"intuit","id":2495066,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0OTUwNjY=","avatar_url":"https://avatars2.githubusercontent.com/u/2495066?v=4","gravatar_id":"","url":"https://api.github.com/users/intuit","html_url":"https://github.com/intuit","followers_url":"https://api.github.com/users/intuit/followers","following_url":"https://api.github.com/users/intuit/following{/other_user}","gists_url":"https://api.github.com/users/intuit/gists{/gist_id}","starred_url":"https://api.github.com/users/intuit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intuit/subscriptions","organizations_url":"https://api.github.com/users/intuit/orgs","repos_url":"https://api.github.com/users/intuit/repos","events_url":"https://api.github.com/users/intuit/events{/privacy}","received_events_url":"https://api.github.com/users/intuit/received_events","type":"Organization","site_admin":false},"repo":{"id":161317797,"node_id":"MDEwOlJlcG9zaXRvcnkxNjEzMTc3OTc=","name":"katlas","full_name":"intuit/katlas","private":false,"owner":{"login":"intuit","id":2495066,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0OTUwNjY=","avatar_url":"https://avatars2.githubusercontent.com/u/2495066?v=4","gravatar_id":"","url":"https://api.github.com/users/intuit","html_url":"https://github.com/intuit","followers_url":"https://api.github.com/users/intuit/followers","following_url":"https://api.github.com/users/intuit/following{/other_user}","gists_url":"https://api.github.com/users/intuit/gists{/gist_id}","starred_url":"https://api.github.com/users/intuit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intuit/subscriptions","organizations_url":"https://api.github.com/users/intuit/orgs","repos_url":"https://api.github.com/users/intuit/repos","events_url":"https://api.github.com/users/intuit/events{/privacy}","received_events_url":"https://api.github.com/users/intuit/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/intuit/katlas","description":"A distributed graph-based platform to automatically collect, discover, explore and relate multi-cluster kubernetes resources and metadata.","fork":false,"url":"https://api.github.com/repos/intuit/katlas","forks_url":"https://api.github.com/repos/intuit/katlas/forks","keys_url":"https://api.github.com/repos/intuit/katlas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/intuit/katlas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/intuit/katlas/teams","hooks_url":"https://api.github.com/repos/intuit/katlas/hooks","issue_events_url":"https://api.github.com/repos/intuit/katlas/issues/events{/number}","events_url":"https://api.github.com/repos/intuit/katlas/events","assignees_url":"https://api.github.com/repos/intuit/katlas/assignees{/user}","branches_url":"https://api.github.com/repos/intuit/katlas/branches{/branch}","tags_url":"https://api.github.com/repos/intuit/katlas/tags","blobs_url":"https://api.github.com/repos/intuit/katlas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/intuit/katlas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/intuit/katlas/git/refs{/sha}","trees_url":"https://api.github.com/repos/intuit/katlas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/intuit/katlas/statuses/{sha}","languages_url":"https://api.github.com/repos/intuit/katlas/languages","stargazers_url":"https://api.github.com/repos/intuit/katlas/stargazers","contributors_url":"https://api.github.com/repos/intuit/katlas/contributors","subscribers_url":"https://api.github.com/repos/intuit/katlas/subscribers","subscription_url":"https://api.github.com/repos/intuit/katlas/subscription","commits_url":"https://api.github.com/repos/intuit/katlas/commits{/sha}","git_commits_url":"https://api.github.com/repos/intuit/katlas/git/commits{/sha}","comments_url":"https://api.github.com/repos/intuit/katlas/comments{/number}","issue_comment_url":"https://api.github.com/repos/intuit/katlas/issues/comments{/number}","contents_url":"https://api.github.com/repos/intuit/katlas/contents/{+path}","compare_url":"https://api.github.com/repos/intuit/katlas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/intuit/katlas/merges","archive_url":"https://api.github.com/repos/intuit/katlas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/intuit/katlas/downloads","issues_url":"https://api.github.com/repos/intuit/katlas/issues{/number}","pulls_url":"https://api.github.com/repos/intuit/katlas/pulls{/number}","milestones_url":"https://api.github.com/repos/intuit/katlas/milestones{/number}","notifications_url":"https://api.github.com/repos/intuit/katlas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/intuit/katlas/labels{/name}","releases_url":"https://api.github.com/repos/intuit/katlas/releases{/id}","deployments_url":"https://api.github.com/repos/intuit/katlas/deployments","created_at":"2018-12-11T10:35:33Z","updated_at":"2018-12-27T18:25:30Z","pushed_at":"2018-12-27T18:26:20Z","git_url":"git://github.com/intuit/katlas.git","ssh_url":"git@github.com:intuit/katlas.git","clone_url":"https://github.com/intuit/katlas.git","svn_url":"https://github.com/intuit/katlas","homepage":"http://katlas.io","size":210,"stargazers_count":7,"watchers_count":7,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":3,"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":7,"open_issues":3,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/intuit/katlas/pulls/11"},"html":{"href":"https://github.com/intuit/katlas/pull/11"},"issue":{"href":"https://api.github.com/repos/intuit/katlas/issues/11"},"comments":{"href":"https://api.github.com/repos/intuit/katlas/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/intuit/katlas/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/intuit/katlas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/intuit/katlas/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/intuit/katlas/statuses/3b8d1e0e3b06ef4596da55830e19b57ff4e5f9ec"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Lucy911"}}