{"action":"created","comment":{"url":"https://api.github.com/repos/algolia/algoliasearch-client-python/pulls/comments/233512075","pull_request_review_id":174942776,"id":233512075,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzUxMjA3NQ==","diff_hunk":"@@ -613,6 +613,24 @@ def batch_synonyms(self, synonyms, forward_to_slaves=False,\n \n         return self._req(False, '/synonyms/batch', 'POST', request_options, params, synonyms)\n \n+    def replace_all_synonyms(self, synonyms, request_options=None):\n+        \"\"\"\n+        Replace all synonyms in the index.\n+        @param synonyms the synonyms to upload as a python dictionary.\n+               the dictionary must contain an objectID key.\n+        \"\"\"\n+        for synonym in synonyms:\n+            if 'objectID' not in synonym:","path":"algoliasearch/index.py","position":11,"original_position":11,"commit_id":"b965cf7aa14d8549236255bef980c04cc5a0b857","original_commit_id":"b965cf7aa14d8549236255bef980c04cc5a0b857","user":{"login":"nunomaduro","id":5457236,"node_id":"MDQ6VXNlcjU0NTcyMzY=","avatar_url":"https://avatars2.githubusercontent.com/u/5457236?v=4","gravatar_id":"","url":"https://api.github.com/users/nunomaduro","html_url":"https://github.com/nunomaduro","followers_url":"https://api.github.com/users/nunomaduro/followers","following_url":"https://api.github.com/users/nunomaduro/following{/other_user}","gists_url":"https://api.github.com/users/nunomaduro/gists{/gist_id}","starred_url":"https://api.github.com/users/nunomaduro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nunomaduro/subscriptions","organizations_url":"https://api.github.com/users/nunomaduro/orgs","repos_url":"https://api.github.com/users/nunomaduro/repos","events_url":"https://api.github.com/users/nunomaduro/events{/privacy}","received_events_url":"https://api.github.com/users/nunomaduro/received_events","type":"User","site_admin":false},"body":"Make it one line.","created_at":"2018-11-14T16:08:42Z","updated_at":"2018-11-14T16:39:24Z","html_url":"https://github.com/algolia/algoliasearch-client-python/pull/390#discussion_r233512075","pull_request_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/pulls/390","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-python/pulls/comments/233512075"},"html":{"href":"https://github.com/algolia/algoliasearch-client-python/pull/390#discussion_r233512075"},"pull_request":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-python/pulls/390"}}},"pull_request":{"url":"https://api.github.com/repos/algolia/algoliasearch-client-python/pulls/390","id":229736446,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5NzM2NDQ2","html_url":"https://github.com/algolia/algoliasearch-client-python/pull/390","diff_url":"https://github.com/algolia/algoliasearch-client-python/pull/390.diff","patch_url":"https://github.com/algolia/algoliasearch-client-python/pull/390.patch","issue_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/issues/390","number":390,"state":"open","locked":false,"title":"Adds replace_all_rules and replace_all_synonims","user":{"login":"nunomaduro","id":5457236,"node_id":"MDQ6VXNlcjU0NTcyMzY=","avatar_url":"https://avatars2.githubusercontent.com/u/5457236?v=4","gravatar_id":"","url":"https://api.github.com/users/nunomaduro","html_url":"https://github.com/nunomaduro","followers_url":"https://api.github.com/users/nunomaduro/followers","following_url":"https://api.github.com/users/nunomaduro/following{/other_user}","gists_url":"https://api.github.com/users/nunomaduro/gists{/gist_id}","starred_url":"https://api.github.com/users/nunomaduro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nunomaduro/subscriptions","organizations_url":"https://api.github.com/users/nunomaduro/orgs","repos_url":"https://api.github.com/users/nunomaduro/repos","events_url":"https://api.github.com/users/nunomaduro/events{/privacy}","received_events_url":"https://api.github.com/users/nunomaduro/received_events","type":"User","site_admin":false},"body":"| Q                 | A\r\n| ----------------- | ----------\r\n| Bug fix?          | no\r\n| New feature?      | yes\r\n| BC breaks?        | no     \r\n| Need Doc update   | yes\r\n\r\n\r\n## Describe your change\r\n\r\nAdds methods `replace_all_rules` and `replace_all_synonims`.\r\n","created_at":"2018-11-09T15:52:18Z","updated_at":"2018-11-14T16:39:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1bdc0d59f7aedaf29d0619bac255bf66610c5392","assignee":null,"assignees":[],"requested_reviewers":[{"login":"julienbourdeau","id":1525636,"node_id":"MDQ6VXNlcjE1MjU2MzY=","avatar_url":"https://avatars1.githubusercontent.com/u/1525636?v=4","gravatar_id":"","url":"https://api.github.com/users/julienbourdeau","html_url":"https://github.com/julienbourdeau","followers_url":"https://api.github.com/users/julienbourdeau/followers","following_url":"https://api.github.com/users/julienbourdeau/following{/other_user}","gists_url":"https://api.github.com/users/julienbourdeau/gists{/gist_id}","starred_url":"https://api.github.com/users/julienbourdeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienbourdeau/subscriptions","organizations_url":"https://api.github.com/users/julienbourdeau/orgs","repos_url":"https://api.github.com/users/julienbourdeau/repos","events_url":"https://api.github.com/users/julienbourdeau/events{/privacy}","received_events_url":"https://api.github.com/users/julienbourdeau/received_events","type":"User","site_admin":false},{"login":"aseure","id":3115191,"node_id":"MDQ6VXNlcjMxMTUxOTE=","avatar_url":"https://avatars3.githubusercontent.com/u/3115191?v=4","gravatar_id":"","url":"https://api.github.com/users/aseure","html_url":"https://github.com/aseure","followers_url":"https://api.github.com/users/aseure/followers","following_url":"https://api.github.com/users/aseure/following{/other_user}","gists_url":"https://api.github.com/users/aseure/gists{/gist_id}","starred_url":"https://api.github.com/users/aseure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aseure/subscriptions","organizations_url":"https://api.github.com/users/aseure/orgs","repos_url":"https://api.github.com/users/aseure/repos","events_url":"https://api.github.com/users/aseure/events{/privacy}","received_events_url":"https://api.github.com/users/aseure/received_events","type":"User","site_admin":false},{"login":"Ant-hem","id":22633119,"node_id":"MDQ6VXNlcjIyNjMzMTE5","avatar_url":"https://avatars3.githubusercontent.com/u/22633119?v=4","gravatar_id":"","url":"https://api.github.com/users/Ant-hem","html_url":"https://github.com/Ant-hem","followers_url":"https://api.github.com/users/Ant-hem/followers","following_url":"https://api.github.com/users/Ant-hem/following{/other_user}","gists_url":"https://api.github.com/users/Ant-hem/gists{/gist_id}","starred_url":"https://api.github.com/users/Ant-hem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ant-hem/subscriptions","organizations_url":"https://api.github.com/users/Ant-hem/orgs","repos_url":"https://api.github.com/users/Ant-hem/repos","events_url":"https://api.github.com/users/Ant-hem/events{/privacy}","received_events_url":"https://api.github.com/users/Ant-hem/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/pulls/390/commits","review_comments_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/pulls/390/comments","review_comment_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/issues/390/comments","statuses_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/statuses/b965cf7aa14d8549236255bef980c04cc5a0b857","head":{"label":"algolia:feat/adds-replace-rules-and-replace-synonims","ref":"feat/adds-replace-rules-and-replace-synonims","sha":"b965cf7aa14d8549236255bef980c04cc5a0b857","user":{"login":"algolia","id":2034458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzQ0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2034458?v=4","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":10221096,"node_id":"MDEwOlJlcG9zaXRvcnkxMDIyMTA5Ng==","name":"algoliasearch-client-python","full_name":"algolia/algoliasearch-client-python","private":false,"owner":{"login":"algolia","id":2034458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzQ0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2034458?v=4","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},"html_url":"https://github.com/algolia/algoliasearch-client-python","description":"Algolia Search API Client for Python","fork":false,"url":"https://api.github.com/repos/algolia/algoliasearch-client-python","forks_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/forks","keys_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/teams","hooks_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/hooks","issue_events_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/issues/events{/number}","events_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/events","assignees_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/assignees{/user}","branches_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/branches{/branch}","tags_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/tags","blobs_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/statuses/{sha}","languages_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/languages","stargazers_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/stargazers","contributors_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/contributors","subscribers_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/subscribers","subscription_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/subscription","commits_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/contents/{+path}","compare_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/merges","archive_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/downloads","issues_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/issues{/number}","pulls_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/pulls{/number}","milestones_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/milestones{/number}","notifications_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/labels{/name}","releases_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/releases{/id}","deployments_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/deployments","created_at":"2013-05-22T13:57:40Z","updated_at":"2018-11-13T09:22:50Z","pushed_at":"2018-11-14T16:39:22Z","git_url":"git://github.com/algolia/algoliasearch-client-python.git","ssh_url":"git@github.com:algolia/algoliasearch-client-python.git","clone_url":"https://github.com/algolia/algoliasearch-client-python.git","svn_url":"https://github.com/algolia/algoliasearch-client-python","homepage":"https://www.algolia.com/","size":1218,"stargazers_count":94,"watchers_count":94,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"archived":false,"open_issues_count":34,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":35,"open_issues":34,"watchers":94,"default_branch":"master"}},"base":{"label":"algolia:master","ref":"master","sha":"d12ea5ae4d0d4e8dde71b5a5a7222b5f74876362","user":{"login":"algolia","id":2034458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzQ0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2034458?v=4","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":10221096,"node_id":"MDEwOlJlcG9zaXRvcnkxMDIyMTA5Ng==","name":"algoliasearch-client-python","full_name":"algolia/algoliasearch-client-python","private":false,"owner":{"login":"algolia","id":2034458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzQ0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2034458?v=4","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},"html_url":"https://github.com/algolia/algoliasearch-client-python","description":"Algolia Search API Client for Python","fork":false,"url":"https://api.github.com/repos/algolia/algoliasearch-client-python","forks_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/forks","keys_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/teams","hooks_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/hooks","issue_events_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/issues/events{/number}","events_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/events","assignees_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/assignees{/user}","branches_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/branches{/branch}","tags_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/tags","blobs_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/statuses/{sha}","languages_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/languages","stargazers_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/stargazers","contributors_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/contributors","subscribers_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/subscribers","subscription_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/subscription","commits_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/contents/{+path}","compare_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/merges","archive_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/downloads","issues_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/issues{/number}","pulls_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/pulls{/number}","milestones_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/milestones{/number}","notifications_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/labels{/name}","releases_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/releases{/id}","deployments_url":"https://api.github.com/repos/algolia/algoliasearch-client-python/deployments","created_at":"2013-05-22T13:57:40Z","updated_at":"2018-11-13T09:22:50Z","pushed_at":"2018-11-14T16:39:22Z","git_url":"git://github.com/algolia/algoliasearch-client-python.git","ssh_url":"git@github.com:algolia/algoliasearch-client-python.git","clone_url":"https://github.com/algolia/algoliasearch-client-python.git","svn_url":"https://github.com/algolia/algoliasearch-client-python","homepage":"https://www.algolia.com/","size":1218,"stargazers_count":94,"watchers_count":94,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"archived":false,"open_issues_count":34,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":35,"open_issues":34,"watchers":94,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-python/pulls/390"},"html":{"href":"https://github.com/algolia/algoliasearch-client-python/pull/390"},"issue":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-python/issues/390"},"comments":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-python/issues/390/comments"},"review_comments":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-python/pulls/390/comments"},"review_comment":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-python/pulls/390/commits"},"statuses":{"href":"https://api.github.com/repos/algolia/algoliasearch-client-python/statuses/b965cf7aa14d8549236255bef980c04cc5a0b857"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"nunomaduro"}}