Skip to content

Releases: arthurio/fastapi-filter

Update Fastapi latest supported version to 0.85

16 Sep 16:05
975ec6b
Compare
Choose a tag to compare

Main contribution

What's Changed

Full Changelog: v0.1.5...v0.1.6

Update Fastapi latest supported version to 0.84

15 Sep 01:26
ab1c3f4
Compare
Choose a tag to compare

Main contribution

What's Changed

Full Changelog: v0.1.4...v0.1.5

Update Fastapi latest supported version to 0.83

13 Sep 06:29
02a56b7
Compare
Choose a tag to compare

Main contribution

What's Changed

Full Changelog: v0.1.3...v0.1.4

Update Fastapi latest supported version to 0.82

31 Aug 02:55
2f30489
Compare
Choose a tag to compare

Main contribution

What's Changed

Full Changelog: v0.1.2...v0.1.3

Update Fastapi supported versions

23 Aug 17:03
01598ac
Compare
Choose a tag to compare

Main contribution

Dependency updates

Full Changelog: v0.1.1...v0.1.2

🐛 Bug fix - empty ordering

23 Jul 09:19
5b3486e
Compare
Choose a tag to compare

Main contribution

  • Support empty order_id= + perform validation for custom order_by field by @arthurio in #61

Bug fixes

  • Handle passing empty ?order_by=
  • Fix validator for custom ordering field names

Full Changelog: v0.1.0...v0.1.1

Merge ordering and filtering under the same class

23 Jul 06:58
adf48ca
Compare
Choose a tag to compare

🫱🏻‍🫲🏾 Main contributions

  • 📦 Move ordering inside the Filter class and update tests, docs, and examples by @arthurio in #58

✨ Updates

  • order_by is now part of the Filter class so that you don't have to manage them separately.
  • You can add a validator to restrict which fields can be sortable (returns a 422 if invalid as opposed to 500 before)
  • order_by is now a list[str] instead of str that you have to manually parse
  • Prevent using twice the same field name for ordering (e.g. can't do ?order_by=name,-name or ?order_by=name,age,name)
  • Docs are updated and order_by section has some stuff now
  • Added more tests
  • You can change the default name (order_by) for ordering by overriding Filter.Constants.ordering_field_name

🚨 Breaking changes

  • We now use Constants.model everywhere (instead of model for SQLAlchemy and collection for MongoEngine)
  • The Constants class has to inherit from parent or redefine all the fields. (class Constants(Filter.Constants):).
  • OrderBy no longer exists, just add order_by: list[str] | None to your filters if you want to add ordering capabilities.

🔗 Dependency updates

Full Changelog: v0.0.4...v0.1.0

Support top level prefixed filters

29 Jun 04:55
abb49f9
Compare
Choose a tag to compare

Main contributions

Features

  • You can now use FilterDepends(with_prefix("my_prefix", MyFilter), by_alias=True) to use a filter with a prefix in your routes.
    • by_alias parameter was added to FilterDepends
  • You can now filter related documents with mongoengine.

Breaking change

  • nested_filter has been renamed to with_prefix

Dependency updates

Full Changelog: v0.0.3...v0.0.4

🚀 First automated release

17 May 09:27
3ad11a4
Compare
Choose a tag to compare

Supported filters and order_by orms/odms

  • mongoengine
  • sqlalchemy