Skip to content

Releases: onecodex/chrononaut

v0.4.1

27 Apr 13:49
ba44c4a
Compare
Choose a tag to compare

This release patches a bug sometimes occurring in the diff method.

v0.4.0

11 Oct 13:26
5ada26b
Compare
Choose a tag to compare

This release reinstates the original diff method signature from versions 0.2.2 and earlier. It also adds supplementary diff_timestamps and diff_versions methods for all the different diffing needs.

v0.3.0

09 Jun 13:20
f65de3a
Compare
Choose a tag to compare

This release changes the way the historic data is being stored. Instead of copying the versioned tables, a single table is introduced which stores the records from all versioned tables. The historic record versions are stored as JSON snapshots.
This release also introduces tracking insert operations alongside the updates.

Fix deferred model resolution bug

05 Apr 23:05
Compare
Choose a tag to compare
  • Fixes deferred model resolution (#10)

Configurable transfer of indices and validators to history tables

23 Jan 21:33
Compare
Choose a tag to compare
  • #6 Previously, all column indices were transferred to history tables. Now, certain columns can be excluded by setting them as, e.g., __chrononaut_disable_indices__ = ['col1', 'col2'] on the model.
  • #9 Previously, validators were sometimes transferred to history tables and sometimes not. Copying validators over to the history tables is not a desired behavior, since validators can change over the course of time. Now, validators are not copied by default unless the __chrononaut_copy_validators__ flag is set on the model.

v0.2.2

18 Jan 01:15
Compare
Choose a tag to compare
  • #7 Addresses issue where primary key collisions can occur in chrononaut history tables. Allows users to set new __chrononaut_primary_key_nonunique__ flag in model definitions.

v0.2.1

18 Jan 05:38
Compare
Choose a tag to compare
  • Improves efficiency of .versions(after=X, before=Y) method for models with both a RecordChanges and Versioned mixin

v0.2.0

17 Jan 23:24
Compare
Choose a tag to compare

This release includes the following features (as well as some general code re-organization for cleanliness):

  • A new RecordChanges mixin for inserting a change_info and changed column directly into application models (vs. distinct history tables)

  • A simple rationale context manager for simplified rationales when working, e.g., in an application console:

    with rationale('The user asked me to!'):
        user.email = 'updated@example.com'
        session.commit()

v0.1.1

30 Nov 04:11
Compare
Choose a tag to compare

This release includes:

  • An append_change_info context manager (for legacy backwards compatibility, as well as the ability to mark changes for a single object rather than within a context/commit block)
  • The ability to set custom change info recording via a function specified in the Flask config CHRONONAUT_EXTRA_CHANGE_INFO_FUNC variable – this removes the need to subclass Versioned for simply adding extra change information. Note the interface for this feature is likely unstable and may be broken as soon as v0.2.0.
  • Some general code cleanup and renaming

Initial release!

19 Apr 18:42
Compare
Choose a tag to compare
v0.1.0

Initial v0.1.0 release of Chrononaut