The Tugboat preview build fails while seeding the demo, in .tugboat/setup.php. The seed pre-dates the split of the booking category into a resource-level BookingCategory plus a slot-level BookingSlotCategory, and it calls the old hold() signature.

It builds a BookingCategory with slot and capacity (those now live on BookingSlotCategory), and calls hold($category, $quantity, $ttl, $reference) where the method is now hold(BookingSlotInterface $slot, ?BookingSlotCategoryInterface $category, int $quantity, ?int $ttl). The build dies with a TypeError, so no preview (including the base branch) can build.

Fix

Update the seed to the current model: create a resource-level category, bind it to each slot through a BookingSlotCategory that carries the per-slot capacity, and hold against the slot with hold($slot, $slotCategory, $quantity). Also correct the stale JSON:API links in the guide page (the booking entity type is yoyaku) and add the slot-category resource.

Issue fork yoyaku-3609086

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mably created an issue. See original summary.

mably’s picture

Status: Active » Needs review

  • mably committed 3e6e042c on 1.x
    task: #3609086 Fix the Tugboat demo seed for the current slot-category...
mably’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.