Skip to content

1.16.0

Compare
Choose a tag to compare
@julienbourdeau julienbourdeau released this 07 Jun 14:49
1098048

🎉 Note to contributors:
Everybody is now able to run the test on Travis, since we moved to temporary credentials.️ ⤵️
https://blog.algolia.com/travis-encrypted-variables-external-contributions/

  • Deprecation: Keys should not be managed at the Index level but at the Client level

    All methods Index.(list|get|add|update)_api_keys() are now
    deprecated. If you already have keys on the Index, it would be best
    to delete them and regenerate new keys with client, adding the indexes
    restriction.

    Example:

    client.add_api_key({
        'acl': 'search',
        'indexes': 'my_index_name',
    })
  • Feat: Let you define all API keys capabilities in one map for update_api_key and add_api_key

    Example:

    client.add_api_key({
        'acl': ['search'],
        'validity': 300,
        'maxQueriesPerIPPerHour': 100,
        'maxHitsPerQuery': 20,
        'indexes': ['dev_*'],
        'referers': ['algolia.com/*'],
        'queryParameters': 'typoTolerance=strict&ignorePlurals=false',
        'description': 'Limited search only API key for algolia.com'
    })

    instead of

    client.add_api_key(['search'], 300, 100, 20, ['dev_*'])
  • Fix: Adding a rule with an empty ID failed silently, it will now raise an exception

  • Fix: Index.get_objects requires an array for attributes_to_retrieve
    strings could be passed before but it would fail silently every time
    See #299

  • Fix: When browsing, ensure cursor is passed in the body
    Cursor can become so long that the generated URL fails (error HTTP 414).

  • Chore: Add Python version to the UserAgent