Skip to content

Commit 88b76bf

Browse files
committed
docs(spec): the approval lock reads answer true for a line of a held master
The getRecordLock and getRecordLocks docblocks named only the record-lock hook's judgement; both reads also answer a master-detail line true while its master is held (the detail-row lock). One clause in each; the answer shape and the rest of the What-is-answered text are unchanged. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzeiHatzB4rRx1t4Php
1 parent 9b5bdcd commit 88b76bf

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎packages/spec/src/contracts/approval-service.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,10 @@ export interface IApprovalService {
11121112
* - **What is answered:** `locked` only. `true` when a pending request on the
11131113
* record comes from a node whose `lockRecord` is not `false` — the same
11141114
* judgement, off the same snapshot, the record-lock `beforeUpdate` hook
1115-
* enforces. ⛔ No request id, node, participants or `pending` flag: whether
1115+
* enforces. Asked of a master-detail line, it also answers `true` while the
1116+
* record the line belongs to is so held — the detail-row lock's judgement,
1117+
* which refuses the line's writes.
1118+
* ⛔ No request id, node, participants or `pending` flag: whether
11161119
* the caller may see the request is still `approvalsVisibleToReaders`'
11171120
* question, and this member does not answer it.
11181121
*
@@ -1140,7 +1143,9 @@ export interface IApprovalService {
11401143
* {@link getRecordLock} answers for that id: `{ locked }` when the caller
11411144
* can read the record, `null` when it cannot or when it does not exist,
11421145
* ⛔ never an entry that tells the two apart. The same judgement, off the
1143-
* same snapshot, the record-lock `beforeUpdate` hook enforces. A repeated id
1146+
* same snapshot, the record-lock `beforeUpdate` hook enforces — and, for a
1147+
* master-detail line, the detail-row lock's: a line answers `true` while the
1148+
* record it belongs to is so held. A repeated id
11441149
* is answered at each of its positions. A caller refused the object's read
11451150
* outright is refused the same way for every id.
11461151
*

0 commit comments

Comments
 (0)