{"action":"created","comment":{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/comments/77976991","id":77976991,"diff_hunk":"@@ -0,0 +1,303 @@\n+import { Meteor } from 'meteor/meteor';\n+\n+import { apiUmbrellaProxyIsValid } from '/lib/helperFunctions/validateSettings';\n+import _ from 'lodash';\n+\n+import { Apis } from '/apis/collection';\n+import { Proxies } from '../../collection';\n+\n+Meteor.methods({\n+  elasticsearchIsDefined () {\n+    const proxy = Proxies.findOne();\n+\n+    if (proxy) {\n+      const elasticsearch = proxy.apiUmbrella.elasticsearch;\n+\n+      return (elasticsearch) ? true : false;\n+    }\n+\n+    return false;\n+  },\n+  getElasticsearchUrl () {\n+    if (Meteor.call('elasticsearchIsDefined')) {\n+      const elasticsearch = Proxies.findOne().apiUmbrella.elasticsearch;","path":"proxies/default/methods/apiUmbrella.js","position":23,"original_position":23,"commit_id":"a351c41485f949e9fbd8c421cd2b862d9a015c88","original_commit_id":"a351c41485f949e9fbd8c421cd2b862d9a015c88","user":{"login":"brylie","id":17307,"avatar_url":"https://avatars.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false},"body":"Note also that this code is behaving as if it is being called on the server, but is available also on the client. On the client, Meteor.methods have to use a callback function.","created_at":"2016-09-08T09:53:46Z","updated_at":"2016-09-08T09:53:46Z","html_url":"https://github.com/apinf/api-umbrella-dashboard/pull/1459#discussion_r77976991","pull_request_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/1459","_links":{"self":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/comments/77976991"},"html":{"href":"https://github.com/apinf/api-umbrella-dashboard/pull/1459#discussion_r77976991"},"pull_request":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/1459"}}},"pull_request":{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/1459","id":83220496,"html_url":"https://github.com/apinf/api-umbrella-dashboard/pull/1459","diff_url":"https://github.com/apinf/api-umbrella-dashboard/pull/1459.diff","patch_url":"https://github.com/apinf/api-umbrella-dashboard/pull/1459.patch","issue_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/1459","number":1459,"state":"open","locked":false,"title":"Feature/no proxy selected","user":{"login":"frenchbread","id":2122679,"avatar_url":"https://avatars.githubusercontent.com/u/2122679?v=3","gravatar_id":"","url":"https://api.github.com/users/frenchbread","html_url":"https://github.com/frenchbread","followers_url":"https://api.github.com/users/frenchbread/followers","following_url":"https://api.github.com/users/frenchbread/following{/other_user}","gists_url":"https://api.github.com/users/frenchbread/gists{/gist_id}","starred_url":"https://api.github.com/users/frenchbread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frenchbread/subscriptions","organizations_url":"https://api.github.com/users/frenchbread/orgs","repos_url":"https://api.github.com/users/frenchbread/repos","events_url":"https://api.github.com/users/frenchbread/events{/privacy}","received_events_url":"https://api.github.com/users/frenchbread/received_events","type":"User","site_admin":false},"body":"Closes #1382, #1394","created_at":"2016-08-30T07:25:33Z","updated_at":"2016-09-08T09:53:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad105ea675cd1d8194c9a0138778e51c2429699a","assignee":{"login":"nnn","id":7489044,"avatar_url":"https://avatars.githubusercontent.com/u/7489044?v=3","gravatar_id":"","url":"https://api.github.com/users/nnn","html_url":"https://github.com/nnn","followers_url":"https://api.github.com/users/nnn/followers","following_url":"https://api.github.com/users/nnn/following{/other_user}","gists_url":"https://api.github.com/users/nnn/gists{/gist_id}","starred_url":"https://api.github.com/users/nnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnn/subscriptions","organizations_url":"https://api.github.com/users/nnn/orgs","repos_url":"https://api.github.com/users/nnn/repos","events_url":"https://api.github.com/users/nnn/events{/privacy}","received_events_url":"https://api.github.com/users/nnn/received_events","type":"User","site_admin":false},"assignees":[{"login":"brylie","id":17307,"avatar_url":"https://avatars.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false},{"login":"nnn","id":7489044,"avatar_url":"https://avatars.githubusercontent.com/u/7489044?v=3","gravatar_id":"","url":"https://api.github.com/users/nnn","html_url":"https://github.com/nnn","followers_url":"https://api.github.com/users/nnn/followers","following_url":"https://api.github.com/users/nnn/following{/other_user}","gists_url":"https://api.github.com/users/nnn/gists{/gist_id}","starred_url":"https://api.github.com/users/nnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnn/subscriptions","organizations_url":"https://api.github.com/users/nnn/orgs","repos_url":"https://api.github.com/users/nnn/repos","events_url":"https://api.github.com/users/nnn/events{/privacy}","received_events_url":"https://api.github.com/users/nnn/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/milestones/30","html_url":"https://github.com/apinf/api-umbrella-dashboard/milestones/Sprint%2030","labels_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/milestones/30/labels","id":1968955,"number":30,"title":"Sprint 30","description":"Apinf sprint 30: 29 August - 9 September 2016","creator":{"login":"bajiat","id":11626388,"avatar_url":"https://avatars.githubusercontent.com/u/11626388?v=3","gravatar_id":"","url":"https://api.github.com/users/bajiat","html_url":"https://github.com/bajiat","followers_url":"https://api.github.com/users/bajiat/followers","following_url":"https://api.github.com/users/bajiat/following{/other_user}","gists_url":"https://api.github.com/users/bajiat/gists{/gist_id}","starred_url":"https://api.github.com/users/bajiat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajiat/subscriptions","organizations_url":"https://api.github.com/users/bajiat/orgs","repos_url":"https://api.github.com/users/bajiat/repos","events_url":"https://api.github.com/users/bajiat/events{/privacy}","received_events_url":"https://api.github.com/users/bajiat/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":28,"state":"open","created_at":"2016-08-29T07:00:27Z","updated_at":"2016-09-07T12:31:21Z","due_on":"2016-09-09T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/1459/commits","review_comments_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/1459/comments","review_comment_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/1459/comments","statuses_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/statuses/a351c41485f949e9fbd8c421cd2b862d9a015c88","head":{"label":"apinf:feature/no-proxy-selected","ref":"feature/no-proxy-selected","sha":"a351c41485f949e9fbd8c421cd2b862d9a015c88","user":{"login":"apinf","id":9882661,"avatar_url":"https://avatars.githubusercontent.com/u/9882661?v=3","gravatar_id":"","url":"https://api.github.com/users/apinf","html_url":"https://github.com/apinf","followers_url":"https://api.github.com/users/apinf/followers","following_url":"https://api.github.com/users/apinf/following{/other_user}","gists_url":"https://api.github.com/users/apinf/gists{/gist_id}","starred_url":"https://api.github.com/users/apinf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinf/subscriptions","organizations_url":"https://api.github.com/users/apinf/orgs","repos_url":"https://api.github.com/users/apinf/repos","events_url":"https://api.github.com/users/apinf/events{/privacy}","received_events_url":"https://api.github.com/users/apinf/received_events","type":"Organization","site_admin":false},"repo":{"id":31646449,"name":"api-umbrella-dashboard","full_name":"apinf/api-umbrella-dashboard","owner":{"login":"apinf","id":9882661,"avatar_url":"https://avatars.githubusercontent.com/u/9882661?v=3","gravatar_id":"","url":"https://api.github.com/users/apinf","html_url":"https://github.com/apinf","followers_url":"https://api.github.com/users/apinf/followers","following_url":"https://api.github.com/users/apinf/following{/other_user}","gists_url":"https://api.github.com/users/apinf/gists{/gist_id}","starred_url":"https://api.github.com/users/apinf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinf/subscriptions","organizations_url":"https://api.github.com/users/apinf/orgs","repos_url":"https://api.github.com/users/apinf/repos","events_url":"https://api.github.com/users/apinf/events{/privacy}","received_events_url":"https://api.github.com/users/apinf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apinf/api-umbrella-dashboard","description":"Dashboard component for the open-source API management platform API Umbrella.","fork":false,"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard","forks_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/forks","keys_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/teams","hooks_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/hooks","issue_events_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/events","assignees_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/tags","blobs_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/languages","stargazers_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/stargazers","contributors_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/contributors","subscribers_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/subscribers","subscription_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/subscription","commits_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/merges","archive_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/downloads","issues_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/deployments","created_at":"2015-03-04T08:33:18Z","updated_at":"2016-08-08T15:30:11Z","pushed_at":"2016-09-08T06:45:34Z","git_url":"git://github.com/apinf/api-umbrella-dashboard.git","ssh_url":"git@github.com:apinf/api-umbrella-dashboard.git","clone_url":"https://github.com/apinf/api-umbrella-dashboard.git","svn_url":"https://github.com/apinf/api-umbrella-dashboard","homepage":"http://apinf.org/docs/","size":31922,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":392,"forks":12,"open_issues":392,"watchers":18,"default_branch":"develop"}},"base":{"label":"apinf:develop","ref":"develop","sha":"8b67235b55a2fa19c9ed3521d444f9eb254d85ae","user":{"login":"apinf","id":9882661,"avatar_url":"https://avatars.githubusercontent.com/u/9882661?v=3","gravatar_id":"","url":"https://api.github.com/users/apinf","html_url":"https://github.com/apinf","followers_url":"https://api.github.com/users/apinf/followers","following_url":"https://api.github.com/users/apinf/following{/other_user}","gists_url":"https://api.github.com/users/apinf/gists{/gist_id}","starred_url":"https://api.github.com/users/apinf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinf/subscriptions","organizations_url":"https://api.github.com/users/apinf/orgs","repos_url":"https://api.github.com/users/apinf/repos","events_url":"https://api.github.com/users/apinf/events{/privacy}","received_events_url":"https://api.github.com/users/apinf/received_events","type":"Organization","site_admin":false},"repo":{"id":31646449,"name":"api-umbrella-dashboard","full_name":"apinf/api-umbrella-dashboard","owner":{"login":"apinf","id":9882661,"avatar_url":"https://avatars.githubusercontent.com/u/9882661?v=3","gravatar_id":"","url":"https://api.github.com/users/apinf","html_url":"https://github.com/apinf","followers_url":"https://api.github.com/users/apinf/followers","following_url":"https://api.github.com/users/apinf/following{/other_user}","gists_url":"https://api.github.com/users/apinf/gists{/gist_id}","starred_url":"https://api.github.com/users/apinf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinf/subscriptions","organizations_url":"https://api.github.com/users/apinf/orgs","repos_url":"https://api.github.com/users/apinf/repos","events_url":"https://api.github.com/users/apinf/events{/privacy}","received_events_url":"https://api.github.com/users/apinf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apinf/api-umbrella-dashboard","description":"Dashboard component for the open-source API management platform API Umbrella.","fork":false,"url":"https://api.github.com/repos/apinf/api-umbrella-dashboard","forks_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/forks","keys_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/teams","hooks_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/hooks","issue_events_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/events","assignees_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/tags","blobs_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/languages","stargazers_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/stargazers","contributors_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/contributors","subscribers_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/subscribers","subscription_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/subscription","commits_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/merges","archive_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/downloads","issues_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/apinf/api-umbrella-dashboard/deployments","created_at":"2015-03-04T08:33:18Z","updated_at":"2016-08-08T15:30:11Z","pushed_at":"2016-09-08T06:45:34Z","git_url":"git://github.com/apinf/api-umbrella-dashboard.git","ssh_url":"git@github.com:apinf/api-umbrella-dashboard.git","clone_url":"https://github.com/apinf/api-umbrella-dashboard.git","svn_url":"https://github.com/apinf/api-umbrella-dashboard","homepage":"http://apinf.org/docs/","size":31922,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":392,"forks":12,"open_issues":392,"watchers":18,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/1459"},"html":{"href":"https://github.com/apinf/api-umbrella-dashboard/pull/1459"},"issue":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/1459"},"comments":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/issues/1459/comments"},"review_comments":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/1459/comments"},"review_comment":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/pulls/1459/commits"},"statuses":{"href":"https://api.github.com/repos/apinf/api-umbrella-dashboard/statuses/a351c41485f949e9fbd8c421cd2b862d9a015c88"}}}}
{"actor":{"display_login":"brylie"}}