Skip to content

Releases

v1.1.0

Choose a tag to compare

@victoraugusto6 victoraugusto6 released this 30 Nov 18:06

Changes

  • Read the archive files written before a field changed type (#8). Each file is read with its own column types, and the files of a page are joined into a type that fits all of them, so a page that mixes them no longer fails with "could not be read". Date and datetime columns follow the current field, text in a field that is now a number or a boolean is converted, and a value the field no longer converts is shown as it is in the file instead of failing the page. The detail also shows the columns of fields removed from the model.
  • Stop the archive policies that no longer match their models (#10). A policy whose saved schema, filter or ordering no longer matches its model (a changed type, a removed or renamed field, an unsupported type, or a removed model) is not archived until it is saved again in the admin, so rows are never archived with an old type. The admin form rejects a filter or ordering field that left the model, and the policy of a removed model can be deactivated.
  • New database system check parquet_archive.W001, a warning about those policies in migrate (before the migrations), in the test runner and in check --database.

Behaviour changes

  • archive_tables and index_files no longer stop at the first table that fails: the other tables are still processed, and ArchiveError lists the failed ones at the end. A celery soft time limit still stops the run right away.
  • A policy created by a data migration with a column type different from the one the admin shows for that field is no longer archived until it is saved again. See Changes in the model in the README.
  • No new migrations.

PyPI: https://pypi.org/project/django-parquet-archive/1.1.0/

Full Changelog: v1.0.0...v1.1.0

v1.0.0

Choose a tag to compare

@victoraugusto6 victoraugusto6 released this 23 Nov 15:35

v0.2.1

Choose a tag to compare

@victoraugusto6 victoraugusto6 released this 12 Nov 19:56

What's Changed

  • Região do S3 deixada para o polars quando o storage não configura uma by @victoraugusto6 in #7

Full Changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@victoraugusto6 victoraugusto6 released this 11 Nov 19:29

Changes

  • Replace the daily folders with an index of the archive files
  • Show an error instead of failing when an indexed archive file cannot be read
  • Index the archive files automatically when the admin needs them

Breaking changes

  • partition_field (daily folders) was removed. The admin now picks the files of each page from an index in the database, by the first field of the policy ordering when it is a non-null date of the model.
  • Run python manage.py migrate parquet_archive after upgrading. The files already archived are indexed the first time the archive is listed in the admin (it needs a celery worker), or right away with the parquet_archive.index_files task.

See Upgrading from 0.1 in the README.

PyPI: https://pypi.org/project/django-parquet-archive/0.2.0/

Full Changelog: v0.1.4...v0.2.0

v0.1.4

Choose a tag to compare

@victoraugusto6 victoraugusto6 released this 06 Nov 19:58

Changes

  • Publish to PyPI on GitHub release instead of tag push

PyPI: https://pypi.org/project/django-parquet-archive/0.1.4/

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

v0.1.3

Choose a tag to compare

@github-actions github-actions released this 06 Nov 19:33

Changes

  • Point the project URLs to onidata and drop the personal author name

PyPI: https://pypi.org/project/django-parquet-archive/0.1.3/

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

v0.1.2

Choose a tag to compare

@github-actions github-actions released this 10 Oct 00:58

Changes

  • Add authors, classifiers and changelog URL to the package metadata
  • Check the tag version and create the GitHub release on publish
  • Add Dependabot for GitHub Actions and the uv lock file
  • Bump the github-actions group with 4 updates
  • Bump polars from 1.44.2 to 2.0.0 in the uv group

PyPI: https://pypi.org/project/django-parquet-archive/0.1.2/

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

v0.1.1

Choose a tag to compare

@victoraugusto6 victoraugusto6 released this 10 Oct 00:36

Changes

  • Add PyPI, Python, Django, CI and license badges to the README

PyPI: https://pypi.org/project/django-parquet-archive/0.1.1/

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

v0.1.0

Choose a tag to compare

@victoraugusto6 victoraugusto6 released this 10 Oct 00:47

Changes

  • Create Django library to archive old table rows to parquet files
  • Rename the data source filter parameter to data_source

PyPI: https://pypi.org/project/django-parquet-archive/0.1.0/