Merge ordering and filtering under the same class #59
arthurio
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🫱🏻🫲🏾 Main contributions
✨ Updates
order_by
is now part of the Filter class so that you don't have to manage them separately.order_by
is now alist[str]
instead ofstr
that you have to manually parse?order_by=name,-name
or?order_by=name,age,name
)order_by
section has some stuff noworder_by
) for ordering by overridingFilter.Constants.ordering_field_name
🚨 Breaking changes
Constants.model
everywhere (instead ofmodel
for SQLAlchemy andcollection
for MongoEngine)Constants
class has to inherit from parent or redefine all the fields. (class Constants(Filter.Constants):
).OrderBy
no longer exists, just addorder_by: list[str] | None
to your filters if you want to add ordering capabilities.🔗 Dependency updates
Full Changelog: v0.0.4...v0.1.0
This discussion was created from the release Merge ordering and filtering under the same class.
Beta Was this translation helpful? Give feedback.
All reactions