Files
qbit-sql-workbench/docs
james.maesandClaude Fable 5.2 b096a710b2
maven / build (push) Successful in 1m51s
build / maven (push) Successful in 1m51s
feat: Transfer Notebook action; a notebook's owner is not set by a save
An administrator gave a notebook to another owner by updating ownerUserId, a
field the table declares not editable; the notebook customizer let it through.
A QQQ core that refuses a person's write of a field that is not editable
refuses that save, so the transfer stops working there.

A transfer is an action, not an edit. New record action
sqlWorkbenchTransferNotebook on a notebook, for holders of the admin
permission: NotebookService.transfer checks the administrator again, writes
the owner as the qbit's own write (system input source) in the
administrator's session, with the record locks, and appends a version
"Transferred from A to B" saved by the administrator; the record audit
carries the same note. The field stays not editable, so every client shows it
read-only and none needs a special case.

The customizer now refuses a save that would change the owner, for everyone,
with a message naming the action, so the behaviour is the same on a core with
the rule and on one without. A save that sends the stored owner back is
stored.

Tests over real HTTP (the UI API process and table routes):
NotebookTransferHttpTest. They pass on the pinned core and on a locally built
core with the rule.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 04:57:21 -06:00
..