Skip to content

v0.2.0

Compare
Choose a tag to compare
@waza-ari waza-ari released this 15 Jan 17:55
· 75 commits to main since this release
ede8966

Features

✨ Add support for pagination by adding the page parameter to get() CRUD methods
✨ Add support for resource filtering, by adding Pydantic Filter models and extending CRUD methods to accept an additional parameter containing the filter method

Breaking Changes

🔥 Both the get() and get_deleted() method now return a tuple instead of a simple list of resources. The tuple contains the list of resources as before as first element and the total number of resources (without pagination applied) as second return statement.

You'll need to change usage of those methods, either by making use of the additional return value or by changing the call:

# BEFORE
members = ev.member.get()

# NEW (preferred)
members, total_count = ev.member.get()

# NEW, if return value not needed
members = ev.member.get()[0]

# Alternative, quite common but discouraged:
members, _ = ev.member.get()