Install
Works with Drupal: ^9.4 || ^10.2 || ^11Using dev releases is not recommended, except for testing.
Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Summary
-------
Development snapshot of the 2.27.x branch, including the new JSON import
pipeline for special_night nodes.
What's included in this dev snapshot
------------------------------------
- JSON import for Special Nights. Two Drush commands are now available:
- drush bhpas:check
Validates the configuration and prerequisites without writing to the
database.
- drush bhpas:import
Creates or updates special_night nodes from JSON files, matching on
the (field_nights.value, field_room.target_id) pair.
- Configuration form. A new collapsible fieldset "Import from JSON" in the
Special Nights alterator settings exposes the source directory,
nights/adults, channel discounts and imported node status.
- Sample fixture. A reference JSON file is available at
tests/fixtures/special_night_example.json, with a format reference in
tests/fixtures/README.md.
Upgrade notes
-------------
No database updates are required. After updating the codebase:
drush cr
drush bhpas:check
If you were already using a previous import implementation, open the
"Import from JSON" fieldset and re-save the form to migrate the
configuration keys to the new names (import_discount_primary,
import_discount_secondary).
Warning
-------
This is a development release. It is generated automatically from the tip
of the 2.27.x branch and may contain incomplete features or regressions.
Do not use it on production sites without prior testing.
Full changelog
--------------
- Added: bhpas:check and bhpas:import Drush commands.
- Added: "Import from JSON" fieldset in the Special Nights form.
- Added: tests/fixtures/special_night_example.json sample fixture.
- Changed: module strings translated to English.
- Changed: core_version_requirement updated to ^10 || ^11 || ^12.
- Changed: Drush commands moved to src/Drush/Commands/ (Drush 13).
- Removed: drush.services.yml.
- Fixed: configuration name resolution in Drush commands.