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 5e54169
Browse filesBrowse the repository at this point in the historyBrowse files
fix(lint): the stored-metadata reference refusal names a relationship field, and pins the user case its collector admits
A user field's authored reference is not refused at parse, so the hop
collector already admits a user naming the family; the collector's
docblock said otherwise.
Claude-Session: https://claude.ai/code/session_019oFY6Hi35J7atvgVFnmoaK
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .changeset/24677-reference-into-stored-metadata-body-refused.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ A `lookup` or `master_detail` whose `reference` names a table of the stored-meta
15
15
16
16
- FROM: `meta: { type: 'lookup', reference: 'sys_metadata' }` (or a `master_detail`, or `sys_metadata_history`) saved with a 200 and built with exit 0, and then only ever showed an id. TO: refused, with `422 INVALID_METADATA` at the save door and an error at `os validate` / `os build`. The message names the field, its type and the target, and ends on the family's one prescription.
17
17
- A reference to any other table, platform tables such as `sys_user` included, is unchanged.
18
+
- A `user` field whose authored `reference` names a family table is refused the same way: the parse accepts an authored `reference` on a `user` field, and it is the target every reader resolves.
18
19
- The refusal of a formula or a validation rule that reads through such a field is unchanged, and is still reported at that expression.
19
20
- A stored object row that already declares such a field keeps loading: no authoring rule runs when a stored row is rehydrated, and the engine guards keep refusing every relationship read into the family. Its next active save, or a draft's promotion, through the metadata API is refused until the field is removed or retargeted. The engine guards stay, for every path that runs no authoring rule.
20
21
-`@objectstack/spec` (`patch`): the `reference` describe states the convention, so the generated field reference says it too.
0 commit comments