You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 129000b
Browse filesBrowse the repository at this point in the historyBrowse files
fix(objectql): a system write keeps its validation rules before the reference check
A write that is not a system write has its references checked before the
record's validation rules; a system write keeps the order it had, so its
answer is unchanged. One predicate, referencesCheckedBeforeRules, is read by
insert, update by id, bulk update and the validate preview.
Pins: each door answers reference_not_found for an unreadable reference a
rule would trip on, and for one that exists nowhere, while a readable one
still answers the rule; a system write and a flow run's system write keep
the rule's answer; a read of the target that fails is refused, and a
reference to an unregistered object is admitted.
Claude-Session: https://claude.ai/code/session_01Utp6CYQjMkN514R78sCrTT
Co-authored-by: Claude <noreply@anthropic.com>
it.each(DOORS)('%s — control: a flow run\'s system write keeps the rules first — the rule its record trips answers, not the reference check',async(door)=>{
// [#25522 cut 10] The write path's reference check and the caller's read of a
102
102
// master-detail header; the methods of the same names below hand each body the
103
103
// members it reads (`ReferentialIntegrityHost`).
104
-
import { assertReferencesResolve, masterDetailHeadersCallerReads, type StoredReferenceRows } from './engine-referential-integrity.js';
104
+
import { assertReferencesResolve, masterDetailHeadersCallerReads, referencesCheckedBeforeRules, type StoredReferenceRows } from './engine-referential-integrity.js';
105
105
// [#25522 cut 11] File-field hydration on read; the methods of the same names
106
106
// below hand each body the members it reads (`FileReferenceHydrationHost`).
107
107
import { callerMayReadSysFile, readParentDerivedFiles, resolveFileReferences, servableFileRows, serveRefusedFileHydration } from './engine-file-reference-hydration.js';
@@ -6492,13 +6492,18 @@ export class ObjectQL implements IObjectQLEngine {
6492
6492
// [ADR-0144 D8 rule 4] A `record`-mode amount is stored with its
6493
6493
// currency code, or the row is refused (`ERR_CURRENCY_CODE_REQUIRED`).
0 commit comments