Commit 59e9b7c
Both authoring-time hints for a bad `searchableFields` entry told the author
to mirror a related record's value onto a formula field — a fix that can
never work: a `formula` field is virtual (no driver materializes a column for
it), so a `$contains` predicate against one has nothing to scan, and a CEL
formula only reads the record's own fields, so it cannot fetch the related
title in the first place.
- validate-searchable-fields.ts:347 (dotted-path entry, SEARCHABLE_FIELD_UNKNOWN):
"copy the value onto a formula field here" -> "...a stored text field here."
- validate-searchable-fields.ts:414 (lookup/master_detail outside the allowed
set, SEARCHABLE_FIELD_UNSEARCHABLE): "mirror it onto a text/formula field"
-> "mirror it onto a stored text field".
Matches the prescription already shipped in content/docs/data-modeling/
schema-design.mdx and the objectstack-data / objectstack-ui skills (PR #6670,
#6898) — the tool's own hint text now agrees with the corpus that quotes it.
Pinned tests strengthened to assert the new wording and reject "formula"
(reverse-verified: reverting either string to the old wording turns both
tests red).
Co-authored-by: Claude <noreply@anthropic.com>
1 parent b5404f4 commit 59e9b7c
3 files changed
Lines changed: 43 additions & 3 deletions
File tree
- .changeset
- packages/lint/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
216 | 220 | | |
217 | 221 | | |
218 | 222 | | |
| |||
315 | 319 | | |
316 | 320 | | |
317 | 321 | | |
318 | | - | |
| 322 | + | |
| 323 | + | |
319 | 324 | | |
| 325 | + | |
| 326 | + | |
320 | 327 | | |
321 | 328 | | |
322 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
| 414 | + | |
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
| |||
0 commit comments