Skip to content

Releases: NaturalHistoryMuseum/ckanext-versioned-datastore

v4.2.1

11 Apr 08:36
Compare
Choose a tag to compare

v4.2.1 (2023-04-11)

Build System(s)

  • fix postgres not loading when running tests in docker

Chores/Misc

  • add action to sync branches when commits are pushed to main

[main f746dce] bump: version 4.2.0 → 4.2.1
2 files changed, 12 insertions(+), 2 deletions(-)

v4.2.0

06 Mar 09:59
Compare
Choose a tag to compare

v4.2.0 (2023-03-06)

Feature

  • add helpers for displaying recent versions and readable dates

[main 9a89f0b] bump: version 4.1.1 → 4.2.0
2 files changed, 8 insertions(+), 2 deletions(-)

v4.1.1

20 Feb 11:09
Compare
Choose a tag to compare

v4.1.1 (2023-02-20)

Docs

  • fix api docs generation script

Style

  • reformat with prettier

Chores/Misc

  • small fixes to align with other extensions

[main 2e1c83d] bump: version 4.1.0 → 4.1.1
2 files changed, 16 insertions(+), 2 deletions(-)

v4.1.0

06 Feb 09:36
Compare
Choose a tag to compare

v4.1.0 (2023-02-06)

Feature

  • scroll long queries on download status page

Minor UI Changes

  • add refresh button to status page

[main c463ed0] bump: version 4.0.3 → 4.1.0
2 files changed, 12 insertions(+), 2 deletions(-)

v4.0.3

31 Jan 13:31
Compare
Choose a tag to compare

v4.0.3 (2023-01-31)

Docs

  • readme: change blob url to raw

[main f8d865f] bump: version 4.0.2 → 4.0.3
2 files changed, 8 insertions(+), 2 deletions(-)

v4.0.2

31 Jan 13:24
Compare
Choose a tag to compare

v4.0.2 (2023-01-31)

Docs

  • readme: direct link to logo in readme
  • readme: fix github actions badge

[main fce60d1] bump: version 4.0.1 → 4.0.2
2 files changed, 9 insertions(+), 2 deletions(-)

v4.0.1

31 Jan 09:40
Compare
Choose a tag to compare

v4.0.1 (2023-01-31)

Fix

  • strip the extra stuff from the email template

[main 2004304] bump: version 4.0.0 → 4.0.1
2 files changed, 8 insertions(+), 2 deletions(-)

v4.0.0

30 Jan 19:54
Compare
Choose a tag to compare

v4.0.0 (2023-01-30)

Breaking Changes

  • complete refactor of download system.

Feature

  • add new interface hook that runs after the download finishes
  • link doi directly to landing page
  • include current stage in error message
  • add doi to download status page
  • interfaces: allow plugins to modify download args and manifest
  • add button styling to download link
  • improve layout of download status page

Fix

  • downloads: refresh database models created in another session
  • stop excluding the record with the information
  • load transforms correctly
  • add derivative_gen status update to beginning of section
  • use FileNotFoundError when removing temp files
  • handle downloads where resource details are not available
  • remove cached package from context
  • remove temp files when download finishes
  • use update() method when updating status
  • show custom error message if download cannot be found
  • set rq timeout for downloads to 24h
  • allow objects to be null in avro schema
  • get a different schema for each resource + add more nesting
  • get detail for existing resources first
  • return a better error message
  • only search for records containing the resource count
  • return zero count if resource hasn't been counted yet
  • commit changes instead of saving if instance already in session
  • eager-load download relationships
  • download-status: only show resources with records
  • migrations: use .first() because there may be multiple records
  • downloads: don't return none if the downloads folder doesn't exist
  • return tuple from check_for_records
  • initialise core and derivative records earlier
  • downloads: exclude resources with 0 results
  • add alt text for total if None
  • migration: add defaults for file options
  • derivatives: add setup method to refresh writers
  • spell xlsx correctly
  • use makedirs to make intermediate folders if necessary
  • remove LESS_BIN for download-status-css

