|
5 | 5 |
|
6 | 6 | <Contributors, please add your changes below this line> |
7 | 7 |
|
8 | | - |
| 8 | +### 1.16.0 - 2018-06-07 |
| 9 | + |
| 10 | +🎉 Note to contributors: |
| 11 | +Everybody is now able to run the test on Travis, since we moved to temporary credentials.️ ⤵️ |
| 12 | +https://blog.algolia.com/travis-encrypted-variables-external-contributions/ |
| 13 | + |
| 14 | +* **Deprecation**: Keys should not be managed at the Index level but at the Client level |
| 15 | + |
| 16 | + All methods `Index.(list|get|add|update)_api_keys()` are now |
| 17 | + deprecated. If you already have keys on the Index, it would be best |
| 18 | + to delete them and regenerate new keys with client, adding the `indexes` |
| 19 | + restriction. |
| 20 | + |
| 21 | + Example: |
| 22 | + ```python |
| 23 | + client.add_api_key({ |
| 24 | + 'acl': 'search', |
| 25 | + 'indexes': 'my_index_name', |
| 26 | + }) |
| 27 | + ``` |
| 28 | + |
| 29 | +* Feat: Let you define all API keys capabilities in one map for `update_api_key` and `add_api_key` |
| 30 | + |
| 31 | + Example: |
| 32 | + ```python |
| 33 | + client.add_api_key({ |
| 34 | + 'acl': ['search'], |
| 35 | + 'validity': 300, |
| 36 | + 'maxQueriesPerIPPerHour': 100, |
| 37 | + 'maxHitsPerQuery': 20, |
| 38 | + 'indexes': ['dev_*'], |
| 39 | + 'referers': ['algolia.com/*'], |
| 40 | + 'queryParameters': 'typoTolerance=strict&ignorePlurals=false', |
| 41 | + 'description': 'Limited search only API key for algolia.com' |
| 42 | + }) |
| 43 | + ``` |
| 44 | + instead of |
| 45 | + ```python |
| 46 | + client.add_api_key(['search'], 300, 100, 20, ['dev_*']) |
| 47 | + ``` |
| 48 | + |
| 49 | +* Fix: Adding a rule with an empty ID failed silently, it will now raise an exception |
| 50 | + |
| 51 | +* Fix: `Index.get_objects` requires an array for `attributes_to_retrieve` |
| 52 | + strings could be passed before but it would fail silently every time |
| 53 | + See [#299](https://github.com/algolia/algoliasearch-client-python/issues/299) |
| 54 | + |
| 55 | +* Fix: When browsing, ensure cursor is passed in the body |
| 56 | + Cursor can become so long that the generated URL fails (error HTTP 414). |
| 57 | + |
| 58 | +* Chore: Add Python version to the UserAgent |
| 59 | + |
9 | 60 | ### 1.15.3 - 2018-03-15 |
10 | 61 |
|
11 | 62 | * Remove the `[security]` flair of `requests` |
|
0 commit comments