Install
Works with Drupal: ^11.3 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
WARNING: THERE IS NO MIGRATION PATH. YOU MUST REINSTALL FROM SCRATCH.
Do not update an existing site to this release. Yoyaku ships no update hooks, and none is coming until the first beta release. Between alpha5 and alpha6 Yoyaku follows Orchestra's new module layout, and the example booking workflow changes its configuration. A site that pulls this code over alpha5 will have a database that does not match it.
Uninstall the Yoyaku modules, drop what they leave behind, and install 1.0.0-alpha6 fresh, together with Orchestra 1.0.0-alpha23 and kessai 1.0.0-alpha9, which this release needs. Every booking, tariff, placement and payment from an earlier alpha is lost, and that is expected.
This release closes a full audit of 1.x: three security fixes, booking workflows that run part of their work in a subprocess, a booking form that changes the order only when its step really completes, and the test suite passing on PostgreSQL.
Security
Alpha releases are not covered by the security advisory policy, so these are fixed here in the open. A tariff label could run script in a booker's browser: a refusal naming the tariff reached the booking stepper as markup. A resource manager could cancel confirmed bookings without the "cancel booking" permission, which now lives in core Yoyaku and is checked on its own access operation. And one request could ask for any quantity: every booking surface now refuses more than 1,000 units before resolving an offer (#3631976: A tariff label can run script in bookers' browsers, a resource manager can cancel confirmed bookings without the cancel permission, and one request can ask for unbounded quantities).
Booking workflows with subprocesses
A booking step in a subprocess acts for the order only when its workflow passes yoyaku_transaction_id down explicitly, and a step without it raises an incident instead of silently doing nothing. Fifteen plugins found no order there before: the basket timer had no deadline, and payment, transition and notification actions did nothing. An order keeps one owner, the instance it started with, so a subprocess that ends no longer releases the places its parent still holds (#3631963: Booking steps in a subprocess silently do nothing, a subprocess given the order's id takes the order over, and an emptied booking form field keeps its old value). The booking form finds the order of a step in a subprocess the same way (#3631872: Follow Orchestra's resume handle changes in the booking form handler, and find the order of a step that runs in a subprocess).
The booking form
The booking form handler follows Orchestra's resumed token, so a branch's answers land on the order that branch carries (#3632072: Follow Orchestra's resumed token in the booking form handler, which fatals against Orchestra 1.x, #3631879: Resolve the booking form's resume handle with Orchestra's getBoundResumeHandle()). It changes the order and asks its policies only on the submit that completes its step, as Orchestra decides it: a re-edit after the step moved on, a step the booker may not complete and a multi-page form's Next button leave the order alone. A refused submit no longer keeps its answers on the order, and code submitting the form's values, as a REST resource does, still meets the policies (#3632071: The booking form changes the order and asks its policies on submits that resume no step, and keeps the answers of a refused submit). Emptying a field on a re-edit clears what it had captured (#3631963: Booking steps in a subprocess silently do nothing, a subprocess given the order's id takes the order over, and an emptied booking form field keeps its old value).
Orders and payments
A partially used order is settled: it can no longer be canceled, which made it a void order purged with the bookings that were used, and it can now be archived (#3631977: A partially used order can be canceled and purged, lock counters use MySQL-only SQL, and four more defects in the engine and its screens). The queued order emails no longer go out with an empty body after a page that rendered anything (#3627388: Send the queued order emails on kernel.terminate instead of destruct(), so they don't go out blank). The orders list reads its workflow actions and deletion guards for the whole page at once, and asks kessai about a page of orders in one query instead of one per row (#3631450: Read the orders list's workflow actions and deletion guards for the whole page at once, instead of once per row, #3631500: Ask kessai once per page of orders for the payments that keep them from deletion).
Following Orchestra
Yoyaku depends on orchestra_engine for the engine and on orchestra for the contract (#3631497: Follow Orchestra's layout change: depend on orchestra_engine for the engine and on orchestra for the contract), and follows Orchestra's resume handles (#3631872: Follow Orchestra's resume handle changes in the booking form handler, and find the order of a step that runs in a subprocess, #3631879: Resolve the booking form's resume handle with Orchestra's getBoundResumeHandle()). The example booking workflow moves its cancellation quorum to Orchestra's quorum settings (#3629993: Move the booking workflow's cancellation quorum to the new quorum settings and route on its result) and its status page titles to the External interaction (#3631190: Move the booking workflow's status page titles to the External interaction). The basket lapse action declares that it acts on a task, so a lapsed basket is still ended (#3630936: Declare that the basket lapse timeout action acts on a task), and the orders list's workflow column and the cancellation page title follow Orchestra's latest changes (#3631434: Follow orchestra's latest changes in the kernel tests, the orders list's workflow column and the booking cancellation page title).
PostgreSQL
Lock counters and the seat fill used SQL only MySQL reads. Both are portable now, and the whole test suite passes on PostgreSQL 16, though continuous integration runs on MySQL (#3631977: A partially used order can be canceled and purged, lock counters use MySQL-only SQL, and four more defects in the engine and its screens).
Fixed after a full audit
- Deleting slots together with their bookings is one call,
BookingManagerInterface::deleteSlotsWithBookings(), instead of a switch left on a shared service for the rest of the request (#3631977: A partially used order can be canceled and purged, lock counters use MySQL-only SQL, and four more defects in the engine and its screens). - A form hook that runs on every entity form of the site no longer reorders other modules' selects, which loaded every taxonomy term an article offered (#3631977: A partially used order can be canceled and purged, lock counters use MySQL-only SQL, and four more defects in the engine and its screens).
- Two admin booking screens give a refusal in words instead of the engine's log message, and name the operation they applied (#3631977: A partially used order can be canceled and purged, lock counters use MySQL-only SQL, and four more defects in the engine and its screens).
- Each Remove button in the cart has an accessible name that says what it removes, starting with the word shown (#3631977: A partially used order can be canceled and purged, lock counters use MySQL-only SQL, and four more defects in the engine and its screens).
Under the hood
Eleven computations that were written twice or more have one owner each, a booking operation's name is matched to the booking manager in one place, the resource type page describes what exists instead of a plan, and three method names in the docs are corrected (#3631964: Eleven computations are written twice or more, and two doc pages name methods that are gone or a plan that has shipped). Constructors that only inject services lose their docblocks (#3628787: Remove the docblocks of constructors that only inject services). The codebase metrics are regenerated: 1,474 files and 166,010 lines of code.
AI-Generated: Yes (Claude Code was used to help write the changes in this release, their tests and these release notes. I reviewed them.)