{"action":"created","comment":{"url":"https://api.github.com/repos/algolia/algoliasearch-magento/pulls/comments/81345592","pull_request_review_id":2332625,"id":81345592,"diff_hunk":"@@ -139,9 +139,41 @@ if ($config->isInstantEnabled() && $isSearchPage) {\n     </script>';\n }\n \n+/** Generate API keys */\n+$attributesToRetrieve = $config->getAttributesToRetrieve($customerGroupId);\n+\n+if ($attributesToRetrieve) {\n+    $instantsearchApiKeyParams['attributesToRetrieve'] = $attributesToRetrieve;\n+    $autocompleteApiKeyParams['attributesToRetrieve'] = $attributesToRetrieve;\n+}\n+\n+/**\n+ * Add custom instantsearch filter restrictions into $instantsearchApiKeyParams['filters'] variable\n+ * Docs: https://www.algolia.com/doc/api-client/php/api-keys#generate-key","path":"app/design/frontend/base/default/template/algoliasearch/internals/configuration.phtml","position":null,"original_position":14,"commit_id":"4c85046d43391056150d0981450c67ca15cf33bd","original_commit_id":"c6108907f22abcea165f57b67617c5c8f34777a8","user":{"login":"maxiloc","id":1689007,"avatar_url":"https://avatars.githubusercontent.com/u/1689007?v=3","gravatar_id":"","url":"https://api.github.com/users/maxiloc","html_url":"https://github.com/maxiloc","followers_url":"https://api.github.com/users/maxiloc/followers","following_url":"https://api.github.com/users/maxiloc/following{/other_user}","gists_url":"https://api.github.com/users/maxiloc/gists{/gist_id}","starred_url":"https://api.github.com/users/maxiloc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxiloc/subscriptions","organizations_url":"https://api.github.com/users/maxiloc/orgs","repos_url":"https://api.github.com/users/maxiloc/repos","events_url":"https://api.github.com/users/maxiloc/events{/privacy}","received_events_url":"https://api.github.com/users/maxiloc/received_events","type":"User","site_admin":false},"body":"My point is looking at the code right now I don't get why I would use it. I agree the wording I use is not good 😄 ","created_at":"2016-09-30T14:08:56Z","updated_at":"2016-09-30T14:08:56Z","html_url":"https://github.com/algolia/algoliasearch-magento/pull/604#discussion_r81345592","pull_request_url":"https://api.github.com/repos/algolia/algoliasearch-magento/pulls/604","_links":{"self":{"href":"https://api.github.com/repos/algolia/algoliasearch-magento/pulls/comments/81345592"},"html":{"href":"https://github.com/algolia/algoliasearch-magento/pull/604#discussion_r81345592"},"pull_request":{"href":"https://api.github.com/repos/algolia/algoliasearch-magento/pulls/604"}}},"pull_request":{"url":"https://api.github.com/repos/algolia/algoliasearch-magento/pulls/604","id":87326620,"html_url":"https://github.com/algolia/algoliasearch-magento/pull/604","diff_url":"https://github.com/algolia/algoliasearch-magento/pull/604.diff","patch_url":"https://github.com/algolia/algoliasearch-magento/pull/604.patch","issue_url":"https://api.github.com/repos/algolia/algoliasearch-magento/issues/604","number":604,"state":"open","locked":false,"title":"New secured API keys","user":{"login":"JanPetr","id":1058144,"avatar_url":"https://avatars.githubusercontent.com/u/1058144?v=3","gravatar_id":"","url":"https://api.github.com/users/JanPetr","html_url":"https://github.com/JanPetr","followers_url":"https://api.github.com/users/JanPetr/followers","following_url":"https://api.github.com/users/JanPetr/following{/other_user}","gists_url":"https://api.github.com/users/JanPetr/gists{/gist_id}","starred_url":"https://api.github.com/users/JanPetr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanPetr/subscriptions","organizations_url":"https://api.github.com/users/JanPetr/orgs","repos_url":"https://api.github.com/users/JanPetr/repos","events_url":"https://api.github.com/users/JanPetr/events{/privacy}","received_events_url":"https://api.github.com/users/JanPetr/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-29T14:40:25Z","updated_at":"2016-09-30T14:08:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf6083065c573504cbb5513c6c73021b2ffa679b","assignee":{"login":"maxiloc","id":1689007,"avatar_url":"https://avatars.githubusercontent.com/u/1689007?v=3","gravatar_id":"","url":"https://api.github.com/users/maxiloc","html_url":"https://github.com/maxiloc","followers_url":"https://api.github.com/users/maxiloc/followers","following_url":"https://api.github.com/users/maxiloc/following{/other_user}","gists_url":"https://api.github.com/users/maxiloc/gists{/gist_id}","starred_url":"https://api.github.com/users/maxiloc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxiloc/subscriptions","organizations_url":"https://api.github.com/users/maxiloc/orgs","repos_url":"https://api.github.com/users/maxiloc/repos","events_url":"https://api.github.com/users/maxiloc/events{/privacy}","received_events_url":"https://api.github.com/users/maxiloc/received_events","type":"User","site_admin":false},"assignees":[{"login":"maxiloc","id":1689007,"avatar_url":"https://avatars.githubusercontent.com/u/1689007?v=3","gravatar_id":"","url":"https://api.github.com/users/maxiloc","html_url":"https://github.com/maxiloc","followers_url":"https://api.github.com/users/maxiloc/followers","following_url":"https://api.github.com/users/maxiloc/following{/other_user}","gists_url":"https://api.github.com/users/maxiloc/gists{/gist_id}","starred_url":"https://api.github.com/users/maxiloc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxiloc/subscriptions","organizations_url":"https://api.github.com/users/maxiloc/orgs","repos_url":"https://api.github.com/users/maxiloc/repos","events_url":"https://api.github.com/users/maxiloc/events{/privacy}","received_events_url":"https://api.github.com/users/maxiloc/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/algolia/algoliasearch-magento/pulls/604/commits","review_comments_url":"https://api.github.com/repos/algolia/algoliasearch-magento/pulls/604/comments","review_comment_url":"https://api.github.com/repos/algolia/algoliasearch-magento/pulls/comments{/number}","comments_url":"https://api.github.com/repos/algolia/algoliasearch-magento/issues/604/comments","statuses_url":"https://api.github.com/repos/algolia/algoliasearch-magento/statuses/4c85046d43391056150d0981450c67ca15cf33bd","head":{"label":"algolia:fix_api_keys","ref":"fix_api_keys","sha":"4c85046d43391056150d0981450c67ca15cf33bd","user":{"login":"algolia","id":2034458,"avatar_url":"https://avatars.githubusercontent.com/u/2034458?v=3","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"repo":{"id":16968096,"name":"algoliasearch-magento","full_name":"algolia/algoliasearch-magento","owner":{"login":"algolia","id":2034458,"avatar_url":"https://avatars.githubusercontent.com/u/2034458?v=3","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/algolia/algoliasearch-magento","description":"Magento AlgoliaSearch integration","fork":false,"url":"https://api.github.com/repos/algolia/algoliasearch-magento","forks_url":"https://api.github.com/repos/algolia/algoliasearch-magento/forks","keys_url":"https://api.github.com/repos/algolia/algoliasearch-magento/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algolia/algoliasearch-magento/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algolia/algoliasearch-magento/teams","hooks_url":"https://api.github.com/repos/algolia/algoliasearch-magento/hooks","issue_events_url":"https://api.github.com/repos/algolia/algoliasearch-magento/issues/events{/number}","events_url":"https://api.github.com/repos/algolia/algoliasearch-magento/events","assignees_url":"https://api.github.com/repos/algolia/algoliasearch-magento/assignees{/user}","branches_url":"https://api.github.com/repos/algolia/algoliasearch-magento/branches{/branch}","tags_url":"https://api.github.com/repos/algolia/algoliasearch-magento/tags","blobs_url":"https://api.github.com/repos/algolia/algoliasearch-magento/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algolia/algoliasearch-magento/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algolia/algoliasearch-magento/git/refs{/sha}","trees_url":"https://api.github.com/repos/algolia/algoliasearch-magento/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algolia/algoliasearch-magento/statuses/{sha}","languages_url":"https://api.github.com/repos/algolia/algoliasearch-magento/languages","stargazers_url":"https://api.github.com/repos/algolia/algoliasearch-magento/stargazers","contributors_url":"https://api.github.com/repos/algolia/algoliasearch-magento/contributors","subscribers_url":"https://api.github.com/repos/algolia/algoliasearch-magento/subscribers","subscription_url":"https://api.github.com/repos/algolia/algoliasearch-magento/subscription","commits_url":"https://api.github.com/repos/algolia/algoliasearch-magento/commits{/sha}","git_commits_url":"https://api.github.com/repos/algolia/algoliasearch-magento/git/commits{/sha}","comments_url":"https://api.github.com/repos/algolia/algoliasearch-magento/comments{/number}","issue_comment_url":"https://api.github.com/repos/algolia/algoliasearch-magento/issues/comments{/number}","contents_url":"https://api.github.com/repos/algolia/algoliasearch-magento/contents/{+path}","compare_url":"https://api.github.com/repos/algolia/algoliasearch-magento/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algolia/algoliasearch-magento/merges","archive_url":"https://api.github.com/repos/algolia/algoliasearch-magento/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algolia/algoliasearch-magento/downloads","issues_url":"https://api.github.com/repos/algolia/algoliasearch-magento/issues{/number}","pulls_url":"https://api.github.com/repos/algolia/algoliasearch-magento/pulls{/number}","milestones_url":"https://api.github.com/repos/algolia/algoliasearch-magento/milestones{/number}","notifications_url":"https://api.github.com/repos/algolia/algoliasearch-magento/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algolia/algoliasearch-magento/labels{/name}","releases_url":"https://api.github.com/repos/algolia/algoliasearch-magento/releases{/id}","deployments_url":"https://api.github.com/repos/algolia/algoliasearch-magento/deployments","created_at":"2014-02-18T23:49:42Z","updated_at":"2016-09-23T15:02:13Z","pushed_at":"2016-09-30T13:58:04Z","git_url":"git://github.com/algolia/algoliasearch-magento.git","ssh_url":"git@github.com:algolia/algoliasearch-magento.git","clone_url":"https://github.com/algolia/algoliasearch-magento.git","svn_url":"https://github.com/algolia/algoliasearch-magento","homepage":"https://community.algolia.com/magento","size":80883,"stargazers_count":105,"watchers_count":105,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":19,"forks":68,"open_issues":19,"watchers":105,"default_branch":"master"}},"base":{"label":"algolia:develop","ref":"develop","sha":"54c0a114d16d9a21b2280877b6001af41492d717","user":{"login":"algolia","id":2034458,"avatar_url":"https://avatars.githubusercontent.com/u/2034458?v=3","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"repo":{"id":16968096,"name":"algoliasearch-magento","full_name":"algolia/algoliasearch-magento","owner":{"login":"algolia","id":2034458,"avatar_url":"https://avatars.githubusercontent.com/u/2034458?v=3","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/algolia/algoliasearch-magento","description":"Magento AlgoliaSearch integration","fork":false,"url":"https://api.github.com/repos/algolia/algoliasearch-magento","forks_url":"https://api.github.com/repos/algolia/algoliasearch-magento/forks","keys_url":"https://api.github.com/repos/algolia/algoliasearch-magento/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algolia/algoliasearch-magento/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algolia/algoliasearch-magento/teams","hooks_url":"https://api.github.com/repos/algolia/algoliasearch-magento/hooks","issue_events_url":"https://api.github.com/repos/algolia/algoliasearch-magento/issues/events{/number}","events_url":"https://api.github.com/repos/algolia/algoliasearch-magento/events","assignees_url":"https://api.github.com/repos/algolia/algoliasearch-magento/assignees{/user}","branches_url":"https://api.github.com/repos/algolia/algoliasearch-magento/branches{/branch}","tags_url":"https://api.github.com/repos/algolia/algoliasearch-magento/tags","blobs_url":"https://api.github.com/repos/algolia/algoliasearch-magento/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algolia/algoliasearch-magento/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algolia/algoliasearch-magento/git/refs{/sha}","trees_url":"https://api.github.com/repos/algolia/algoliasearch-magento/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algolia/algoliasearch-magento/statuses/{sha}","languages_url":"https://api.github.com/repos/algolia/algoliasearch-magento/languages","stargazers_url":"https://api.github.com/repos/algolia/algoliasearch-magento/stargazers","contributors_url":"https://api.github.com/repos/algolia/algoliasearch-magento/contributors","subscribers_url":"https://api.github.com/repos/algolia/algoliasearch-magento/subscribers","subscription_url":"https://api.github.com/repos/algolia/algoliasearch-magento/subscription","commits_url":"https://api.github.com/repos/algolia/algoliasearch-magento/commits{/sha}","git_commits_url":"https://api.github.com/repos/algolia/algoliasearch-magento/git/commits{/sha}","comments_url":"https://api.github.com/repos/algolia/algoliasearch-magento/comments{/number}","issue_comment_url":"https://api.github.com/repos/algolia/algoliasearch-magento/issues/comments{/number}","contents_url":"https://api.github.com/repos/algolia/algoliasearch-magento/contents/{+path}","compare_url":"https://api.github.com/repos/algolia/algoliasearch-magento/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algolia/algoliasearch-magento/merges","archive_url":"https://api.github.com/repos/algolia/algoliasearch-magento/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algolia/algoliasearch-magento/downloads","issues_url":"https://api.github.com/repos/algolia/algoliasearch-magento/issues{/number}","pulls_url":"https://api.github.com/repos/algolia/algoliasearch-magento/pulls{/number}","milestones_url":"https://api.github.com/repos/algolia/algoliasearch-magento/milestones{/number}","notifications_url":"https://api.github.com/repos/algolia/algoliasearch-magento/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algolia/algoliasearch-magento/labels{/name}","releases_url":"https://api.github.com/repos/algolia/algoliasearch-magento/releases{/id}","deployments_url":"https://api.github.com/repos/algolia/algoliasearch-magento/deployments","created_at":"2014-02-18T23:49:42Z","updated_at":"2016-09-23T15:02:13Z","pushed_at":"2016-09-30T13:58:04Z","git_url":"git://github.com/algolia/algoliasearch-magento.git","ssh_url":"git@github.com:algolia/algoliasearch-magento.git","clone_url":"https://github.com/algolia/algoliasearch-magento.git","svn_url":"https://github.com/algolia/algoliasearch-magento","homepage":"https://community.algolia.com/magento","size":80883,"stargazers_count":105,"watchers_count":105,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":19,"forks":68,"open_issues":19,"watchers":105,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/algolia/algoliasearch-magento/pulls/604"},"html":{"href":"https://github.com/algolia/algoliasearch-magento/pull/604"},"issue":{"href":"https://api.github.com/repos/algolia/algoliasearch-magento/issues/604"},"comments":{"href":"https://api.github.com/repos/algolia/algoliasearch-magento/issues/604/comments"},"review_comments":{"href":"https://api.github.com/repos/algolia/algoliasearch-magento/pulls/604/comments"},"review_comment":{"href":"https://api.github.com/repos/algolia/algoliasearch-magento/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/algolia/algoliasearch-magento/pulls/604/commits"},"statuses":{"href":"https://api.github.com/repos/algolia/algoliasearch-magento/statuses/4c85046d43391056150d0981450c67ca15cf33bd"}}}}
{"actor":{"display_login":"maxiloc"}}