Skip to content

Releases: wallneradam/esorm

v0.4.5

22 May 09:05
Compare
Choose a tag to compare

Support for typing.Literal

v0.4.4

18 May 15:20
Compare
Choose a tag to compare

Fixed index template

  • The default prefix now really "esorm_"
  • No more fixed "-" prefix separator
  • Now it works as it is in the documentation
  • Replaced the deprecated method for creating index templates in newer ESs
  • Test for index templates
  • Improved tests

v0.4.3

07 May 16:00
Compare
Choose a tag to compare

Fix: get method is static method, so it is not compatible with model's routing

v0.4.2

07 May 15:06
Compare
Choose a tag to compare
  • Fixed get method when id field is an integer.
  • Test for integer ids
  • Test for property ids

v0.4.1

07 May 11:43
Compare
Choose a tag to compare
  • Retry on conflict decorator to automatically retry conflicted operations
  • Simplified ESModelTimestamp save. The logic is simple now: created_at is filled only if it is a new model instance (created_at is None).

v0.4.0

07 May 07:53
Compare
Choose a tag to compare

Support for Optimistic Concurrency Check (OCC)

  • It uses _primary_term and _seq_no for save operations to ensure consistency
  • The ES private fields are accessible through the model (_version, _primary_term, _seq_no)
  • _id and private fields are stored after save
  • Bulk operations uses OCC too
  • Bulk operations raise BulkError, which stores all documents which had errors
  • New documents of ESModelTimestamp with bulk operations will have created_at filled automatically
  • Reload documents
  • Fixed routing for delete operation
  • Improved documentation

v0.3.2

03 May 19:06
Compare
Choose a tag to compare
  • Lazy properties are now work with ESBaseModel too
  • Lazy properties are now supports nested documents (truly recursive)
  • Python 3.8 support back

v0.3.1

29 Apr 12:26
Compare
Choose a tag to compare

The most important change is to introduce ESBaseModel.

Full Changelog: v0.3.0...v0.3.1

v0.3.0

25 Jan 12:20
Compare
Choose a tag to compare
  • Replaced deprecated datetime.utcnow
  • .all() method for getting all documents in an index
  • Reworked lazy properties, which has recursion protection
  • Improved documentation:
    • pagination and sorting
    • added advanced.md, which contains advanced features documentation
    • Fixed dark mode colors of reference
  • Improved unit tests

v0.2.1

22 Jan 17:36
Compare
Choose a tag to compare

Aggregation TypeDicts are refactored.