1.7.0 - 2020-07-21
Added
-
Functions for managing role assignment:
sdk.users.get_available_roles()
sdk.users.get_roles()
sdk.users.add_role()
sdk.users.remove_role()
-
__eq__
and__hash__
methods to thepy42.sdk.queries.query_filter.QueryFilter
class to enable easier comparison of filters -
__eq__
and__contains__
methods to thepy42.sdk.queries.query_filter.FilterGroup
class to enable easier comparison of and membership tests of filter groups
Changed
- When calling
__str__
or__iter__
on aFilterGroup
instance, the filter results haveset()
called on them to remove duplicate filters (if they exist) as well
as sorts the results. This enables comparing twoFilterGroup
s that might have been constructed differently but ultimately return the exact same results in a query. FilterGroup.filter_clause
property now has a setter, making it easy to change the clause on an existing filter group.
Removed
filter_clause
arg onFilterGroup.from_dict
method. The clause will automatically be derived from the dict itself.