feat: Transfer Notebook action; a notebook's owner is not set by a save #52

Merged
james.maes merged 2 commits from fix/transfer-notebook-owner into develop 2026-11-24 15:09:21 +00:00
2 Commits
Author SHA1 Message Date
james.maesandClaude Fable 5.2 f19cc4eb25 docs(upgrade): who gets which answer when a save changes a notebook's owner
maven / build (push) Successful in 2m2s
build / maven (push) Successful in 2m2s
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 06:11:20 -06:00
james.maesandClaude Fable 5.2 f8638c31a5 feat: Transfer Notebook action; a notebook's owner is not set by a save
maven / build (push) Successful in 1m58s
build / maven (push) Successful in 1m58s
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:20 -06:00