Commit Graph
2 Commits
Author SHA1 Message Date
Lauri Ojansivu b09eaaa4d0 Make moving all cards of a list to another board durable when both boards opted in.
A moveAllCardsInList rule onto another board now saves one unit per
card of the list. Each unit is a whole move to another board, with the
same mappings and records as a single rule move there. As in the
ordinary action, each card keeps its sort and lands in that board's
default swimlane. Like a single move to another board, it must end its
rule plan, because the rule's own card may be among those moved. The
rule guard follows a card to where its unit put it. The single-move and
move-all runners share one apply step.

Thanks to xet7 !
2026-10-02 19:14:29 +03:00
Lauri Ojansivu e108bb83b0 Lay the groundwork for durable rule moves to another board.
The saved command for a rule move onto another board is written
(server/lib/syncRuleMoveBoardCommand.js). It plans what Card.move and
its hooks write there: labels by name, the card number, mapped custom
fields, filtered members and watchers, cleared dependencies, the
History rows, the moveCardBoard and custom-field activities, the
re-pointed label activities and the legacy undo row. It accepts only
the last action of its rule plan. The History planner gains those
fields, and the recording scope can defer the dependencies row and the
label-activity hook, which runs while the card is still on its old
board. Nothing uses the command yet: such a rule still keeps its board
on direct Sync until its runner, guard and eligibility are added.

Thanks to xet7 !
2026-10-02 18:27:47 +03:00