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 255588b
Browse filesBrowse the repository at this point in the historyBrowse files
docs(ui): the searchableFields boundary is allowed-set membership, not field type (#6897) (#6922)
views.mdx:106 said a lookup in a view's `searchableFields` is always refused.
Measured at both layers, that is false: the boundary is membership in the
object's server-resolved allowed set, and field TYPE is consulted only on the
auto-default branch (the object declares nothing). On an object declaring
`searchableFields: ['subject', 'account_id']`, a view narrowing to the lookup
`account_id` is ACCEPTED and scanned, while a `text` column the object left out
is REFUSED — the exact inverse of a type-based reading. An author following the
old row would delete a narrowing that works.
The row now states the set-membership rule and links to a new
`### Toolbar search (searchableFields)` section that mirrors the terminology
landed in skills/objectstack-ui/SKILL.md by PR #6898, so the two corpora agree.
The dotted-path half of the old row was correct and is kept.
Claude-Session: https://claude.ai/code/session_01F8q5J1MQyocgtNspb15fSn
Co-authored-by: Claude <noreply@anthropic.com>
|`searchableFields`|`string[]`|optional|Fieldsthetoolbarsearchscans — **narrows**theobject's set, never widens it (ADR-0061). Entries must be the object's**own**columns: alookup (`project_id`) oradottedpath (`project_id.name`) isrefused, andeverytoolbarsearchonthelistthenreturns`400 INVALID_FIELD` (#4254). Tosearchbyarelatedrecord's title, [mirror it into a stored field](/docs/data-modeling/schema-design#searching-by-a-related-records-title--mirror-the-value) on the object and list that|
0 commit comments