Skip to content

Releases: NaturalHistoryMuseum/ckanext-versioned-datastore

v5.6.3

20 Aug 14:33
Compare
Choose a tag to compare

v5.6.3 (2024-08-20)

[main e822203] bump: version 5.6.2 → 5.6.3
3 files changed, 5 insertions(+), 3 deletions(-)

v5.6.2

15 Jul 09:39
Compare
Choose a tag to compare

v5.6.2 (2024-07-15)

Fix

  • increase ttl to 300s
  • add cachetools to dependencies
  • cache status report functions for 300s

[main 045002f] bump: version 5.6.1 → 5.6.2
3 files changed, 11 insertions(+), 3 deletions(-)

v5.6.1

08 Jul 14:46
Compare
Choose a tag to compare

v5.6.1 (2024-07-08)

Fix

  • increase status tolerance for queue length
  • remove hacky queue length estimate

[main 1cdcb4e] bump: version 5.6.0 → 5.6.1
3 files changed, 10 insertions(+), 3 deletions(-)

v5.6.0

08 Jul 08:26
Compare
Choose a tag to compare

v5.6.0 (2024-07-08)

Feature

  • add (optional) integration with ckanext-status

Fix

  • use (un)available instead of (dis)connected

[main 2384b48] bump: version 5.5.0 → 5.6.0
3 files changed, 13 insertions(+), 3 deletions(-)

v5.5.0

11 Mar 12:31
Compare
Choose a tag to compare

Changelog

v5.5.0 (2024-03-11)

Feature

  • remove empty groups from multisearch query when running search
  • convert single-item OR groups to AND when running search

Fix

  • sort on version rather than date modified

Refactor

  • move normalisation methods into schema.normalise step

Tests

  • add tests for query normalisation utils

v5.4.0 (2024-01-15)

Feature

  • downloads: skip empty extension rows

v5.3.1 (2023-12-11)

Fix

  • fix a typo and add a space

Chores/Misc

  • add build section to read the docs config

v5.3.0 (2023-12-04)

Feature

  • add datastore_multisearch_counts action

v5.2.5 (2023-11-27)

Fix

  • ensure the workbook is closed if something goes wrong during the write call
  • request index mappings in batches to avoid elasticsearch URL length error

v5.2.4 (2023-11-23)

Fix

  • set default resource totals to 0

v5.2.3 (2023-11-20)

Fix

  • ignore _id fields in extension rows

v5.2.2 (2023-11-20)

Fix

  • filter out Nones from sum resource count calculation

Refactor

  • set autocomplete result limit to 500

v5.2.1 (2023-10-16)

Fix

  • use msearches to increase datastore_get_resource_versions performance

Refactor

  • rename a variable to something better

Performance

  • increase msearch batch size from 10 to 100

Docs

  • update docs to correctly detail return type

v5.2.0 (2023-10-05)

Feature

  • add download_after_init hook

Fix

  • use the correct number when checking resource and package list len

Tests

  • add new hook to mock plugins

v5.1.1 (2023-10-05)

Fix

  • refactor and fix eml generation

v5.1.0 (2023-10-02)

Feature

  • allow custom titles on dwc downloads of queries

Fix

  • try two different debug variable names and cast to bool

Chores/Misc

  • add regex for version line in citation file
  • add citation.cff to list of files with version
  • add contributing guidelines
  • add code of conduct
  • add citation file
  • update support.md links

v5.0.2 (2023-07-20)

Fix

  • remove the text saying multiple emails are allowed
  • make email required and add validation in popup
  • add validators for notifiers (email and webhook)
  • put notifier call inside try/except

v5.0.1 (2023-07-18)

Fix

  • init nav slugs table in cli

v5.0.0 (2023-07-18)

Breaking Changes

  • remove request id from file names

Feature

  • add action to regenerate downloads
  • add search url and check for file on status page
  • add json endpoint for download status, add urls to queue action
  • allow admin users to specify a custom filename for downloads
  • add server_args to request model
  • add new interface method to modify eml
  • allow other plugins to modify converted queries
  • add a 'raw' download option that also allows non-datastore files
  • allow setting the download query from the url
  • convert to multisearch if query_version starts with 'v0'
  • add helper for creating nav slugs in templates
  • add navigational slugs
  • create util method for getting lists of resource ids and versions
  • convert old-style queries to new multisearch queries
  • add slug_or_doi option to button
  • allow adding a json search query to the download button
  • add download button snippet for single resources

Fix

  • don't return search url for non-datastore resources
  • assume file doesn't exist if filepath is None
  • ignore missing server and notifier types
  • change default notifier to none
  • add raw state to status response
  • get the correct debug variable
  • use filename instead of temporary filepath for core file
  • convert xml content to string
  • add geo coverage to eml generation
  • use jinja's none, not python's None
  • don't process zero-length filters
  • show 0 record totals
  • add pub/sub to the download button to close if another is opened
  • set datastore template option true by default
  • set values to true/false instead of on/off
  • add error message for missing storage path config
  • allow for non-existent resource id list
  • convert old queries when resolving slugs
  • load geo json if passed as a string
  • open search in new page
  • preload main js before download button js

Refactor

  • remove request id from file names

Tests

  • mock url_for in query dois test
  • patch url_for in direct call test
  • use download hash filename
  • patch url_for
  • add test for non-datastore resource downloads
  • add storage path to config
  • fix path to get_available_datastore_resources
  • add nav slugs table to test setup

v4.2.2 (2023-07-17)

Fix

  • catch null values in xlsx files better

Docs

  • update logos

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

v4.2.0 (2023-03-06)

Feature

  • add helpers for displaying recent versions and readable dates

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

v4.1.0 (2023-02-06)

Feature

  • scroll long queries on download status page

Minor UI Changes

  • add refresh button to status page

v4.0.3 (2023-01-31)

Docs

  • readme: change blob url to raw

v4.0.2 (2023-01-31)

Docs

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

v4.0.1 (2023-01-31)

Fix

  • strip the extra stuff from the email template

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 ge...
Read more

v5.4.0

15 Jan 09:52
Compare
Choose a tag to compare

v5.4.0 (2024-01-15)

Feature

  • downloads: skip empty extension rows

[main e8557d4] bump: version 5.3.1 → 5.4.0
3 files changed, 9 insertions(+), 3 deletions(-)

v5.3.1

11 Dec 10:47
Compare
Choose a tag to compare

v5.3.1 (2023-12-11)

Fix

  • fix a typo and add a space

Chores/Misc

  • add build section to read the docs config

[main 715fc07] bump: version 5.3.0 → 5.3.1
3 files changed, 13 insertions(+), 3 deletions(-)

v5.3.0

04 Dec 11:35
Compare
Choose a tag to compare

v5.3.0 (2023-12-04)

Feature

  • add datastore_multisearch_counts action

[main 9125969] bump: version 5.2.5 → 5.3.0
3 files changed, 9 insertions(+), 3 deletions(-)

v5.2.5

27 Nov 10:59
Compare
Choose a tag to compare

v5.2.5 (2023-11-27)

Fix

  • ensure the workbook is closed if something goes wrong during the write call
  • request index mappings in batches to avoid elasticsearch URL length error

[main 1b8301a] bump: version 5.2.4 → 5.2.5
3 files changed, 10 insertions(+), 3 deletions(-)

v5.2.4

23 Nov 11:41
Compare
Choose a tag to compare

v5.2.4 (2023-11-23)

Fix

  • set default resource totals to 0

[main 90bd18e] bump: version 5.2.3 → 5.2.4
3 files changed, 9 insertions(+), 3 deletions(-)