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 691a158
Browse filesBrowse the repository at this point in the historyBrowse files
docs(spec): apply contract-review should-fixes to the search-fields comments
- Drop the formula mention from the no-clause bullet: Filter 2 drops every
formula before admission, so no formula reaches the expansion from the
declared branch (same fix in the changeset bullet).
- Say "substring scan" for the generic scan on the docblocks, and correct the
SEARCH_VIRTUAL_TYPES docblock, which still said a declared json column is a
scan that can match.
- Test CONTROL comment: "single-valued" lookup, as in the docblock.
Comment-only; no behaviour change.
Claude-Session: https://claude.ai/code/session_01JQwxbWkmiSMGh5SFWcG7XY
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .changeset/29546-declared-search-column-no-clause-comment.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Metadata-protocol: none
9
9
10
10
The declared-branch text on `resolveSearchFieldResolution` (`@objectstack/spec`, shipped in its `.d.ts`) still said a `json` column declared in `searchableFields` is "a scan that CAN match". The `$search` expansion in `@objectstack/objectql` gives such a column no clause: its declared type can never hold a string, which is the text-operator door's `door-refusal` verdict (`textOperatorDoorVerdict`). The docblock now says so:
11
11
12
-
- a declared `json` column (or any numeric, boolean, date or time, or structured-JSON column, or a `formula` whose `returnType` names one) is still admitted to the set, but contributes no clause;
12
+
- a declared `json` column (or any numeric, boolean, date or time, or structured-JSON column) is still admitted to the set, but contributes no clause;
13
13
- a set made only of such columns answers no rows, never an error;
14
14
- a declared single-valued `lookup` column still matches by substring over the stored foreign key;
15
15
- only an entry that names no column at all is dropped, as before.
0 commit comments