Skip to content

Releases: GetDKAN/dkan

2.22.4

13 Feb 16:18
ef3d2c0

Choose a tag to compare

This release brings full Drupal 11.3 support to DKAN.

What's Fixed

  • Update Sqlite Connection usage for Drupal 11.3 / PHP 8.4 support by @dafeder in #4649
  • Make download endpoint respect keys, count and schema params by @dafeder in #4654
  • UploadOrLink submit fix by @dafeder in #4653

Full Changelog: 2.22.3...2.22.4

2.22.3

29 Jan 16:16
c4869bd

Choose a tag to compare

What's Changed

  • Default to Drupal 10.5 in ddev-init and allow other constraints by @chri5tia in #4617
  • Add option to delete Orphaned content on cron by @beeyayjay in #4647
  • Update README to fix local sandbox ddev link by @janette in #4640

Full Changelog: 2.22.2...2.22.3

2.22.2

05 Jan 20:45
93ceafc

Choose a tag to compare

Note

This release fixes composer problems on many builds related to conflicting dependencies for the justinrainbow/json-schema package.

What's Changed

Full Changelog: 2.22.1...2.22.2

2.22.1

17 Dec 22:23
9cb8144

Choose a tag to compare

What's Changed

Full Changelog: 2.22.0...2.22.1

2.22.0

03 Dec 19:40
50f7fec

Choose a tag to compare

This is a minor/point release primarily to reflect the shift to new development tooling that could disrupt existing local environments.

The DKAN DDEV add-on is being deprecated and we have shifted to the DDEV Drupal Contrib add-on for local development and CI builds. This brings the DKAN project more in line with other Drupal modules and leverages an established pattern and toolset, with the goal of reducing the learning curve for new DKAN developers and the maintenance burden from our specialized tools. It can also be seen as part of the much longer process of transitioning DKAN from GitHub and packagist.org to Drupal.org (see #4260).

For more information on the new workflow see the local development section of the DKAN Developer Guide.

This release includes several other fixes and changes, as well as a significant new feature: support for JSON on datastore download query endpoints. Previously, full results sets could be streamed for download as CSVs only. Many other minor fixes and enhancements are included as well.

What's New

What's Fixed

What's Changed

Full Changelog: 2.21.2...2.22.0

2.21.2

01 Oct 20:19
c8bcdfd

Choose a tag to compare

Note

This release fixes a problem reported in #4531; that the permissions to access the datasets admin page were too permissive. The change will not be automatically applied; see the section below "View Update Instructions" for how to import the new config.

What's Changed

  • Improve some docs about the Drush commands by @dafeder in #4560
  • Restrict view perms, remove routing perms by @dafeder in #4563
  • Additional decoupling of DKAN from JSON Form Widget in tests by @dafeder in #4567

View update instructions

The changes to the datasets admin view are not automatically applied, to avoid blowing away any customizations. If you are comfortable replacing the default datasets admin view at admin/dkan/datasets, use either one of the following methods:

  • Run the drush command drush cim --partial --source=modules/contrib/dkan/modules/metastore/modules/metastore_admin/config/install -y
  • Use the configuration sync UI:
    1. Open the file modules/metastore/modules/metastore_admin/config/install/views.view.dkan_dataset_content.yml
    2. Copy the full contents
    3. Navigate to admin/config/development/configuration/single/import
    4. Set "Configuration type" to "View"
    5. Paste the contents of the yml file
    6. Click "Import"

Full Changelog: 2.21.1...2.21.2

2.21.1

22 Sep 18:18
735cf03

Choose a tag to compare

What's Changed

Full Changelog: 2.21.0...2.21.1

2.21.0

10 Sep 18:22
d3ceee2

Choose a tag to compare

Important

This release introduces several breaking changes to composer dependencies and the datastore API. See below for upgrade instructions.

Upgrade guide

  1. composer.json: Ensure that your project root composer.json includes npm-asset/select2 and oomphinc/composer-installers-extender in the require section, and asset-packagist in the repositories section. See #4546 and the select2 readme for more information, or see this project template for an example. If you omit the npm-asset/select2 dependency, your project should still build, but your metadata forms may break.
  2. select2: You must require the development branch of select2 at a more recent commit than select2/select2#6332. There is unfortunately no stable release that is compatible with current versions of Drupal. This means that projects using DKAN must have minimum stability of dev in their composer files (or else omit the select2 library dependency and avoid using select2 on your forms).
  3. API change: Using "limit": 0 in a datastore query to get around the row limit in the datastore query endpoints will no longer work, and will produce a JSON validation error. Please update any frontend or third-party code. The only way to download a full result set from the datastore, without being affected by the row limit setting, is to use one of the download endpoints and consume the entire result as a CSV.
  4. Config: If you save your project configuration to code, be sure to capture the changes to core.entity_form_display.node.data.default.yml as there has been an update to the JSON form plugin.

What's Changed

Full Changelog: 2.20.9...2.21.0

2.20.9

15 Aug 19:25
93a4b0b

Choose a tag to compare

Important

As of Drupal 8.2.0, modules no longer require REST-specific permissions. This update begins the transition from a separate permission for API use to relying on the Drupal content authorship permissions. The permission post put delete datasets through the api is deprecated. All API actions now require the same permissions needed to accomplish equivalent things in the Drupal UI. They will, for now, also respect the old "post put..." permission for backward compatibility, but we will remove this in a later release.

Please be advised that you should update the Data node permissions on your data publisher role(s) accordingly.

What's Changed

What's Fixed

  • Override file access to allow access to remote files for UploadAndLink by @beeyayjay in #4536

2.20.8

11 Aug 18:13
8d8b7d9

Choose a tag to compare

Note

This update adds a new configuration for the DKAN MySQL Importer module: "Disable strict mode for creating/altering MySQL tables". Previously the module would always attempt to disable innodb_strict_mode before creating or altering a datastore table. This is sometimes needed for edge cases where the data resource may exceed the header size limit. See #4505.
If a mysql user lacks the necessary permissions to disable strict mode, however, this will cause errors on table creation. If you do not need strict mode to be disabled or do not have the necessary permission, you should not be disabling innodb_strict_mode. After upgrading, visit /admin/dkan/datastore/mysql_import and uncheck the "Disable strict mode for creating/altering MySQL tables" option. (On new installations, it will be unchecked by default.)

What's Changed

  • Allow null on addDistributionInfo in DatastoreInfo by @janette in #4509
  • Migrate from code climate to qlty by @dafeder in #4513
  • Strict mode opt-in for MySQL importer by @dafeder in #4512
  • Split dashboard title search terms into multiple conditions in query to get accurate results by @kaise-lafrai in #4520
  • Remove flaky test by @dafeder in #4522
  • Isolate all DKAN logic in JSON Form widget to plugin file by @dafeder in #4486
  • Test coverage for API delete, and for unauthorized request by @dafeder in #4523

What's Fixed

  • Query Schema updates to throw json schema validation errors if any of the conditions are not met. @kaise-lafrai #4528