Refactor

  • add type hints to datastore_queue_download
  • move fixture into conftest.py
  • move tests into new folder structure
  • move test schemas into data folder

Docs

  • add a notice about v4 to the readme
  • add more interface methods to the readme
  • fix the migration filter
  • make docs generation compatible with py <3.9
  • add usage docs for downloads
  • remove duplicate param in docstring
  • exclude migration dir from API docs generation
  • enable permalinks
  • fix some comment wrapping
  • add docstring for get_schema

Style

  • fix comment line lengths

Tests

  • revert changes to test_downloads_runmanager
  • add new interface method for tests
  • fix get_schemas test
  • add tests for download plugin hooks
  • add more reusable patch methods
  • helpers: set scope for vds tables fixture to class
  • patch schemas, don't overwrite them
  • downloads: patch get_rounded_versions not SEARCH_HELPER
  • add tests for flatten_dict
  • add tests for filter_data_fields
  • add another resource to the test data, test ignore_empty properly
  • set emptyField to none
  • downloads: add more checks for download file content
  • helpers: move test data into separate file
  • downloads: add additional checks to download tests
  • downloads: add tests for dwc schema serialisation
  • downloads: add tests for notifiers
  • downloads: patch some parts of query_dois to test some dwc logic
  • clear download dir before running tests
  • downloads: patch url_for
  • helpers: give an exception if wait time exceeded
  • helpers: remove table dropping
  • downloads: add test for integration with query-dois
  • downloads: patch enqueue_job for the whole class
  • helpers: drop vds tables at end of test
  • downloads: add test for transformations
  • downloads: add more scenarios for download integration tests
  • helpers: yield created resource dict from vds resource fixture
  • helpers: make es/mongo clear fixture a teardown method
  • patch get_available_datastore_resources again
  • fix query test
  • helpers: add fixture to clear mongo and es
  • wait for data to be added to datastore
  • omit format arg when creating data, specify url
  • helpers: add sync enqueue mock that uses a thread
  • downloads: replace elasticsearch_scan fixture with patches
  • downloads: remove old download tests
  • downloads: remove unnecessary ES patches and duplicate tests
  • downloads: add tests for creating queries
  • add patch helpers for simple common patches
  • downloads: add test for download with filter query
  • downloads: add test for get_schema
  • downloads: add test that runs a basic download
  • downloads: add new tests for datastore_queue_download

Build System(s)

  • add migration dir to package-data
  • migration: add migration script for new download models
  • docker: use latest ckantest image tag
  • add query-dois and attribution as optional dependencies
  • source the test script
  • add fastavro dependency

CI System(s)

  • use bash not source, bump docker image version
  • source the test script in github actions too

Chores/Misc

  • remove incorrect tag
  • rename some tests
  • merge in new changes from dev
  • merge dev again to try and resolve conflicts
  • merge/reformat again
  • merge package metadata updates from dev

[main 1a8e695] bump: version 3.8.0 → 4.0.0
2 files changed, 146 insertions(+), 2 deletions(-)

v3.8.0

14 Dec 12:32
Compare
Choose a tag to compare

v3.8.0 (2022-12-14)

Feature

  • add more gbif dwc extensions
  • add the references extension
  • add vernacular name dwc extension

Fix

  • ignore fields that aren't in the dwc schema

[main 89adb03] bump: version 3.7.2 → 3.8.0
2 files changed, 14 insertions(+), 2 deletions(-)

v3.7.2

12 Dec 14:35
Compare
Choose a tag to compare

v3.7.2 (2022-12-12)

Docs

  • readme: add instruction to install lessc globally

Style

  • change quotes in setup.py to single quotes

Build System(s)

  • remove local less installation
  • add package data

[main 9c2bbd7] bump: version 3.7.1 → 3.7.2
2 files changed, 17 insertions(+), 2 deletions(-)