{"action":"created","comment":{"url":"https://api.github.com/repos/MitocGroup/deep-framework/pulls/comments/57712709","id":57712709,"diff_hunk":"@@ -0,0 +1,62 @@\n+/**\n+ * Created by CCristi <ccovali@mitocgroup.com> on 3/28/16.\n+ */\n+\n+'use strict';\n+\n+import HttpConnection from 'elasticsearch/src/lib/connectors/http';\n+import aws4 from 'aws4';\n+\n+/**\n+ * Aws4 Signed Http Connection Factory\n+ */\n+export class Aws4SignedHttpConnectionFactory {\n+  /**\n+   * @param {Object} awsCredentials\n+   */\n+  constructor(awsCredentials = null) {\n+    this._awsCredentials = awsCredentials;\n+  }\n+\n+  /**\n+   * @param {Object} aws4Signature\n+   * @returns {$ES6_ANONYMOUS_CLASS$}\n+   */\n+  create() {\n+    let connectionFactory = this;\n+\n+    /**\n+     * Aws4 Signed Http Connection\n+     */\n+    return class extends HttpConnection {\n+      /**\n+       * @param {Object} params\n+       * @returns {Object}\n+       */\n+      makeReqParams(params) {\n+        let aws4Signature = connectionFactory._createAws4Signature({\n+            ...params,\n+            service: 'es'\n+        });","path":"src/deep-search/lib/Client/Connection/Aws4SignedHttpConnectionFactory.js","position":40,"original_position":40,"commit_id":"83e0aea2bb39d770b666dfb6a37fd026b6499197","original_commit_id":"83e0aea2bb39d770b666dfb6a37fd026b6499197","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","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":"Class properties must be methods. Expected '(' but instead saw '}'.<br>Expected '(' and instead saw '}'.<br>'function closure expressions' is only available in Mozilla JavaScript extensions (use moz option).<br>Expected an identifier and instead saw ';'.","created_at":"2016-03-29T12:14:11Z","updated_at":"2016-03-29T12:14:11Z","html_url":"https://github.com/MitocGroup/deep-framework/pull/300#discussion_r57712709","pull_request_url":"https://api.github.com/repos/MitocGroup/deep-framework/pulls/300","_links":{"self":{"href":"https://api.github.com/repos/MitocGroup/deep-framework/pulls/comments/57712709"},"html":{"href":"https://github.com/MitocGroup/deep-framework/pull/300#discussion_r57712709"},"pull_request":{"href":"https://api.github.com/repos/MitocGroup/deep-framework/pulls/300"}}},"pull_request":{"url":"https://api.github.com/repos/MitocGroup/deep-framework/pulls/300","id":64455525,"html_url":"https://github.com/MitocGroup/deep-framework/pull/300","diff_url":"https://github.com/MitocGroup/deep-framework/pull/300.diff","patch_url":"https://github.com/MitocGroup/deep-framework/pull/300.patch","issue_url":"https://api.github.com/repos/MitocGroup/deep-framework/issues/300","number":300,"state":"open","locked":false,"title":"# Added Aws4SignedHttpConnectionFactory to sign elasticsearch requests","user":{"login":"CCristi","id":8135089,"avatar_url":"https://avatars.githubusercontent.com/u/8135089?v=3","gravatar_id":"","url":"https://api.github.com/users/CCristi","html_url":"https://github.com/CCristi","followers_url":"https://api.github.com/users/CCristi/followers","following_url":"https://api.github.com/users/CCristi/following{/other_user}","gists_url":"https://api.github.com/users/CCristi/gists{/gist_id}","starred_url":"https://api.github.com/users/CCristi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CCristi/subscriptions","organizations_url":"https://api.github.com/users/CCristi/orgs","repos_url":"https://api.github.com/users/CCristi/repos","events_url":"https://api.github.com/users/CCristi/events{/privacy}","received_events_url":"https://api.github.com/users/CCristi/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-29T12:14:00Z","updated_at":"2016-03-29T12:14:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39eafc39fa1a078ffdd2e334d1c90d65230583ea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MitocGroup/deep-framework/pulls/300/commits","review_comments_url":"https://api.github.com/repos/MitocGroup/deep-framework/pulls/300/comments","review_comment_url":"https://api.github.com/repos/MitocGroup/deep-framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MitocGroup/deep-framework/issues/300/comments","statuses_url":"https://api.github.com/repos/MitocGroup/deep-framework/statuses/83e0aea2bb39d770b666dfb6a37fd026b6499197","head":{"label":"MitocGroup:deep-es-connection","ref":"deep-es-connection","sha":"83e0aea2bb39d770b666dfb6a37fd026b6499197","user":{"login":"MitocGroup","id":8398780,"avatar_url":"https://avatars.githubusercontent.com/u/8398780?v=3","gravatar_id":"","url":"https://api.github.com/users/MitocGroup","html_url":"https://github.com/MitocGroup","followers_url":"https://api.github.com/users/MitocGroup/followers","following_url":"https://api.github.com/users/MitocGroup/following{/other_user}","gists_url":"https://api.github.com/users/MitocGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/MitocGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MitocGroup/subscriptions","organizations_url":"https://api.github.com/users/MitocGroup/orgs","repos_url":"https://api.github.com/users/MitocGroup/repos","events_url":"https://api.github.com/users/MitocGroup/events{/privacy}","received_events_url":"https://api.github.com/users/MitocGroup/received_events","type":"Organization","site_admin":false},"repo":{"id":43718196,"name":"deep-framework","full_name":"MitocGroup/deep-framework","owner":{"login":"MitocGroup","id":8398780,"avatar_url":"https://avatars.githubusercontent.com/u/8398780?v=3","gravatar_id":"","url":"https://api.github.com/users/MitocGroup","html_url":"https://github.com/MitocGroup","followers_url":"https://api.github.com/users/MitocGroup/followers","following_url":"https://api.github.com/users/MitocGroup/following{/other_user}","gists_url":"https://api.github.com/users/MitocGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/MitocGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MitocGroup/subscriptions","organizations_url":"https://api.github.com/users/MitocGroup/orgs","repos_url":"https://api.github.com/users/MitocGroup/repos","events_url":"https://api.github.com/users/MitocGroup/events{/privacy}","received_events_url":"https://api.github.com/users/MitocGroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MitocGroup/deep-framework","description":"Full-stack Web Framework for Cloud-Native Applications and Platforms using Microservices Architecture","fork":false,"url":"https://api.github.com/repos/MitocGroup/deep-framework","forks_url":"https://api.github.com/repos/MitocGroup/deep-framework/forks","keys_url":"https://api.github.com/repos/MitocGroup/deep-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MitocGroup/deep-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MitocGroup/deep-framework/teams","hooks_url":"https://api.github.com/repos/MitocGroup/deep-framework/hooks","issue_events_url":"https://api.github.com/repos/MitocGroup/deep-framework/issues/events{/number}","events_url":"https://api.github.com/repos/MitocGroup/deep-framework/events","assignees_url":"https://api.github.com/repos/MitocGroup/deep-framework/assignees{/user}","branches_url":"https://api.github.com/repos/MitocGroup/deep-framework/branches{/branch}","tags_url":"https://api.github.com/repos/MitocGroup/deep-framework/tags","blobs_url":"https://api.github.com/repos/MitocGroup/deep-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MitocGroup/deep-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MitocGroup/deep-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/MitocGroup/deep-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MitocGroup/deep-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/MitocGroup/deep-framework/languages","stargazers_url":"https://api.github.com/repos/MitocGroup/deep-framework/stargazers","contributors_url":"https://api.github.com/repos/MitocGroup/deep-framework/contributors","subscribers_url":"https://api.github.com/repos/MitocGroup/deep-framework/subscribers","subscription_url":"https://api.github.com/repos/MitocGroup/deep-framework/subscription","commits_url":"https://api.github.com/repos/MitocGroup/deep-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/MitocGroup/deep-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/MitocGroup/deep-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/MitocGroup/deep-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/MitocGroup/deep-framework/contents/{+path}","compare_url":"https://api.github.com/repos/MitocGroup/deep-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MitocGroup/deep-framework/merges","archive_url":"https://api.github.com/repos/MitocGroup/deep-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MitocGroup/deep-framework/downloads","issues_url":"https://api.github.com/repos/MitocGroup/deep-framework/issues{/number}","pulls_url":"https://api.github.com/repos/MitocGroup/deep-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/MitocGroup/deep-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/MitocGroup/deep-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MitocGroup/deep-framework/labels{/name}","releases_url":"https://api.github.com/repos/MitocGroup/deep-framework/releases{/id}","deployments_url":"https://api.github.com/repos/MitocGroup/deep-framework/deployments","created_at":"2015-10-05T22:48:47Z","updated_at":"2016-03-27T15:38:17Z","pushed_at":"2016-03-29T12:14:00Z","git_url":"git://github.com/MitocGroup/deep-framework.git","ssh_url":"git@github.com:MitocGroup/deep-framework.git","clone_url":"https://github.com/MitocGroup/deep-framework.git","svn_url":"https://github.com/MitocGroup/deep-framework","homepage":"http://docs.deep.mg","size":14222,"stargazers_count":234,"watchers_count":234,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":17,"forks":21,"open_issues":17,"watchers":234,"default_branch":"master"}},"base":{"label":"MitocGroup:dev","ref":"dev","sha":"7bef0cfe733b7bd7dfcf3af47345192e7eec72d2","user":{"login":"MitocGroup","id":8398780,"avatar_url":"https://avatars.githubusercontent.com/u/8398780?v=3","gravatar_id":"","url":"https://api.github.com/users/MitocGroup","html_url":"https://github.com/MitocGroup","followers_url":"https://api.github.com/users/MitocGroup/followers","following_url":"https://api.github.com/users/MitocGroup/following{/other_user}","gists_url":"https://api.github.com/users/MitocGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/MitocGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MitocGroup/subscriptions","organizations_url":"https://api.github.com/users/MitocGroup/orgs","repos_url":"https://api.github.com/users/MitocGroup/repos","events_url":"https://api.github.com/users/MitocGroup/events{/privacy}","received_events_url":"https://api.github.com/users/MitocGroup/received_events","type":"Organization","site_admin":false},"repo":{"id":43718196,"name":"deep-framework","full_name":"MitocGroup/deep-framework","owner":{"login":"MitocGroup","id":8398780,"avatar_url":"https://avatars.githubusercontent.com/u/8398780?v=3","gravatar_id":"","url":"https://api.github.com/users/MitocGroup","html_url":"https://github.com/MitocGroup","followers_url":"https://api.github.com/users/MitocGroup/followers","following_url":"https://api.github.com/users/MitocGroup/following{/other_user}","gists_url":"https://api.github.com/users/MitocGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/MitocGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MitocGroup/subscriptions","organizations_url":"https://api.github.com/users/MitocGroup/orgs","repos_url":"https://api.github.com/users/MitocGroup/repos","events_url":"https://api.github.com/users/MitocGroup/events{/privacy}","received_events_url":"https://api.github.com/users/MitocGroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MitocGroup/deep-framework","description":"Full-stack Web Framework for Cloud-Native Applications and Platforms using Microservices Architecture","fork":false,"url":"https://api.github.com/repos/MitocGroup/deep-framework","forks_url":"https://api.github.com/repos/MitocGroup/deep-framework/forks","keys_url":"https://api.github.com/repos/MitocGroup/deep-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MitocGroup/deep-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MitocGroup/deep-framework/teams","hooks_url":"https://api.github.com/repos/MitocGroup/deep-framework/hooks","issue_events_url":"https://api.github.com/repos/MitocGroup/deep-framework/issues/events{/number}","events_url":"https://api.github.com/repos/MitocGroup/deep-framework/events","assignees_url":"https://api.github.com/repos/MitocGroup/deep-framework/assignees{/user}","branches_url":"https://api.github.com/repos/MitocGroup/deep-framework/branches{/branch}","tags_url":"https://api.github.com/repos/MitocGroup/deep-framework/tags","blobs_url":"https://api.github.com/repos/MitocGroup/deep-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MitocGroup/deep-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MitocGroup/deep-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/MitocGroup/deep-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MitocGroup/deep-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/MitocGroup/deep-framework/languages","stargazers_url":"https://api.github.com/repos/MitocGroup/deep-framework/stargazers","contributors_url":"https://api.github.com/repos/MitocGroup/deep-framework/contributors","subscribers_url":"https://api.github.com/repos/MitocGroup/deep-framework/subscribers","subscription_url":"https://api.github.com/repos/MitocGroup/deep-framework/subscription","commits_url":"https://api.github.com/repos/MitocGroup/deep-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/MitocGroup/deep-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/MitocGroup/deep-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/MitocGroup/deep-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/MitocGroup/deep-framework/contents/{+path}","compare_url":"https://api.github.com/repos/MitocGroup/deep-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MitocGroup/deep-framework/merges","archive_url":"https://api.github.com/repos/MitocGroup/deep-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MitocGroup/deep-framework/downloads","issues_url":"https://api.github.com/repos/MitocGroup/deep-framework/issues{/number}","pulls_url":"https://api.github.com/repos/MitocGroup/deep-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/MitocGroup/deep-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/MitocGroup/deep-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MitocGroup/deep-framework/labels{/name}","releases_url":"https://api.github.com/repos/MitocGroup/deep-framework/releases{/id}","deployments_url":"https://api.github.com/repos/MitocGroup/deep-framework/deployments","created_at":"2015-10-05T22:48:47Z","updated_at":"2016-03-27T15:38:17Z","pushed_at":"2016-03-29T12:14:00Z","git_url":"git://github.com/MitocGroup/deep-framework.git","ssh_url":"git@github.com:MitocGroup/deep-framework.git","clone_url":"https://github.com/MitocGroup/deep-framework.git","svn_url":"https://github.com/MitocGroup/deep-framework","homepage":"http://docs.deep.mg","size":14222,"stargazers_count":234,"watchers_count":234,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":17,"forks":21,"open_issues":17,"watchers":234,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MitocGroup/deep-framework/pulls/300"},"html":{"href":"https://github.com/MitocGroup/deep-framework/pull/300"},"issue":{"href":"https://api.github.com/repos/MitocGroup/deep-framework/issues/300"},"comments":{"href":"https://api.github.com/repos/MitocGroup/deep-framework/issues/300/comments"},"review_comments":{"href":"https://api.github.com/repos/MitocGroup/deep-framework/pulls/300/comments"},"review_comment":{"href":"https://api.github.com/repos/MitocGroup/deep-framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MitocGroup/deep-framework/pulls/300/commits"},"statuses":{"href":"https://api.github.com/repos/MitocGroup/deep-framework/statuses/83e0aea2bb39d770b666dfb6a37fd026b6499197"}}}}